How nakulbhandare/onerole works
OneRole is a job-discovery and application-workflow platform with a browser UI, Go API, MongoDB persistence, and durable workers. The user-facing path runs from browsing discovered jobs and managing a profile to queuing an application and tracking its status; the README distinguishes queued intent from verified employer receipt. The graph also preserves authentication, source synchronization, and submission execution. Relationships use the README and shown excerpts; unsampled implementation details are omitted or shown only where documented.
Main entry points: App.jsx Browser application · main.go HTTP API · source_sync.go Source synchronization · application.go Application workflow
Components 23
Browser experience
- Browser application
oneRole_UI/src/App.jsx - UI state and API client
oneRole_UI/src/context/AppContext.jsx - Catalog and filters
oneRole_UI/src/components/dashboard/JobCatalogGrid.jsx - Application controls
oneRole_UI/src/components/autoApply/AutoApplyView.jsx - Application tracker
oneRole_UI/src/components/tracker/ApplicationTracker.jsx
API and identity
- HTTP API
main.go - Authentication
controller/auth.go - Catalog and profile APIs
controller/catalog.go - Application API
controller/application.go
Job discovery
- Source synchronization
worker/source_sync.go - Read-only job connectors
connectors/job_sources - Job catalog storage
repository/discovery.go
Application workflow
- MongoDB
db/db.go - Application persistence
repository/applications.go - Application workflow
service/application.go - Preparation and auto-apply
service/auto_apply_engine.go - Deterministic submission
service/deterministic_submission_engine.go - ATS submission worker
connectors/ats_submit/worker_daemon.js - Browser submitters
connectors/ats_submit - Durable event queue
queue/jetstream.go - Worker runtime
worker/runtime.go
Other components
- Job seeker
- NATS JetStream
Connections 23
- Job seeker → Browser application: uses
- Browser application → UI state and API client: uses
oneRole_UI/src/App.jsx - Browser application → Catalog and filters: renders
oneRole_UI/src/App.jsx - Browser application → Application controls: renders
oneRole_UI/src/App.jsx - Browser application → Application tracker: renders
oneRole_UI/src/App.jsx - UI state and API client → HTTP API: calls API
- HTTP API → Authentication: routes requests
main.go - HTTP API → Catalog and profile APIs: routes requests
main.go - HTTP API → Application API: routes requests
main.go - Application API → Application workflow: calls
controller/application.go - Application workflow → Application persistence: persists workflow
- Application persistence → MongoDB: reads and writes
repository/applications.go - HTTP API → Worker runtime: starts worker
main.go - Worker runtime → Source synchronization: runs sync
- Source synchronization → Read-only job connectors: fetches jobs
- Source synchronization → Job catalog storage: stores jobs
- Application workflow → Durable event queue: queues tasks
- Worker runtime → Durable event queue: consumes tasks
- Preparation and auto-apply → ATS submission worker: dispatches submission
- Preparation and auto-apply → NATS JetStream: publishes tasks
service/auto_apply_engine.go - ATS submission worker → NATS JetStream: consumes tasks
- ATS submission worker → Browser submitters: dispatches to
connectors/ats_submit/worker_daemon.js - Deterministic submission → MongoDB: records checkpoints
service/deterministic_submission_engine.go