A modern, dark-themed web application for adding professional letterheads and digital signatures to documents. Built with Next.js 14, TypeScript, and Tailwind CSS.
flowchart TD
A[👤 Start] --> B[📄 Upload Document]
B --> C[⚙️ Configure Features]
C --> D[📥 Download Result]
B1[📋 Letterhead<br/>Company info & logo]
B2[✍️ Signature<br/>Digital signing]
B3[👀 Preview<br/>Live document view]
C --> B1
C --> B2
C --> B3
D1[📄 PDF Export]
D2[🖼️ Image Export]
D3[⚙️ Quality Options]
D --> D1
D --> D2
D --> D3
classDef main fill:#4facfe,stroke:#333,stroke-width:3px,color:#fff
classDef feature fill:#21262d,stroke:#4facfe,stroke-width:2px,color:#f0f6fc
classDef output fill:#10b981,stroke:#333,stroke-width:2px,color:#fff
class A,B,C,D main
class B1,B2,B3 feature
class D1,D2,D3 output
- 🎨 Professional Letterhead: Company branding, logo integration, custom styling
- ✍️ Digital Signatures: Multiple styles (handwritten/typed/image) with drag positioning
- 📄 Multi-Format Support: PDF, Word docs, images (up to 10MB)
- 🌙 Dark-First Design: Modern UI with blue accents
- ⚡ Real-time Preview: Interactive document preview
# Clone and install
git clone <repository-url>
cd docr
npm install
# Start development
npm run dev
# Open http://localhost:3000docr/
├── app/ # Next.js 14 App Router
│ ├── document-processor/ # Upload page
│ ├── letterhead-signature/# Config page
│ ├── process-document/ # Processing page
│ └── page.tsx # Landing page
├── components/ # React components
│ ├── document-preview/ # Preview with interactions
│ ├── letterhead/ # Letterhead editor
│ ├── signature/ # Signature editor & dragging
│ └── ui/ # Base UI components
├── lib/ # Core logic
│ └── document-processor.ts # Processing engine
└── types/ # TypeScript definitions
- Framework: Next.js 14, TypeScript, Tailwind CSS
- UI: Radix UI, shadcn/ui, Lucide React
- Processing: html2canvas, jsPDF, React Dropzone
- Upload: Drag & drop or browse files (PDF, DOC, images)
- Configure: Choose letterhead and/or signature features
- Customize: Add company details, upload logos, position signatures
- Process: Select output format (PDF/PNG/JPG) and quality
- Download: Get your professionally formatted document
- No environment variables required for basic functionality
- Client-side processing - no server required
- Chrome 90+, Firefox 88+, Safari 14+, Edge 90+
- Requires: File API, Canvas API
- 100% client-side processing - documents never leave your browser
- Session storage only - temporary data cleared after use
- No server uploads - complete privacy protection
# Production build
npm run build
npm start
# Deploy to Vercel
npm install -g vercel
vercelFile upload issues: Check file size (<10MB) and format support Processing errors: Check browser console, verify required fields
MIT License - see LICENSE for details.
Docr - Professional document processing in the dark. Built with ❤️ for modern workflows.