How sp201004/applyonce works
ApplyOnce is a Chrome extension and web dashboard for building a reusable application profile, syncing it to the extension, and autofilling job forms for user review. The extension’s content script handles form interaction; the README also documents profile matching, local AI assistance, and resume parsing. The dashboard manages profile and resume data, while Supabase supplies authentication and storage. The extension’s internal dispatch and storage wiring is not established by the shown excerpts, so those connections are omitted; documented but unsampled capabilities are retained.
Main entry points: content.js Form autofill · DashboardClient.tsx Profile and resume editor · ConnectClient.tsx Extension session handoff · page.tsx Dashboard page
Components 21
Browser extension
- Form autofill
content/content.js - Repeated fields
content/repeat-groups.js - Extension service worker
background/background.js - Extension side panel
sidepanel/sidepanel.js - Provider settings
options/options.js - Provider configuration
provider-settings.js
Web dashboard
- Dashboard page
web/app/dashboard/page.tsx - Profile and resume editor
web/app/dashboard/DashboardClient.tsx - Resume parsing
web/lib/gemini-web.ts - Extension connect page
web/app/connect/page.tsx - Extension session handoff
web/app/connect/ConnectClient.tsx
Auth and profile data
- Extension profile endpoint
web/app/api/profile/route.ts - Session refresh endpoint
web/app/api/auth/refresh/route.ts - Sign-in callback
web/app/auth/callback/route.ts - Server auth client
web/lib/supabase/server.ts
AI assistance
- Extension Gemini client
background/gemini-model.js - Gemini service
- Groq service
Other components
- Job applicant
- Job application page
- Supabase auth and database
Connections 19
- Job applicant → Profile and resume editor: edits profile
README.md - Dashboard page → Profile and resume editor: renders
web/app/dashboard/page.tsx - Profile and resume editor → Resume parsing: parses resume
web/app/dashboard/DashboardClient.tsx - Dashboard page → Supabase auth and database: loads profile
web/app/dashboard/page.tsx - Profile and resume editor → Supabase auth and database: stores profile and resume
README.md - Job applicant → Extension connect page: connects extension
README.md - Extension connect page → Extension session handoff: renders
web/app/connect/page.tsx - Extension session handoff → Extension service worker: sends session
web/app/connect/ConnectClient.tsx - Extension session handoff → Supabase auth and database: gets session
web/app/connect/ConnectClient.tsx - Extension profile endpoint → Supabase auth and database: reads profile
web/app/api/profile/route.ts - Session refresh endpoint → Supabase auth and database: refreshes session
web/app/api/auth/refresh/route.ts - Sign-in callback → Server auth client: exchanges code
web/app/auth/callback/route.ts - Server auth client → Supabase auth and database: creates auth client
web/lib/supabase/server.ts - Job applicant → Job application page: opens application
README.md - Form autofill → Job application page: fills fields
README.md - Job applicant → Form autofill: reviews answers
README.md - Form autofill → Supabase auth and database: syncs profile
README.md - Form autofill → Gemini service: requests AI answers
README.md - Form autofill → Groq service: fallback answers
README.md