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.
| Technology | Purpose |
|---|---|
| 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.
- Keep
pnpm devrunning. - Open
chrome://extensions/and turn on Developer mode. - Click Load unpacked and choose
.output/chrome-mv3-dev/. - 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+Cin the terminal runningpnpm dev, then runpnpm devagain. Reload the development extension afterward.
Environment files
Copy .env.example to .env.development for local testing,
then set the values you need.
| Variable | Use |
|---|---|
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 file | Used for |
|---|---|
.env | All modes and browsers |
.env.local | Local overrides for all modes and browsers |
.env.development | pnpm dev |
.env.production | Optional settings for independent production builds |
.env.development.local | Local development overrides |
See WXT’s supported env files for the full list.
How do I configure Google Drive OAuth?
-
Enable Drive
- In Google Cloud Console , select your project.
- Under APIs & Services, open Library, find Google Drive API and click Enable if needed.
-
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.
-
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.
-
Load the amber development extension and copy its ID from
-
Test locally
-
Set
VITE_GOOGLE_DRIVE_CLIENT_IDin.env.developmentto the new client’s Client ID. - Restart
pnpm devand reload the development extension. - In Job Buddy’s Settings, click Connect Google Drive under Cloud Backup.
-
Set
-
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_IDand the value to the production client’s Client ID.
The release workflow and
pnpm zip:releaseboth use this variable. -
Create a Web application client with
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.
| Setting | Store as | Purpose |
|---|---|---|
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?
-
Find the listing ID
Open the extension in Chrome Web Store Developer Dashboard. Save its item ID as
CHROME_EXTENSION_ID. -
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.
-
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_IDand Client secret asCHROME_CLIENT_SECRETbefore 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.
-
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_TOKENvalue asCHROME_REFRESH_TOKEN.
-
Run the credential helper in your terminal.
-
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.
-
In the GitHub repository, open Settings, then
Environments. Open