fantoche (puppet
in portuguese) is an API for generating static screenshots from websites. It uses puppeteer for rendering.
.md
files do not support the use of embedded JS scripts or<iframe>
tags- This limitation makes the display of real time informations not possible, requiring workarounds
- Inspired by metrics
For rendering pages, you can pass these parameters:
url
(required): the website you want to printwidth
: viewport widthheight
: viewport height
Below, an <img>
tag is rendered. Its src
property receives the following value:
https://fantoche.herokuapp.com/?url=https://chrismckenzie.com/&width=300&height=300