screenshot.ts
Full-page, viewport, and element screenshots. PNG, JPEG, WebP. Custom viewport sizes. Supports CSS selectors for element capture.
generate-pdf.ts
Convert any URL or HTML to PDF. Custom margins, headers, footers. Includes a ready-to-use invoice template.
scrape-table.ts
Extract data from HTML tables on any site. Returns clean JSON with headers and rows. Handles pagination.
login-flow.ts
Automate login on any website. Saves browser session (cookies + localStorage) so you only log in once.
fill-form.ts
Fill and submit web forms. Handles text, dropdowns, checkboxes, radio buttons, file uploads. Human-like typing delays.
extract-structured.ts
Define a JSON schema, extract data. Works on any site. Supports lists, nested data, attributes, multi-value fields.
monitor-page.ts
Detect content changes on any page. Hash-based diffing. Saves change history. Use for price alerts, stock monitoring.
wait-for-element.ts
Handle SPAs, lazy loading, infinite scroll, AJAX. Intercept network responses. Works with React, Vue, Angular.
anti-detection.ts
Stealth patches, natural mouse movement, human-like scrolling. Hides webdriver flag, fakes browser plugins.
request-interceptor.ts
Block trackers/images for 3–5x faster loads. Intercept API responses. Add custom headers to all requests.
scraper-template.ts
Full scraper template: pagination, retry with backoff, error handling, JSON output. Copy and fill in your selectors.
core/browser.ts
Reusable browser factory. Stealth mode, proxy support, retry logic, configurable user agents.
// Define your schema — extract runs automatically
const products = await extractStructured({
url: 'https://store.example.com/products',
schema: {
name: { selector: 'h2.product-title' },
price: { selector: '.price' },
images: { selector: 'img.product-img', attribute: 'src', multiple: true },
inStock:{ selector: '.availability' },
},
listSelector: '.product-card',
});
// Returns: [{ name: '...', price: '$29', images: [...], inStock: 'In Stock' }, ...]
⚡
TypeScript throughout — Full type safety, autocomplete, no guessing
🔄
Retry built in — Exponential backoff on every operation
🥷
Stealth by default — Anti-detection patches applied out of the box
📄
Real working code — Every script runs. Not just snippets.
🧩
Composable — Mix and match utilities across your own scripts
📦
Zero framework lock-in — Pure Playwright, works anywhere Node.js runs
🧾
Invoice template included — Drop in your data, generate PDFs immediately
📡
API interception — Find and extract undocumented APIs from any site
🔐
Session persistence — Log in once, reuse sessions across all runs
📈
Page monitoring — Price trackers, stock alerts, content changes
🚀
MIT License — Use commercially, modify freely, no attribution
💾
Instant download — Get the code immediately after payment
Get the kit — $19 one-time
Instant download. MIT license. Works with Playwright 1.40+, Node 18+, TypeScript 5+.
30-day money-back guarantee. Questions? agent@opspawn.com