A web service that captures screenshots of web pages using Patchright (Playwright with built-in stealth patches).
- Single and bulk URL screenshot capture
- Stealth mode to avoid detection
- Caching of previously captured screenshots
- Concurrent processing with one shared browser and an isolated context per page (
MAX_CONCURRENCY) - High-quality full-page screenshots
- Caching of previously captured screenshots
- Screenshot Organization by Domain
public/i/is a reserved directory for screenshots and added in .gitignore filepublic/og.pngis the preview image that appears when sharing the homepage link
Captures screenshots of one or more web pages.
For a single URL:
{
"urls":["http://localhost:4321/"]
}For multiple URLs:
{
"urls": [
"https://example.com",
"https://example.org"
]
}{
"success": true,
"data": {
"urls": [
{
"original": "http://localhost:4321/",
"screenshot": "http://localhost:4321/i/localhost/ee169604f4cebd35817a28306f40ab7fa34409f0eabb32806cdbad7252aabd53.png"
}
]
}
}- Install dependencies:
pnpm install
pnpm exec patchright install chromium- Start the development server:
pnpm dev- Build for production:
pnpm build