Skip to content

CV Builder Pro

React web app for building CVs and résumés with LaTeX templates, Markdown/PDF export and optional AI parsing.

CI License

Overview

AI-powered CV/Resume builder with LaTeX templates, multiple export formats, and optional AI parsing. Built with React + TypeScript, Tailwind, and shadcn/ui.

Key Features

  • Personal, Experience, Education, Skills, Projects sections with validation
  • Persistent local storage for CV data (no account required)
  • Exports: Markdown (.md), ASCII Text (.txt), LaTeX source (.tex) with selectable templates, and canonical CV data (cv.json)
  • Imports: cv.json (round-trips with the bamr87/cv build machine)
  • Optional AI CV parsing from pasted text or PDF (requires sign-in + API key)
  • Minimal auth layer using Firebase (email/password) to store AI settings

Tech Stack

  • React 19, TypeScript, Vite 6
  • Tailwind CSS 4, Radix UI + shadcn/ui
  • Firebase Auth + Firestore (for AI settings only)
  • pdfjs-dist for PDF text extraction

Quick Start

1) Install dependencies

npm install

2) Configure environment (optional but required for auth/AI) Create .env.local in the project root with your Firebase config:

VITE_FIREBASE_API_KEY=...
VITE_FIREBASE_AUTH_DOMAIN=...
VITE_FIREBASE_PROJECT_ID=...
VITE_FIREBASE_STORAGE_BUCKET=...
VITE_FIREBASE_MESSAGING_SENDER_ID=...
VITE_FIREBASE_APP_ID=...
If Firebase env vars are not set, the app still works offline for CV editing and exports, but Sign In and AI parsing are disabled.

3) Run the app

npm run dev
Open http://localhost:5000 (the Spark Vite plugin pins the dev server to port 5000; npm run kill frees it if something else is holding it).

Usage

Build your CV

  • Navigate the tabs: Personal → Experience → Education → Skills → Projects
  • Your data auto-saves to the browser (local storage). Use the "Save Progress" button anytime.

Export

  • Go to the Export tab
  • Choose format: Markdown, ASCII, LaTeX (.tex), or CV Data (cv.json)
  • For LaTeX, pick a template (Minimal Professional or Academic Scholar)
  • Use Quick actions for one-click common exports

Round-trip with bamr87/cv (the build machine)

bamr87/cv keeps the CV of record as data/cv.json — the exact shape this app edits — and runs the automation this app doesn't: CI-validated builds to Markdown/ASCII/LaTeX/HTML, a compiled PDF, GitHub Pages publishing, snapshot releases, and freshness reminders. VS Code is the primary editor over there (schema-backed completion, entry snippets, a rebuild-on-save watch task); this app is the visual/AI companion for two jobs it does better than a text editor: 1. AI intake — parse an existing resume or PDF into structured CVData, then Export cv.json and commit it as that repo's data/cv.json 2. Form-based editing on the go — Import cv.json (Export tab → Data File), edit in the forms, export back

The CVData shape is a two-repo contract: contract/cv.schema.json is a byte-identical vendored copy of that repo's schema, and npm test (scripts/contract-check.mjs) fails CI if the Cypress fixture stops validating against it or src/types/cv.ts is missing any contract property. Change the contract only backward-compatibly, upstream-first — see contract/README.md. The generation engine in that repo (builder/) is a Node port of this app's exporters over the same contract.

AI Parser (optional)

AI parsing extracts structured CV data from pasted text or PDF. - Sign in: Top-right → Sign in (email/password) - Open Settings and set your AI provider + API key (supported: xAI Grok, OpenAI, Affinda) - Go to AI Parser tab and either: - Upload a .txt or .pdf file, or - Paste your CV text - Click "Parse CV with AI". Review/adjust the imported data, then export.

Notes: - PDF support uses text extraction via pdf.js (layout may be imperfect depending on the source) - Your AI API key is saved under your user in Firestore; CV content remains in your browser storage - The provider's response is normalized through the same reader as Import cv.json, so anything that is not a CV in the contract shape is rejected with a toast instead of replacing your data - Affinda is selectable but not yet mapped: parseCvText returns its raw payload, which the normalizer rejects. Use xAI Grok or OpenAI for now

Page feedback

Every route shows the fleet's "Improve this page" button (bottom right) and a matching link in the header ("Feedback" on narrow screens). Both open one dialog that turns the reader's note into a prefilled GitHub issue on bamr87/cv-pro, labelled page-feedback, with the page, the environment and the console errors captured since load attached. Nothing is sent until the reader submits the form on GitHub under their own account, and the header link is a plain link to the issue form when JavaScript does not run. Feature CVPRO-006; contract: the hub's specs/FEEDBACK.md.

