Skip to content
sujal-vaPublic

About

Resunate is a resume tailor platform which helps the user to tailor their resumes according to the given job description.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Resunate - Resume Tailor

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.

Features

  • 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.

Prerequisites

Setup

git clone https://github.com/sujalv28/resunate.git
cd resunate
npm install
cp .env.example .env

Open .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).

Running

npm start

Visit http://localhost:3000.

For auto-restart during development:

npm run dev

Usage

  1. Set the Google Drive file's sharing permission to "Anyone with the link".
  2. 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)
  3. Paste the full job description.
  4. Optionally check "Use my own Gemini API key" and paste a key, to avoid using the site owner's quota.
  5. Submit. Download the tailored resume as DOCX or PDF once processing finishes.

Project Structure

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

How It Works

  1. The Drive link is parsed for a file ID and downloaded through Google's public export/download endpoints.
  2. The file is converted to plain text (mammoth for DOCX, pdf-parse for PDF).
  3. 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).
  4. The structured result is rendered into DOCX (via the docx package) and PDF (via pdfkit) using a single built-in template.
  5. 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.

Known Limitations

  • 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.

Environment Variables

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.

About

Resunate is a resume tailor platform which helps the user to tailor their resumes according to the given job description.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages