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

const GrabShot = require('grabshot');
const client = new GrabShot('your-api-key');

// Get screenshot as Buffer
const image = await client.screenshot('https://github.com');

// Save to file
await client.screenshotToFile('https://github.com', 'github.png');

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

Options

await client.screenshot('https://example.com', {
  width: 1440,        // Viewport width (100-4000)
  height: 900,        // Viewport height (100-4000)
  fullPage: true,     // Capture entire page
  delay: 2000,        // Wait 2s before capture
  format: 'jpeg',     // png, jpeg, or webp
  quality: 85,        // JPEG/WebP quality (1-100)
  device: 'mobile',   // mobile or tablet emulation
  darkMode: true,     // Dark mode
  selector: '#hero',  // Capture specific element
  retina: true,       // 2x resolution
  blockAds: true,     // Block ads
  frame: 'macbook',   // Device frame: iphone, macbook, browser
  cleanup: true,      // AI-powered popup/cookie cleanup (paid)
});

Plans

Plan Screenshots/mo Price
Free 25 $0
Starter 1,000 $9/mo
Pro 10,000 $29/mo
Business 50,000 $79/mo

Links

License

MIT

Releases

Packages

Contributors

Languages