index.html loads fleet-feedback-capture.js first in <head>, so errors thrown while the app boots are kept, and mounts <fleet-feedback repo="bamr87/cv-pro"> with fleet-feedback.js before </body>. Both scripts live in the repository-root public/, which vite.config.ts sets as this app's publicDir, so the dev server serves them and npm run build copies them into dist/. They are vendored byte-identical from the hub's templates/feedback/ kit: never copy or edit them here; the hub upgrades them with tools/fanout.sh --kit feedback --upgrade. The user scenario verify/scenarios/page-feedback.yml checks the button, the capture buffer and the issue URL with window.open stubbed, so no issue is ever filed.

Project Structure

  • src/components/cv — Forms, AI parser, export panel, main CVBuilder
  • src/components/ui — shadcn/ui primitives (generated; add new ones with the shadcn CLI)
  • src/types/cv.ts — Strongly-typed CV data model
  • src/lib — Firebase init, export helpers, LaTeX templates, PDF extraction, AI client, cv.json reader/writer
  • src/pages — LoginPage, SettingsPage
  • contract/ — Vendored copy of the bamr87/cv cv.schema.json plus the update procedure
  • scripts/contract-check.mjs — The npm test contract gate
  • cypress/ — End-to-end specs and the round-trip cv.json fixture

Data Model (excerpt)

export interface CVData {
  personalInfo: {
    fullName: string;
    email: string;
    phone: string;
    location: string;
    website?: string;
    linkedin?: string;
    github?: string;
    summary: string;
  };
  experience: Array<{
    id: string;
    company: string;
    position: string;
    startDate: string;
    endDate: string;
    current: boolean;
    description: string;
    achievements: string[];
    location?: string;
  }>;
  education: Array<{
    id: string;
    institution: string;
    degree: string;
    field: string;
    startDate: string;
    endDate: string;
    gpa?: string;
    honors?: string;
    location?: string;
  }>;
  projects: Array<{
    id: string;
    name: string;
    description: string;
    technologies: string[];
    url?: string;
    github?: string;
    startDate: string;
    endDate?: string;
  }>;
  skills: Array<{ category: string; skills: string[] }>;
  certifications: string[];
  languages: string[];
}

LaTeX Templates

Two starter templates are included and selectable in the Export tab: - Minimal Professional (Article-based) - Academic Scholar (moderncv)

Generated .tex can be compiled externally (e.g., Overleaf) if you don’t have a local LaTeX toolchain.

Scripts

  • npm run dev — Start the dev server on http://localhost:5000 (the Spark Vite plugin pins the port; it is not Vite's usual 5173)
  • npm run build — Build for production (tsc -b --noCheck && vite build) — --noCheck means type errors do not fail the build; use npm run lint and npx tsc --noEmit for type feedback
  • npm run preview — Preview the production build
  • npm run lint — Lint source
  • npm test — Contract gate: fixture validates against contract/cv.schema.json; types cover every contract property
  • npm run optimize — Vite dependency optimization
  • npm run kill — Free port 5000 (fuser -k 5000/tcp), for the parent repo's compose setup

Testing

npm test runs the contract gate (scripts/contract-check.mjs) and is what CI enforces — it needs no browser and no dev server.

The Cypress end-to-end specs in cypress/e2e drive a running dev server at http://localhost:5000 (Cypress's baseUrl; override with CYPRESS_BASE_URL), so start it first:

npm run dev                 # in one terminal
npx cypress run             # headless, all specs — in another
npx cypress open            # interactive runner

Environment & Security

  • Do not embed AI provider API keys in client env vars; use the in-app Settings page so keys are stored per-user in Firestore
  • If Firebase is not configured, auth and AI features are disabled, but local editing and exports continue to work

Deployment

Deploy the built dist to any static host (e.g., Vercel, Netlify). Remember to set Firebase env vars in your hosting platform if you want auth/AI to work.

Contributing

Contributions are welcome via pull request. Use Conventional Commits and keep the CI checks green. The fleet-wide workflow is described in the hub's CONTRIBUTING.md. AI agents start with AGENTS.md; CLAUDE.md imports it for Claude Code.

Changelog

Notable changes are recorded in CHANGELOG.md; the full record is in the commit history.

License

MIT — see LICENSE.


Part of the bamr87 portfolio — browse every project on Amr's GitHub profile.