JSON Render

Pattern
JSON Render PDF
Generate PDF documents from natural language using @json-render/react-pdf. Describe a document or refine examples to create professional PDFs with streaming spec and live preview.
IntermediateFeb 2026View the full pattern on desktop


Problems solved
- Generate PDF documents from natural language with @json-render/react-pdf
- Stream document specs into a live PDF preview
- Constrain outputs to a react-pdf component catalog
Use cases
- Invoice generation
- Report creation
- Resume building
- Document automation demos
AI SDK APIs
streamTextgateway
Tags
json-renderpdfaidocument-generationstreaming
Requirements
- Node.js
- 24+
- Memory
- 256MB
- Other
- Vercel AI Gateway API key
Environment variables
AI_GATEWAY_API_KEYGet key
External services
googleupstash
Ready to use?
View the full interactive pattern with live preview and copy the source code.
View the pattern on desktop






