Skip to content
This repository was archived by the owner on Oct 20, 2026. It is now read-only.
LaixerPublic archive

About

FunderMaps PDF report renderer (Vue 3 + Chart.js)

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Repository files navigation

FunderMapsReport

Retired 2026-10-20. The API makes the PDF itself now, with Typst (FunderMapsApi src/lib/report-pdf/ + pdf/). The report site (fundermaps-report-prod), Gotenberg and the fmrt. render token are deleted. This repository is archived and kept for reference only; the text below describes how it worked.

Renders the FunderMaps foundation report as a web page that a headless renderer (Gotenberg / headless Chrome) turns into the downloadable PDF. It has no login UI. The API's POST /api/pdf/:id mints a render token per PDF (5 minutes, that pand only, read-only) and passes it in the URL fragment (/<pand>#t=fmrt.…); the page sends it as Authorization: Bearer fmrt.…. There is no key in the bundle any more.

Stack: Vue 3 (<script setup>), TypeScript, Vite, Chart.js, Mapbox GL. Package manager: pnpm.

Setup

pnpm install
pnpm dev      # dev server
pnpm build    # type-check + production build
pnpm preview  # preview the production build

Configuration

See env.d.ts for the full VITE_ env surface. The essentials:

  • VITE_FUNDERMAPS_URL — FunderMaps API base URL.
  • VITE_MAPBOX_TOKEN, VITE_MAPBOX_STYLE — Mapbox rendering.

How the PDF is produced

PDF.vue loads the building data, renders the chapters, and once everything has flushed to the DOM sets [data-pdf-ready="true"] on <html>. The renderer is configured to wait for that selector before snapshotting, which is more reliable than a network-idle heuristic. Charts disable animation on first paint so the snapshot is deterministic.

About

FunderMaps PDF report renderer (Vue 3 + Chart.js)

Topics

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages