Develop Job Buddy

On this page

Set up Job Buddy locally, test changes, and prepare a Chrome Web Store release.

The MIT license  lets you use, copy and modify Job Buddy for personal or commercial projects. You can build on it, include it in other software, and share or sell your versions. Keep the copyright and license notice with copies or substantial parts of the code.

Tech stack

Job Buddy targets Chrome Manifest V3 . Its website uses plain HTML, CSS and JavaScript.

TechnologyPurpose
WXT  Builds the extension and runs its development server through Vite.
React  Renders the popup and options page interfaces.
TypeScript  Checks types across profile data, autofill logic and extension messages.
Tailwind CSS  Styles extension interfaces, including themes and responsive layouts.
Vitest  Runs unit and component tests.
Playwright  Produces opt-in screenshots and demo recordings.

Requirements

Install these tools to build and run Job Buddy on your device.

Tool Minimum or required version Purpose
Node.js  22.13.0 or newer within Node 22 Runs the development server, build tools and tests.
pnpm  11.7.0, pinned by the project Installs dependencies and runs project commands.
Git  No minimum specified Clones the repository and tracks code changes.
Google Chrome  No minimum specified Loads the extension and tests autofill on job forms.

Set up the project

Clone the repository, install its dependencies and start the development build.

git clone https://github.com/myowinthein/job-buddy.git
cd job-buddy
pnpm install
pnpm dev

pnpm dev opens a new Chrome window and loads the development extension with an amber Job Buddy logo. Job Buddy’s development server runs at http://127.0.0.1:5173.

Can I use my regular Chrome profile?

Yes. This is useful for testing real Google sign-in, which may be restricted in the browser opened by WXT.

  1. Keep pnpm dev running.
  2. Open chrome://extensions/ and turn on Developer mode.
  3. Click Load unpacked and choose .output/chrome-mv3-dev/.
  4. The amber development extension stores data separately from the blue live version.
When should I reload the extension or refresh a form?

Keep pnpm dev running while you edit. The action depends on what changed.

  • Popup or options page changes usually appear automatically. If they do not, reopen the popup or refresh the options page.
  • Autofill or content script changes need a fresh copy on the job form. Open chrome://extensions/, find the amber Job Buddy development extension and click Reload. Then refresh the job form.
  • A new HTML entrypoint needs a server restart. Press Ctrl+C in the terminal running pnpm dev, then run pnpm dev again. Reload the development extension afterward.

Environment files

Copy .env.example to .env.development for local testing, then set the values you need.

VariableUse
VITE_GOOGLE_DRIVE_CLIENT_ID Enables Google Drive backups through this build’s shared OAuth client ID.
VITE_GEMINI_API_KEY Optionally preloads your Gemini key for local development.

Restart pnpm dev after editing an env file to load the updated values.

Which env files does WXT support?
Env fileUsed for
.envAll modes and browsers
.env.localLocal overrides for all modes and browsers
.env.developmentpnpm dev
.env.productionOptional settings for independent production builds
.env.development.localLocal development overrides

See WXT’s supported env files  for the full list.

How do I configure Google Drive OAuth?
  1. Enable Drive
    • In Google Cloud Console , select your project.
    • Under APIs & Services, open Library, find Google Drive API and click Enable if needed.
  2. Configure consent
    • Open APIs & Services, then OAuth consent screen to reach Google Auth Platform.
    • If prompted, click Get Started, enter the app name, support email and contact email, and choose External for personal Google accounts.
    • Under Audience, if Publishing status is Testing, use Test users and Add users to add your test accounts, then click Save.
    • Under Data Access, click Add or remove scopes, select https://www.googleapis.com/auth/drive.appdata, then click Update and Save.
  3. Create the OAuth client
    • Load the amber development extension and copy its ID from chrome://extensions/.
    • In Google Auth Platform’s Clients, click Create client, choose Web application as the Application type and name it Job Buddy development.
    • Under Authorized redirect URIs, click Add URI and enter https://<DEV_EXTENSION_ID>.chromiumapp.org/ using the copied ID, including the trailing slash. Click Create.
  4. Test locally
    • Set VITE_GOOGLE_DRIVE_CLIENT_ID in .env.development to the new client’s Client ID.
    • Restart pnpm dev and reload the development extension.
    • In Job Buddy’s Settings, click Connect Google Drive under Cloud Backup.
  5. Prepare for public use
    • Create a Web application client with https://<PUBLISHED_EXTENSION_ID>.chromiumapp.org/ as its authorized redirect URI.
    • Under Audience, select Publish app and confirm the status is In production. Complete any checks requested in Verification Center.
    • In the GitHub repository, open Settings → Environments → production. Under Environment variables, choose Add variable. Set the name to VITE_GOOGLE_DRIVE_CLIENT_ID and the value to the production client’s Client ID.

    The release workflow and pnpm zip:release both use this variable.

Use the dev bar

The bar appears only in development builds, at the top of the options page.

Use temporary sample profiles and integration toggles to test features. Original mode uses your saved data, where changes persist.

How do simulated profiles work?

Empty, Required only and Complete load sample profiles at different completion levels, with copies of your settings and learned mappings. Changes to this temporary data reset when you refresh the options page.

Click Original to return to your saved profile, where changes persist.

How do the integration toggles work?

Turn API key or Google Drive off to test features without that integration. Turning it back on restores access to your saved key or connection. If no Gemini key is saved, AI uses sample responses. Drive requires a real connection in the unpacked extension.

Simulated profiles can restore Drive backups, but cannot upload data, delete backups or disconnect your saved Drive connection.

Commands

Run these commands from the project’s root folder.

Develop

Develop for Chrome

Start the extension’s development build in Chrome, with the popup and options page available.

pnpm dev
Develop for Firefox

Start the extension’s development build in Firefox, with the popup and options page available.

pnpm dev:firefox
Website preview

Preview the user and developer guides and demo form locally.

pnpm serve:landing

Check

TypeScript check

Find type errors across the project.

pnpm compile
Unit tests

Automatically rerun affected function and component tests when you save changes.

pnpm test

Run all unit tests once, then exit.

pnpm test:run

Run one test file once, replacing the example path with your file.

pnpm test:run src/autofill/mapper.test.ts
Format and lint

Format a file and apply automatic lint fixes, replacing path/to/file with its path.

pnpm prettier -w path/to/file
pnpm eslint path/to/file --fix

Format files and apply automatic lint fixes across the repository.

pnpm format
pnpm lint:fix

Build

Build or package for Chrome

Build production Chrome files in .output/chrome-mv3/ to load unpacked or use in captures.

pnpm build

Build a Chrome Web Store ZIP in .output/ for upload.

pnpm zip

To build a ZIP with Job Buddy’s release settings, sign in to GitHub CLI with repository access and run:

pnpm zip:release
Build or package for Firefox

Build production Firefox files in .output/.

pnpm build:firefox

Build a Firefox ZIP in .output/ for distribution.

pnpm zip:firefox

Capture

Run these commands with a coding agent so it can review changes since the last capture and recommend what to keep, update, add or remove. Approve its plan before generation.

Install Playwright’s Chromium

Capture scripts use this browser with fictional profiles and simulated integrations.

pnpm playwright install chromium
Demo job application form

Refresh the filled form image used in the README and website.

node scripts/capture-demo.mjs

Refresh the light and dark autoplay videos with FFmpeg .

node scripts/capture-demo-motion.mjs

The image is saved to docs/assets/images/ and videos to docs/assets/videos/.

Job Buddy popup and options pages

Capture light and dark screenshots with Playwright and cwebp .

node scripts/capture-site.mjs

WebP images are saved to docs/assets/screenshots/.

Promotional video

Record a browser presentation with Kokoro  narration and subtitles.

pnpm capture:promo

The MP4 video and SRT/VTT subtitles are saved to .output/promo/.

Release setup

Pushing a version tag such as v1.14.4 starts GitHub Actions. It checks the code, builds the extension, uploads a Chrome Web Store draft and creates a GitHub release.

Add these settings to the repository’s GitHub production environment.

SettingStore asPurpose
VITE_GOOGLE_DRIVE_CLIENT_ID Variable Set up Google Drive OAuth
CHROME_EXTENSION_ID Secret Identify the store listing
CHROME_CLIENT_ID Secret Identify the publishing client
CHROME_CLIENT_SECRET Secret Authenticate the publishing client
CHROME_REFRESH_TOKEN Secret Authorize store uploads

Review the draft in Chrome Web Store Developer Dashboard  and click Submit for Review. Submission is intentionally manual, though the upload tool can automate it.

How do I configure Chrome Web Store uploads?
  1. Find the listing ID

    Open the extension in Chrome Web Store Developer Dashboard. Save its item ID as CHROME_EXTENSION_ID.

  2. Prepare the project
    • In Google Cloud Console , select the project used for publishing.
    • Under APIs & Services, open Library, find Chrome Web Store API and click Enable if needed.
    • If Google Auth Platform needs setup, follow the app-details and test-user steps in the OAuth setup instructions above.
  3. Create the publishing client
    • In Google Auth Platform, open Clients and click Create client. Set Application type to Desktop app, name it Job Buddy uploads and click Create.
    • Save Client ID as CHROME_CLIENT_ID and Client secret as CHROME_CLIENT_SECRET before closing the creation dialog. Google shows the full secret only once.
    • For an existing client, find Client ID under Additional information. Use your saved secret, or click Add client secret and save the newly generated value.
  4. Generate the refresh token
    • Run the credential helper in your terminal.
      npx chrome-webstore-upload-keys
    • Enter the saved values at the Client ID and Client secret prompts, then choose to open the authentication page in your browser.
    • Sign in with the Google account that owns the store listing and approve the requested Chrome Web Store access.
    • When the helper finishes, save the printed REFRESH_TOKEN value as CHROME_REFRESH_TOKEN.
  5. Save the GitHub secrets
    • In the GitHub repository, open Settings, then Environments. Open production, or create it with New environment and Configure environment.
    • Under Environment secrets, use Add secret to save the four CHROME_ settings from the table above.