ironfang-ltd/Ironfang Render Screenshots

Capture screenshots and PDFs of pages in CI - deploy previews, visual audits, generated images

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
api-keyAn Ironfang API key with the render scope. Pass it from a secret, never inline.yes—
urlsURLs to render, one per line.no—
htmlRaw HTML to render, instead of a URL.no—
kindWhat to render - screenshot, pdf or image (a saved template).noscreenshot
templateTemplate id, for kind=image.no—
varsJSON object of template variables, for kind=image.no—
output-dirDirectory to write the files into. Created if missing.norenderwolf
file-nameName for the file, without an extension. Numbered when there is more than one. Defaults to a name made from the URL.no—
formatpng, jpeg or webp. Ignored for PDFs.nopng
widthViewport width in pixels.no—
heightViewport height in pixels.no—
full-pageCapture the whole scrollable page rather than the viewport.nofalse
selectorCapture one element instead of the page, e.g. "#hero".no—
devicedesktop, tablet or mobile - a viewport, density, mobile flag and user agent together.no—
dark-modeRender as a visitor who prefers a dark colour scheme.nofalse
quality1-100, for jpeg and webp.no—
delay-msExtra wait after the page settles, in milliseconds.no—
fail-on-errorFail the step if any render fails. Set false to capture what you can and carry on.notrue
summaryWrite a table of what was captured to the job summary.notrue
base-urlAPI base. Only needed to point at something other than production.nohttps://api.ironfang.com/render
namedescription
filesJSON array of the files written, in the order the URLs were given.
countHow many files were written.
meterThe billing meter the step's renders counted against, e.g. render.screenshot. Empty when nothing was rendered.
quantityThe total quantity the step counted on that meter. Cache hits count zero.