Delivered remotely for a business based in Toronto, Canada. Names withheld by agreement.
Project Overview
Automated screening software rejects well-qualified candidates every day for two avoidable reasons: either resumes fail to surface relevant competencies using terminology aligned with a job posting, or decorative layouts confuse legacy Applicant Tracking System (ATS) parsers into scrambling work dates and contact details. Meanwhile, pasting a career history into a generic chat model frequently yields polished-sounding fabrications—invented project metrics or unrequested technologies that fall apart under recruiter scrutiny.
Partnering with a product team in Toronto, Canada, we engineered a schema-first AI resume builder powered by Next.js, Python, and PostgreSQL. The platform separates verified career facts from layout presentation, applies constrained Python tailoring pipelines against target job descriptions, and generates crisp, parser-friendly PDF documents with real-time browser previews.
Formatting Fragility & Factual Drift
Building a dependable career-authoring tool exposed sharp tensions between expressive visual design, generative flexibility, and machine readability:
- Hallucinated credentials: Unconstrained text generation frequently pads candidate bullets with inflated percentages or adjacent frameworks the candidate never touched.
- WYSIWYG-to-PDF mismatch: Browser previews rendered in standard flexbox grids frequently shift line wraps or orphan section headings when exported through mismatched server PDF engines.
- Hidden ATS parsing failures: Multi-column tables, custom icon fonts, and overlapping CSS layers look sleek visually yet extract as garbled out-of-order text inside enterprise recruiting portals.
- Version sprawl: Candidates applying across distinct role tracks quickly lose track of which edits belong in their master history versus a role-specific submission.
Architectural Strategy
We anchored the entire application on a canonical career-graph schema persisted in PostgreSQL. When a user imports an existing resume or fills out guided forms in Next.js, Python parsers normalize roles, dates, skills, and project artifacts into structured relational records and versioned JSONB snapshots.
Tailored resumes never overwrite the master career graph; instead, they store lightweight delta layers referencing underlying master items. Python FastAPI workers analyze target job postings to surface genuine skill alignment gaps and propose tighter action phrasing strictly bound to facts already present in the candidate's record. For document generation, the exact React print component displayed in the live Next.js preview compiles through Playwright and headless Chromium, eliminating preview-to-export drift.
Core Capabilities
- Structured Career Graph & Variant Diffing: Candidates maintain a single authoritative work history while branching tailored variants for distinct target roles with side-by-side change highlights.
- Grounded Job-Spec Alignment: Python NLP services extract core requirements from pasted job descriptions, score factual coverage against the user's profile, and highlight authentic phrasing improvements without inventing claims.
- Interactive Split-Pane Print Preview: Next.js renders live, paginated A4 and US Letter layouts with dynamic spacing controls and instant page-overflow warnings.
- ATS Parse-Check Diagnostics: Before download, a Python inspection pass reads back the exported PDF stream to confirm clean text linearity, selectable fonts, and intact section headers.
- Guided Legacy Resume Ingestion: Uploaded PDF and DOCX files decompose cleanly into editable structured sections with confidence flags on ambiguous date ranges.
Technical Architecture
Interactive editing happens optimistically in Next.js backed by PostgreSQL persistence, while Python FastAPI services isolate compute-heavy parsing, LLM-assisted phrasing suggestions, and Chromium PDF rendering.
Flow: Next.js Editor → Variant Persistence API (PostgreSQL Career Graph + Deltas) → Python FastAPI Tailoring Service (Job Spec Extraction + Grounded Rewrite Proposals) → Playwright Print Renderer (Semantic HTML/CSS → Tagged PDF) → Python ATS Text-Order Validator → Signed Download
Using identical React/CSS template definitions inside both the client preview and the Playwright print route solved the classic pagination drift bug. Rather than maintaining two template implementations—one in React and another in ReportLab or LaTeX—designers update a single semantic stylesheet governed by explicit @page rules and break-avoidance guards.
Technology Stack
| Category | Technology detail |
|---|---|
| Frontend Studio | Next.js with TypeScript, real-time split-pane editor, and live print preview |
| AI & Parsing Services | Python with FastAPI microservices for job-spec extraction and bullet refinement |
| Relational Data Store | PostgreSQL with JSONB versioning for canonical career graphs and tailored variants |
| PDF Rendering Pipeline | Headless Chromium via Playwright converting semantic HTML/CSS into tagged PDFs |
| Job & Rate Queue | Redis managing export job locks, rate limits, and transient job-description caches |
| ATS Verification | Python PDF text-order extractor checking reading flow and column integrity |
| Template System | Versioned React/CSS print templates enforcing predictable page-break rules |
| Object Storage | Signed S3-compatible bucket for generated exports and imported source resumes |
Engineering Trade-offs & Solutions
| Engineering Challenge | Solution & Trade-off |
|---|---|
| Rendering exact browser previews as ATS-safe PDFs | Standardized on headless Chromium via Playwright rather than lightweight JS PDF libraries; increases per-render memory footprint on workers while guaranteeing WYSIWYG parity and clean text-layer ordering. |
| Preventing generative rewrites from fabricating metrics or skills | Restricted Python prompt templates to source-grounded bullet transformation paired with entity diff checks, trading flashy speculative phrasing for strict factual fidelity. |
| Supporting flexible custom section order without rigid SQL migrations | Combined normalized identity/role tables with typed JSONB layout and delta structures in PostgreSQL, balancing relational integrity against rapid template iteration. |
| Protecting render workers from burst export traffic | Pooled warm Chromium contexts behind Redis concurrency locks and short-lived export caches, avoiding cold browser launch overhead on repeated layout tweaks. |
Privacy & Document Reliability
Resumes contain concentrated personally identifiable information—home addresses, phone numbers, employment timelines, and career histories. Incoming uploads undergo strict file-signature validation and sandboxed text extraction before entering PostgreSQL. Generated PDF artifacts live behind short-lived signed URLs rather than public static paths, and automated retention sweeps purge transient parsing artifacts promptly.
Reliability around document formatting receives equal rigor. Continuous regression tests render canonical long, sparse, and multi-page profiles through Playwright, verifying page counts, absence of clipped headers, and linear text extraction order on every template update.
Operational Outcomes
Treating resume authoring as structured data engineering rather than unconstrained text generation produced clear improvements across user trust and system maintainability:
- Credible AI assistance: Candidates adopt suggested phrasing confidently because edits refine verified achievements instead of sneaking fabricated qualifications into submissions.
- Zero preview surprises: What appears on the Next.js canvas matches the downloaded PDF down to margin spacing and page breaks.
- Dependable ATS compatibility: Every template passes automated linear text-order validation before shipping to production.
- Rapid template evolution: Frontend and design contributors refine print layouts in React and CSS without touching backend PDF generation code.