HomeCase studiesSchema-Driven AI Resume Builder & ATS Document...

Case study · Toronto, Canada

Schema-Driven AI Resume Builder & ATS Document Engine

Career Tech & HR SaaS

Job seekers using generic AI writing tools routinely receive fabricated accomplishments alongside fragile multi-column PDFs that applicant tracking parsers scramble. We engineered a structured AI resume builder using Next.js, Python, and PostgreSQL. The platform stores verified career histories as normalized schemas, runs Python tailoring pipelines constrained strictly to factual source records, and renders clean, machine-readable PDF exports through a deterministic print engine.

Industry
Career Tech & HR SaaS
Solution
A web and API career authoring platform built with Next.js, Python, and PostgreSQL that pairs factually grounded AI bullet tailoring with pixel-accurate, ATS-parseable PDF generation.
Platforms
Web & API
Stack
Next.js · Python · PostgreSQL · FastAPI · TypeScript · Playwright
Location
Toronto, Canada · delivered remotely
Role
Engineering, with the team behind for mobile and QA

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.

01 — Questions

asked about this kind of project

How do you stop the AI from inventing fake metrics, tools, or job titles when tailoring a resume?

Every tailoring pass runs against a canonical PostgreSQL career graph rather than freeform prose. The Python service validates generated bullets against source entities and explicitly flags any unsupported tool names or unverified quantitative claims before showing suggestions to the user.

Why use Playwright and Chromium for PDF export instead of a client-side canvas or pure-JS PDF library?

Client-side canvas exports often rasterize text or scramble underlying reading order, breaking automated applicant tracking parsers. Rendering semantic HTML and CSS print stylesheets in headless Chromium produces selectable text, true hyperlinks, and reliable multi-page pagination.

How does the system verify that exported PDFs parse cleanly in Applicant Tracking Systems?

After rendering, a Python verification step extracts raw text blocks and bounding boxes from the generated PDF to confirm linear reading order, intact contact headers, and zero clipped margins before releasing the download link.

Why keep Next.js separate from the Python AI and document services?

Next.js delivers snappy interactive editing, optimistic state updates, and SEO landing routes in TypeScript, while Python hosts PDF text extraction, NLP keyword alignment, and headless rendering workers without blocking frontend server threads.

How are multiple tailored resume versions managed without duplicating a user's entire profile?

PostgreSQL stores one canonical master profile alongside lightweight variant overlays referencing specific roles, bullet overrides, and section ordering. Updating an employer date or certification once propagates cleanly unless explicitly overridden.

How do you protect sensitive applicant PII uploaded inside legacy PDFs or Word documents?

Uploaded files pass through ephemeral memory parsing with strict MIME validation, temporary objects expire automatically from storage, and users can trigger permanent account and variant deletion across PostgreSQL and bucket archives.

03 — Similar project?

describe what is different about yours

Build yours.

Tell me what exists, what you need and the deadline. Fixed price for a defined scope, or $55/day (8–9 hours work) with a written plan first.

Solitaire Corporate Park, Makarba, Ahmedabad, Gujarat 380015, India · IST (UTC+5:30) · --:-- IST · Mon–Fri 09:00–18:00 IST · US & EU overlap daily

No newsletter, no CRM. Just a reply.