Case Study

AI Cover Letter Generator

Resume in, tailored cover letter out, under 30 seconds.

View Live GitHub
<30sGeneration time
3Export formats
3AI model fallback chain
AI Cover Letter Generator screenshot

Overview

A web app that takes a resume and job description and generates a tailored cover letter using OpenAI. The API route extracts context like company name, role, and industry from the input, builds industry-specific prompts using the STAR method, and falls back through a 3-model chain if one is unavailable. Form data is LZ-string compressed and auto-saved to sessionStorage so nothing is lost on refresh. Export as formatted PDF, Word, or plain text.

Key Features

  • 01Prompt engineering with regex context extraction and industry-specific STAR method structure
  • 02Compressed session persistence with 3-second debounce auto-save
  • 03Multi-format export: PDF with auto-pagination, Word with paragraph styling, plain text
  • 04Full accessibility infrastructure: focus trapping, aria-live announcements, reduced motion, keyboard shortcuts

Built With

Next.js 15React 19TypeScriptOpenAI APITailwind CSSjsPDFVercel