Automated Contract Generation System
Generate employee contracts in seconds with powerful PDF generation, Excel processing, and document management capabilities.
Quick Start
Get up and running in minutes
Configure environment
Copy the example environment file and configure your settings.Set the required environment variables:
.env
Start the server
Launch the development server and start generating contracts.The API will be available at
http://localhost:3000/apiExplore Features
Powerful tools for contract management
Contract Types
Support for Planilla, Subsidio, and Part Time contracts with automatic template selection.
PDF Generation
Generate professional PDF contracts using Puppeteer with custom templates.
Excel Processing
Upload and parse employee data from Excel files with comprehensive validation.
Bulk Processing
Generate multiple contracts at once and download them as a ZIP archive.
Data Validation
Comprehensive validation using Zod schemas to ensure data integrity.
Addendum Support
Process and generate addendum documents for contract modifications.
API Endpoints
RESTful API for contract generation
Download ZIP
Generate multiple contracts and download as ZIP archive
POST /api/contracts/download-zip
Preview Contract
Generate and preview a single contract PDF inline
POST /api/contracts/preview
Upload Excel
Parse employee data from Excel files with validation
POST /api/excel/upload
Process Addendum
Upload Excel files to generate addendum documents
POST /api/addendum/upload
Ready to get started?
Follow our quickstart guide to set up Kontrak Backend and start generating contracts in minutes.
Get Started Now