Skip to content

Latest commit

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

grabshot

Take website screenshots with one line of code. No browser, no Puppeteer, no infrastructure.

Install

npm install grabshot

Quick Start

constGrabShot=require('grabshot');constclient=newGrabShot('your-api-key');// Get screenshot as Bufferconstimage=awaitclient.screenshot('https://github.com');// Save to fileawaitclient.screenshotToFile('https://github.com','github.png');

Get your free API key at grabshot.dev/dashboard (25 screenshots/month free).

Options

awaitclient.screenshot('https://example.com',{width: 1440,// Viewport width (100-4000)height: 900,// Viewport height (100-4000)fullPage: true,// Capture entire pagedelay: 2000,// Wait 2s before captureformat: 'jpeg',// png, jpeg, or webpquality: 85,// JPEG/WebP quality (1-100)device: 'mobile',// mobile or tablet emulationdarkMode: true,// Dark modeselector: '#hero',// Capture specific elementretina: true,// 2x resolutionblockAds: true,// Block adsframe: 'macbook',// Device frame: iphone, macbook, browsercleanup: true,// AI-powered popup/cookie cleanup (paid)});

Plans

PlanScreenshots/moPrice
Free25$0
Starter1,000$9/mo
Pro10,000$29/mo
Business50,000$79/mo

Links

License

MIT

Releases

Packages

Contributors

Languages