How adityasinghrajawat/autoreach-backend works
AutoReach is a Go backend for automating candidate job searches, exposed as an HTTP API and a background worker. Its main workflow ingests and polls job postings, embeds jobs and resumes, matches them, then supports contact enrichment, outreach, assisted applications, and dashboard reporting. The README documents these product stages; sampled code confirms job ingestion queues embedding work and the binary starts the worker. Several subsystem connections are documented but their implementation was not sampled, so those edges cite the README.
Main entry points: matchingManagement Job matching · start.go Background worker · pollJobSource.go Job polling · enrichmentManagement Contact enrichment
Components 22
API and identity
- REST API
cmd/autoreach/app.go - Authentication
pkg/handlers/authManagement - Request handlers
pkg/dependencies/handlers.go - Domain services
pkg/dependencies/services.go
Jobs and matching
- Resume management
pkg/services/candidateManagement - Job ingestion
pkg/services/jobManagement/ingestJobs.go - Job polling
pkg/services/jobManagement/pollJobSource.go - Embeddings
pkg/integrations/ai/createEmbeddings.go - Job matching
pkg/services/matchingManagement
Candidate engagement
- Contact enrichment
pkg/services/enrichmentManagement - Email and LinkedIn
pkg/services/outreachManagement - Assisted applications
pkg/services/applicationManagement - Dashboard reporting
pkg/services/dashboardManagement
Worker runtime
- Background worker
worker/server/start.go - Task queue
worker/providers/asynq/server.go
Data and integrations
- Repositories
pkg/repositories - Application storage
pkg/repositories/applicationManagement/application.go - PostgreSQL
pkg/db/postgres.go
Other components
- Candidate
- Job sources
- Feed clients
- External providers
Connections 26
- Candidate → REST API: uses
- Job sources → Job polling: provides postings
- Feed clients → REST API: ingests jobs
- REST API → Request handlers: routes requests
cmd/autoreach/app.go - Request handlers → Domain services: calls
pkg/dependencies/handlers.go - Domain services → Repositories: wires repositories
pkg/dependencies/services.go - Candidate → Authentication: registers
- Candidate → Resume management: uploads resume
- Job ingestion → Task queue: publishes embedding tasks
pkg/services/jobManagement/ingestJobs.go - Job polling → Task queue: queues polling work
- Background worker → Task queue: consumes tasks
- Background worker → Job polling: polls sources
- Background worker → Embeddings: embeds postings and resumes
- Embeddings → Job matching: supports matching
- Resume management → Job matching: provides candidate resumes
- Job polling → Job matching: provides postings
- Job matching → Contact enrichment: feeds matched jobs
- Job matching → Assisted applications: feeds assisted apply
- Job matching → Dashboard reporting: reports matches
- Contact enrichment → External providers: queries providers
- Contact enrichment → Email and LinkedIn: supplies contacts
- Email and LinkedIn → External providers: sends and checks mail
- Assisted applications → External providers: submits to ATS
- Repositories → PostgreSQL: reads and writes
pkg/repositories/applicationManagement/application.go - Application storage → PostgreSQL: persists applications
pkg/repositories/applicationManagement/application.go - Background worker → Assisted applications: prepares applications