Developer-First PDF Generation API & Template Engine
Generate high-fidelity PDFs programmatically with performance, type safety, and exceptional developer experience.
DocumentStack empowers developers to create professional PDFs at scale:
- 📄 Invoices - Generate branded, compliant invoices in seconds
- 📊 Reports - Transform data into beautifully formatted reports
- 📋 Contracts - Automate legal document generation
- 🎨 Custom Documents - Design anything with our template engine
- 🔒 Type-Safe - Full TypeScript support with comprehensive types
- ⚡ High Performance - Optimized for speed and scalability
- 📚 Rich Documentation - Clear examples and comprehensive guides
- 🎯 Simple API - Intuitive interface, powerful capabilities
- 🏗️ Battle-Tested - Trusted for millions of documents
- 🔄 Reliable - 99.9% uptime SLA
- 📈 Scalable - From prototype to enterprise
- 🛡️ Secure - SOC 2 compliant infrastructure
import { DocumentStack } from '@documentstack/api';
const client = new DocumentStack({ apiKey: 'your_api_key' });
const pdf = await client.generate({
template: 'invoice',
data: {
invoiceNumber: 'INV-001',
date: '2026-01-10',
items: [
{ description: 'Consulting', amount: 1500 }
]
}
});
// pdf.url or pdf.buffer ready to use- @documentstack/api - Main API client library
- @documentstack/templates - Template engine and builders
- @documentstack/cli - Command-line tools
- documentstack-docs - Documentation site
We welcome contributions! Check out our Contributing Guide to get started.
Whether you're fixing bugs, adding features, or improving documentation - every contribution makes DocumentStack better for developers worldwide.
- 💡 Discussions - Questions, ideas, and community help
- 🐛 Issue Tracker - Bug reports and feature requests
- 📖 Documentation - Guides and API reference
- 🔐 Security - Report vulnerabilities responsibly
Most DocumentStack projects are MIT licensed. Check individual repositories for specific licensing.
Generate PDFs that make an impression