Tailors a resume to a specific job description using Google's Gemini 3.5 Flash Lite. Fetches the resume directly from a public Google Drive or Google Docs link, rewrites it around the job description, and returns downloadable DOCX and PDF versions.
- Accepts resumes in three formats via a Google Drive share link: PDF, DOCX, and native Google Docs.
- Uses Gemini 3.5 Flash Lite to restructure and rewrite resume content around a target job description, without fabricating experience.
- Bring Your Own Key (BYOK): visitors can optionally supply their own Gemini API key instead of using the site owner's shared key.
- Outputs a clean, single-template DOCX and PDF, generated on the fly, no storage.
- Minimal stateless frontend, no accounts, no database.
- Node.js v18 or later
- A Gemini API key from Google AI Studio
git clone https://github.com/sujalv28/resunate.git
cd resunate
npm install
cp .env.example .envOpen .env and set your key:
GEMINI_API_KEY=your_actual_gemini_key_here
PORT=3000
This key is the fallback used when a visitor does not provide their own key via Bring Your Own key (BYOK).
npm startVisit http://localhost:3000.
For auto-restart during development:
npm run dev- Set the Google Drive file's sharing permission to "Anyone with the link".
- Paste the share link into the form. Supported link types:
https://drive.google.com/file/d/{ID}/view(PDF or DOCX upload)https://docs.google.com/document/d/{ID}/edit(native Google Doc)
- Paste the full job description.
- Optionally check "Use my own Gemini API key" and paste a key, to avoid using the site owner's quota.
- Submit. Download the tailored resume as DOCX or PDF once processing finishes.
resunate/
├── server.js Express app entry point
├── routes/
│ └── tailor.js POST /api/tailor, GET /api/download/:token/:type
├── utils/
│ ├── driveFetch.js Extracts file ID from Drive/Docs links, downloads file
│ ├── extractText.js Converts DOCX/PDF buffers to plain text
│ ├── gemini.js Calls Gemini 3.5 Flash Lite with a JSON schema for structured output
│ ├── buildDocx.js Renders structured resume JSON into a DOCX file
│ └── buildPdf.js Renders structured resume JSON into a PDF file
├── public/ Static frontend (HTML/CSS/JS)
├── .env.example Template for required environment variables
└── package.json
- The Drive link is parsed for a file ID and downloaded through Google's public export/download endpoints.
- The file is converted to plain text (mammoth for DOCX, pdf-parse for PDF).
- The resume text and job description are sent to Gemini 3.5 Flash Lite with a fixed JSON schema, forcing structured output (name, summary, skills, experience, education, projects).
- The structured result is rendered into DOCX (via the
docxpackage) and PDF (viapdfkit) using a single built-in template. - Generated files are held in memory for 10 minutes behind a one-time download token, then discarded. Nothing is persisted to disk or a database.
- No detection of private Drive links; an inaccessible link returns a generic error.
- Files larger than roughly 25MB may trigger Google Drive's virus-scan warning page instead of a direct download.
- No rate limiting on the shared server-side API key. Heavy use by visitors who skip BYOK will consume the owner's quota.
- Original resume formatting (fonts, columns, tables, layout) is not preserved. Output always uses the single built-in template.
- No user accounts or history. Each session is stateless.
| Variable | Required | Description |
|---|---|---|
GEMINI_API_KEY |
Yes | Server-side fallback Gemini API key, used when a visitor does not supply their own. |
PORT |
No | Port the server listens on. Defaults to 3000. |