Features
Dreamcatcher is a node.js project that provides a lightweight API for generating Image and PDF representations of a web page. MIT licensed.
- Straightforward HTTP API.
- The source can be a provided as an HTML snippet or a URL.
- The response can be one of
- Image: JPEG, PNG or WebP images. You can specify the JPEG image quality.
- PDF: The PDF output can be customized per Puppeteer's options.
- HTML: The html source can be returned.
- The scale can be set to 2× (for HiDPI) or to 1× (normal).
- You can request the whole page or part of it, based on a provided selector.
- You can wait for a certain time to pass, for a selector to appear, or both.
- Additional API endpoint that provides the browser's Navigation and Resource Timing metrics.
- Blocks by default access to private network resources.
- Integration with Sentry for error reporting.
Credits
Dreamcatcher is built on the shoulders of giants: