A Chrome extension built with TypeScript that demonstrates basic extension functionality.
- Background script for handling extension events
- Content script for interacting with web pages
- Popup UI with options and theme switching
- TypeScript for type safety and modern JavaScript features
- AI-powered job application form filling with ChatGPT or DeepSeek integration
This extension uses AI to help with job applications in two ways:
- ChatGPT (OpenAI): The primary AI service used for generating responses to job application questions.
- DeepSeek: An alternative AI service that can be used instead of ChatGPT.
To use ChatGPT with this extension:
- Create an OpenAI account at platform.openai.com
- Generate an API key from your account dashboard
- Configure the extension:
- Open the extension popup
- Select "OpenAI (ChatGPT)" as the AI service
- Enter your API key in the field provided
- Click "Save API Key"
If you don't provide an API key, the extension will use mock responses for testing purposes.
- Node.js and npm
- AI API key (from OpenAI or DeepSeek)
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables:
- Copy
env.example
to.env.local
- Add your API key to
.env.local
:or for OpenAI:DEEPSEEK_API_KEY=your_api_key_here
OPENAI_API_KEY=your_api_key_here
- This file is gitignored and will not be committed
- Copy
For development:
- Create an account at DeepSeek or OpenAI Platform
- Generate an API key from their developer dashboard
- Add the key to your
.env.local
file as described above
For users of the extension:
- Click on the extension icon to open the popup
- Enter your AI API key in the designated field
- Click "Save API Key"
- The key will be securely stored in Chrome's extension storage
To build the extension:
npm run build
For development with automatic rebuilding:
npm run watch
To build and copy static files:
npm run dev
- Build the extension using
npm run dev
- Open Chrome and navigate to
chrome://extensions/
- Enable "Developer mode" in the top right corner
- Click "Load unpacked" and select the
dist
directory from this project
src/
- TypeScript source filesbackground.ts
- Background scriptcontent.ts
- Content script that runs on web pagespopup.ts
- Script for the extension popupservices/
- Service modulesaiService.ts
- ChatGPT integration for AI-powered responsesautofillService.ts
- Form detection and filling functionalityjobFormService.ts
- Job board detection and form handlingstorageService.ts
- Chrome storage management
types/
- TypeScript type definitions
popup.html
- HTML for the extension popupmanifest.json
- Chrome extension configurationicons/
- Extension iconsenv.example
- Example environment variables template
ISC