Client-first tool for creating professional resumes from JSON data and HTML templates. Features web editor, CLI tool, role-specific guidance, and PDF output. Pe
Client-first tool for creating professional resumes from JSON data and HTML templates. Features web editor, CLI tool, role-specific guidance, and PDF output. Pe
A local-first tool to generate beautiful, professional CVs from JSON data and HTML templates. Perfect for developers, designers, and professionals who want full control over their CV presentation.
Before you begin, ensure you have the following installed:
Follow these steps to create your professional CV:
# Install Node.js dependencies
npm install
# Make the CLI tool executable
chmod +x src/generate.js# Navigate to docs directory
cd docs
# Start local server on port 9000
python3 -m http.server 9000
# Or using Node.js (if you have serve installed)
npx serve -s . -l 9000Access the editor at: http://localhost:9000
?data=backend-cv-schema - Backend developer example (default)?data=frontend-cv-schema - Frontend developer example?data=my-custom-job - Create new CV with custom job ID?data=https://api.example.com/cv/123 - Load from external URLmy-cv.json in your project directorycvgen_{job_id}Available Templates:
template-1.html - Clean, professional single-column layoutOutput Formats:
# Generate HTML file (recommended for most users)
node src/generate.js generate \
-t docs/cv-templates/template-1.html \
-i docs/cv-json-example/backend-cv-schema.json \
-o output/my-cv.html
# Generate PDF file
node src/generate.js generate \
-t docs/cv-templates/template-1.html \
-i docs/cv-json-example/frontend-cv-schema.json \
-o output/my-cv.pdf
# Validate your data before generating
node src/generate.js generate \
-t docs/cv-templates/template-1.html \
-i docs/cv-json-example/backend-cv-schema.json \
--validate-onlyYour generated CV will be saved in the output/ directory!
Jobpare CV Generator uses a modern web-based approach combining HTML/CSS/JavaScript for the editor and Node.js for document generation. This provides a simpler alternative to traditional LaTeX-based CV solutions.
?data= parameter system for loading different CVs| Feature | Jobpare CV Generator | Traditional LaTeX (e.g., Awesome-CV) |
|---|---|---|
| Setup | Simple npm install |
Complex LaTeX distribution setup |
| Learning Curve | Basic HTML/CSS or JSON | Steep; requires LaTeX syntax |
| Live Preview | Instant browser preview | Compile → View cycle |
| Customization | Visual editor or tweakable CSS | Manual code editing |
| Version Control | Clean JSON + template files | Mixed text + binary artifacts |
| Cross-Platform | Works on any OS with Node.js + Chrome | OS-specific LaTeX quirks |
| Dependencies | Minimal (Node.js, Puppeteer/Chrome) | Full LaTeX suite (TeX Live, MikTeX, etc.) |
| Output Quality | Clean, professional, print-ready PDF | Excellent typographic control |
cvgen delivers most of the output quality of LaTeX with a dramatically simpler setup and developer-friendly workflow.
Integrate the CV editor into your application using the simple postMessage API. The editor accepts CV data and processes it silently.
Note: The PostMessage integration is handled by integration.js which provides secure one-way communication to the CV editor.
…The integration uses a straightforward approach:
SET_CV_JSONThis approach is ultra-simple and reliable for most use cases.
{
type: 'SET_CV_JSON',
data: { /* CV JSON object */ }
}The editor processes data silently - no responses are sent back. Check the editor console for processing logs.
Important: Always validate the origin of PostMessage events for security:
window.addEventListener('message', (event) => {
// Always check the origin
if (event.origin !== 'https://jobpare.github.io') return;
// Process the message...
});Never use '*' as target origin in production - always specify the exact origin for security.
The editor automatically loads data from localStorage using the URL parameter (?data=my-cv-123) and saves with key cvgen_my-cv-123. PostMessage data is immediately applied and saved.
?data=cv_123453 - Load from localStorage with specific CV ID?data=https://api.example.com/cv/123 - Load from external URL?data=backend-cv-schema - Load backend developer example?data=frontend-cv-schema - Load frontend developer exampleThe editor automatically preloads example CVs into localStorage on first load:
cvgen_backend-cv-schema (default)cvgen_frontend-cv-schemaThis ensures fast loading and offline availability of example data without requiring external requests.
The editor uses a simple URL parameter system to load different CVs:
?data=my-job-123 - Loads from localStorage with key cvgen_my-job-123?data=https://api.example.com/cv/123 - Fetches data from external URL?data=backend-cv-schema or ?data=frontend-cv-schema - Loads preloaded exampleshttps://jobpare.github.io/cvgen/ # Backend example (default)
https://jobpare.github.io/cvgen/?data=frontend-cv-schema # Frontend example
https://jobpare.github.io/cvgen/?data=my-custom-cv # Custom CV
https://jobpare.github.io/cvgen/?data=https://api.com/cv # External URLcvgen_{job_id}…docs/cv-json-example/backend-cv-schema.jsondocs/cv-json-example/frontend-cv-schema.jsonYour CV data should follow this complete JSON structure:
…docs/cv-templates/template-1.html…| Option | Description |
|---|---|
-t, --template |
Path to HTML template file |
-i, --input |
Path to JSON input file |
-o, --output |
Path for output file (PDF or HTML) |
--html-only |
Generate HTML file only (skip PDF generation) |
--validate-only |
Only validate JSON data |
This project is licensed under the MIT License - see the LICENSE file for details.
See Contribution.md for the project roadmap and ways to contribute.
**Happy CV building! **
For questions or support, please open an issue on GitHub.
No open issues yet, or sync has not completed.