Screenshots
PNG, JPEG or WebP of a URL or your own HTML: any viewport, the full page, or one element.
Screenshots, PDFs, fully rendered HTML and scraped text from a real Chrome, called from your edge function, the API or the CLI. Invoices and reports as PDFs, social preview images, page monitoring and data extraction, billed by the second with nothing running in between.
// lyrcloud.json: "browser": "BROWSER"
export default {
async fetch(request, env) {
const order = await request.json();
const pdf = await env.BROWSER.pdf({
html: `<h1>Invoice ${order.id}</h1><p>Total: ${order.total}</p>`,
format: 'A4', margin: { top: '1cm', bottom: '1cm' },
});
return new Response(pdf, { headers: { 'content-type': 'application/pdf' } });
},
};
// $ lyrcloud browser screenshot https://example.com -o shot.png
// $ lyrcloud browser scrape https://example.com title=h1 links=a
PNG, JPEG or WebP of a URL or your own HTML: any viewport, the full page, or one element.
Invoices, receipts, tickets and reports from HTML, with paper size, margins, landscape and page ranges.
The page after its scripts ran, or the text and links matching CSS selectors, as JSON.
Every render gets a fresh private browser. Pages can load anything public and never an address inside a network.
Latin, Cyrillic, Greek, Chinese, Japanese, Korean, Arabic, Hebrew, Bengali, Devanagari, Thai and emoji out of the box.
Launch: 1 browser hour a month. Scale: 20 hours. Enterprise: 200 hours. Billed per second; past that, $0.30 an hour from Lyrcloud credit.
Register or transfer a domain with free WHOIS privacy and Lyrcloud DNS, paid by card or with Lyrpay.
Learn moreResponse caching, static files and whole static sites for your edge functions, with cache headers you control and purges from the CLI.
Learn moreRate limits, IP rules, a firewall for common attacks, bot checks and secure headers for your edge functions, set in lyrcloud.json and enforced before your code runs.
Learn moreCreate a free account in under a minute. No credit card required.