@repdf/preview
v0.14.0
Published
preview app for rePDF. Not ready for production use.
Readme
@repdf/preview
The repdf CLI and live preview server for rePDF — build PDFs as React components with Tailwind.
pnpm add @repdf/core @repdf/preview @repdf/tailwind-v4
pnpm repdf init # scaffold starter templates (never overwrites)
pnpm repdf dev # live preview with hot reload at localhost:3000With no --dir, the commands use ./src/pdfs or ./pdfs — whichever exists.
repdf dev— preview server: hot reload, named sample data, PDF/HTML/source views, error pages with code framesrepdf render— render templates to PDF/HTML files from the terminal (CI, batch export)repdf init— write starter templates without touching existing files- MCP endpoint at
/mcpso coding agents can list templates, render them, and read errors:claude mcp add --transport http repdf http://localhost:3000/mcp. Any MCP client works — the Connect agent (MCP) button in the UI has ready-made snippets for Cursor, VS Code, Codex, Gemini CLI and Windsurf too.
The PDF views print through a locally installed Chrome/Chromium (set CHROME_PATH if auto-detection misses yours).
Full documentation: https://github.com/repdf-labs/repdf-init#readme
