Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Web page PDF/PNG rendering done right. Self-hosted service for rendering receipts, invoices, or any content.
| Date | Stars |
|---|---|
| 2026-07-24 | 7106 |
| 2026-07-25 | 7106 |
| 2026-07-28 | 7106 |
| 2026-07-30 | 7106 |
| 2026-08-06 | 7106 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
[](https://heroku.com/deploy?template=https://github.com/alvarcarto/url-to-pdf-api) [](https://travis-ci.org/alvarcarto/url-to-pdf-api) # URL to PDF Microservice > Web page PDF rendering done right. Microservice for rendering receipts, invoices, or any content. Packaged to an easy API.  **⚠️ WARNING ⚠️** *Don't serve this API publicly to the internet unless you are aware of the risks. It allows API users to run any JavaScript code inside a Chrome session on the server. It's fairly easy to expose the contents of files on the server. You have been warned!. See https://github.com/alvarcarto/url-to-pdf-api/issues/12 for background.* **⭐️ Features:** * Converts any URL or HTML content to a PDF file or an image (PNG/JPEG) * Rendered with Headless Chrome, using [Puppeteer](https://github.com/GoogleChrome/puppeteer). The PDFs should match to the ones generated with a desktop Chrome. * Sensible defaults but everything is configurable. * Single-page app (SPA) support. Waits until all network requests are finished before rendering. * Easy deployment to Heroku. We love Lambda but...Deploy to Heroku button. * Renders lazy loaded elements. *(scrollPage option)* * Supports optional `x-api-key` authentication. *(`API_TOKENS` env var)* Usage is as simple as https://url-to-pdf-api.herokuapp.com/api/render?url=http://google.com. There's also a `POST /api/render` if you prefer to send options in the body. **🔍 Why?** This microservice is useful when you need to automatically produce PDF files for whatever reason. The files could be receipts, weekly reports, invoices, or any content. PDFs can be generated in many ways, but one of them is to convert HTML+CSS content to a PDF. This API does just that. **🚀 Shortcuts:** * [Examples](#examples) * [API](#api) * [I want to run this myself](#development) ## How it works  Local setup is identical except Express API is running on your machine and requests are direct connections to it. ### Good to know * **By default, page's `@media print` CSS rules are ignored**. We set Chrome to emulate `@media screen` to make the default PDFs look more like actual sites. To get results closer to desktop Chrome, add `&emulateScreenMedia=false` query parameter. See more at [Puppeteer API docs](https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagepdfoptions). * Chrome is launched with `--no-sandbox --disable-setuid-sandbox` flags to fix usage in Heroku. See [this issue](https://github.com/GoogleChrome/puppeteer/issues/290). * Heavy pages may cause Chrome to crash if the server doesn't have enough RAM. * Docker image for this can be found here: https://github.com/restorecommerce/pdf-rendering-srv ## Examples **⚠️ Restrictions ⚠️:** * For security reasons the urls have been restricted and HTML rendering is disabled. For full demo, run this app locally or deploy to Heroku. * The demo Heroku app runs on a free dyno which sleep after idle. A request to sleeping dyno may take even 30 seconds. **The most minimal example, render google.com** https://url-to-pdf-api.herokuapp.com/api/render?url=http://google.com **The most minimal example, render google.com as PNG image** https://url-to-pdf-api.herokuapp.com/api/render?output=screenshot&url=http://google.com **Use the default @media print instead of @media screen.** https://url-to-pdf-api.herokuapp.com/api/render?url=http://google.com&emulateScreenMedia=false **Use scrollPage=true which tries to reveal all lazy loaded elements. Not perfect but better than without.** https://url-to-pdf-api.herokuapp.com/api/render?url=http://www.andreaverlicchi.eu/lazyload/demos/lazily_load_lazyLoad.html&scrollPage=true **Render only the first page.** https://url-to-pdf-api.herokuapp.com/api/render?url=https://en.wikipedia.org/wiki/Portable_Document_Format&pdf.pageRanges=1
Excerpt of 15,523 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:a1cdab1813301f70, topic:puppeteer