Guides
Practical notes from running a screenshot and PDF rendering service in production.
Catch mobile layout bugs on every Vercel and Netlify preview (GitHub workflow)
Render each preview deploy on phone, tablet and desktop, catch sideways scrolling and JavaScript errors, and post the screenshots on the pull request.
Give your AI agent eyes: pairing web search and fetch APIs with screenshots
Fetch APIs give agents a page's text but miss layouts, charts and broken deploys. How to add screenshots next to them, with MCP setup and Python.
How to convert any web page to Markdown for LLMs (Python & Node.js)
Render JavaScript, extract the main content, fix relative links and layout tables, and chunk for RAG — turn web pages into clean Markdown for LLMs.
Dynamic Open Graph images from HTML templates (that cost almost nothing)
Generate 1200×630 social preview images from HTML/CSS templates, render them with a headless browser or API, and cache them so viral posts stay free.
How to take a full-page screenshot with Puppeteer or Playwright (and fix the 6 common problems)
Full-page screenshots in Puppeteer and Playwright, with fixes for lazy images, cookie banners, missing fonts, sticky headers, animations and timeouts.
HTML to PDF in Node.js and Python: 4 approaches compared
Compare wkhtmltopdf, WeasyPrint, headless Chrome (Puppeteer/Playwright) and hosted APIs for converting HTML to PDF — with code, CSS print tips and trade-offs.
Your headless browser is an SSRF cannon: how I locked mine down
Redirects, iframes and DNS rebinding get past URL validation in Puppeteer/Playwright screenshot services. Here's how to block SSRF at the kernel level.