A local-first AI agent that automates 80�95% of the job application pipeline � from discovery to submission � running entirely on your machine via Docker Compose.
Job searching is repetitive, time-consuming, and error-prone. You copy-paste the same info into dozens of forms, tailor resumes manually for each posting, and lose track of which companies you applied to. This agent handles the tedious 80% so you can focus on the 20% that actually matters: interview prep and career decisions.
Everything stays on your machine. No cloud storage, no third-party analytics, no data leaving your network. Your job search data is yours.
- Job Discovery � Scrapes configurable sources (Indeed, RemoteOK, Greenhouse, Lever, and more) on a schedule. New postings are scored and ranked automatically.
- AI-Powered Scoring � Each job is evaluated against your profile and preferences. Scores fall into three tiers: AUTO (95+, submit immediately), REVIEW (80�94, human approval), REJECT (<80, skip).
- Resume Generation � Produces ATS-friendly PDF resumes from LaTeX templates, tailored to each job's requirements.
- Cover Letter Generation � Writes personalized cover letters that reference specific role requirements and your experience.
- Automatic Form Filling � Browser automation fills and submits application forms via Playwright, handling dynamic JS-heavy career pages.
- Email Monitoring � Tracks inbound email via Microsoft Graph API (confirmations, interview invitations, recruiter outreach).
- Voice Interview Coaching � Real-time AI conversation practice using LiveKit and OpenAI's realtime voice model.
- RAG Knowledge Base � Store and retrieve information from your career history, past applications, and research using pgvector embeddings.
| Layer | Technology | Purpose |
|---|---|---|
| Reverse Proxy | nginx 1.27 | TLS termination, rate limiting, security headers |
| Backend API | Go 1.26, Gin, sqlx, zap | REST API server on :8080 |
| Task Worker | Go 1.26, Asynq, Redis | Async job processing (scraping, generation, form filling) |
| Browser Agent | TypeScript, Playwright, Express | Headless browser automation on :3001 |
| Frontend | Next.js 16, React 19, Tailwind CSS v4 | Dashboard UI on :3000 |
| Database | PostgreSQL 16 + pgvector | Persistent storage and vector embeddings |
| Queue/Cache | Redis | Asynq task queue and application cache |
| LLM Inference | Ollama (local) | Local embedding and text generation |
| Voice | LiveKit + OpenAI Realtime | Real-time voice interview coaching |
| Orchestration | Docker Compose | 9-service local + production deployment |
- Docker Desktop (includes Docker Compose v2)
- 16 GB RAM recommended (Ollama + PostgreSQL + Redis + 4 app services)
- ~10 GB disk for Docker images and Ollama models
git clone <your-repo-url> MyJob cd MyJob cp .env.example .env
Edit .env and add your API keys (optional features work without them):
# Required for cloud LLM generation (optional if using Ollama only) OPENAI_API_KEY=sk-... # Required for email monitoring (optional) MS_TENANT_ID=... MS_CLIENT_ID=... MS_CLIENT_SECRET=... # Required for voice coaching (optional) LIVEKIT_API_KEY=devkey LIVEKIT_API_SECRET=devsecret
make setup
This will:
- Create
.envfrom.env.exampleif missing - Start PostgreSQL and Redis
- Generate
.envwith bcrypt password hash
make migrate
make start
Open http://localhost:3001 in your browser.
Default login:
- Username:
admin - Password:
admin
Important: Change your password after first login via Settings ? Security ? Change Password. The backend uses bcrypt with cost 10 for password hashing.
| Service | URL | Description |
|---|---|---|
| Frontend | http://localhost:3000 | Dashboard UI |
| API | http://localhost:8080 | REST API |
| Browser Agent | http://localhost:3001 | Automation service |
| Ollama | http://localhost:11434 | Local LLM API |
Run services individually for faster iteration:
# Start only infrastructure (PostgreSQL, Redis) docker compose up -d postgres redis # Run each service locally in separate terminals make dev-api # Go API on :8080 make dev-worker # Go Worker (async task processor) make dev-frontend # Next.js on :3001 make dev-browser # Browser Agent on :3000
make build-api # Go API binary ? bin/api.exe make build-worker # Go Worker binary ? bin/worker.exe make build-frontend # Next.js production build make build-browser # TypeScript compilation
make test # All tests make test-api # Go backend only make test-frontend # Next.js only
make shell-postgres # psql CLI make shell-redis # redis-cli make shell-api # Shell into API container make shell-worker # Shell into Worker container
MyJob/
+-- backend/ # Go backend (API + Worker)
� +-- cmd/
� � +-- api/ # API server entrypoint
� � +-- worker/ # Async worker entrypoint
� +-- internal/
� � +-- api/ # HTTP handlers and routes
� � +-- applications/ # Application tracking domain
� � +-- approvals/ # Score-tier approval workflow
� � +-- config/ # YAML config loader
� � +-- coverletters/ # Cover letter generation
� � +-- database/ # Migrations and DB setup
� � +-- emails/ # Microsoft Graph email sync
� � +-- interviews/ # Interview coaching
� � +-- jobs/ # Job discovery and scoring
� � +-- profile/ # User profile management
� � +-- rag/ # RAG knowledge base
� � +-- resumes/ # LaTeX resume generation
� � +-- tasks/ # Asynq task definitions
� +-- Dockerfile.api
� +-- Dockerfile.worker
� +-- go.mod
+-- browser-agent/ # TypeScript browser automation
� +-- src/ # Playwright-based automation
� +-- Dockerfile
� +-- package.json
+-- frontend/ # Next.js dashboard
� +-- src/ # App Router pages and components
� +-- package.json
� +-- tsconfig.json
+-- config/
� +-- application.yaml # Scoring tiers, LLM providers, queue config
+-- templates/
� +-- resumes/ # LaTeX resume templates
� +-- cover-letters/ # LaTeX cover letter templates
+-- storage/ # Generated files (gitignored)
+-- nginx/ # Reverse proxy (production)
| +-- Dockerfile
| +-- nginx.conf
| +-- conf.d/
+-- scripts/ # Setup and utility scripts
+-- Makefile # Dev workflow commands
+-- docker-compose.yml # 9-service local orchestration
+-- docker-compose.production.yml # Security-hardened production override
+-- .env.example # Environment variable template
+-- .env.production # Production environment template
All mutation endpoints return a { taskId } immediately. Clients poll GET /tasks/:id for results. This keeps HTTP requests fast and moves heavy work (scraping, PDF generation, form submission) to the background worker.
Client ? POST /api/jobs/apply ? { taskId: "abc123" }
Client ? GET /tasks/abc123 ? { status: "completed", result: {...} }
Jobs are scored 0�100 against your profile. Tiers are configured in config/application.yaml:
| Tier | Score Range | Action |
|---|---|---|
| AUTO | 95+ | Auto-submit application |
| REVIEW | 80�94 | Pause, notify for human approval |
| REJECT | <80 | Skip, log for reference |
Tiers are immutable policy � thresholds live in config, not code. Edit the YAML to tune them without redeployment.
Production uses nginx as a reverse proxy with TLS termination, rate limiting, and security hardening. All internal services are isolated behind the Docker network — only nginx is exposed externally.
# One-command setup (generates secrets, SSL certs, builds images, starts services) make setup-production # Or with a custom domain bash scripts/deploy-setup.sh --method docker --profile production --domain myapp.example.com --email [email protected]
# 1. Configure environment cp .env.production .env # Edit .env with your passwords, API keys, domain # 2. Generate SSL certificates bash scripts/setup-ssl.sh --domain myapp.example.com # 3. Set admin password make hash-password PASSWORD=yourpassword # 4. Build and start make build-production make start-production
make start-production # Start with nginx (production mode) make stop-production # Stop production services make build-production # Build production images make logs-production # Tail production logs make nginx-test # Validate nginx config make health-check-production # Check all service health make shell-nginx # Shell into nginx container
| Feature | Implementation |
|---|---|
| Reverse Proxy | nginx fronting all traffic, only :80/:443 exposed |
| Rate Limiting | API: 10r/s burst 20, Auth: 5r/m burst 3 |
| Security Headers | HSTS, CSP, X-Frame-Options, X-Content-Type-Options, CORS |
| TLS Hardening | TLS 1.2/1.3 only, strong ciphers, OCSP stapling |
| Bot Blocking | Blocks scanners (nikto, sqlmap) and AI crawlers (GPTBot) |
| Container Hardening | no-new-privileges, cap_drop: ALL + minimal cap_add |
| Resource Limits | CPU/memory limits on every service |
| Read-Only Rootfs | nginx runs with read-only filesystem + tmpfs |
| Internal Services | API, frontend, browser-agent not directly exposed |
Internet → :80/:443 → [nginx] → frontend (Next.js)
→ api (Go)
→ ws://livekit:7880
→ browser-agent (internal only)
Production uses .env.production (see template for all variables). Key differences from development:
| Variable | Dev | Production |
|---|---|---|
APP_ENV |
development | production |
POSTGRES_PASSWORD |
myjob_dev | Auto-generated |
REDIS_PASSWORD |
(none) | Auto-generated |
AUTH_JWT_SECRET |
changeme | Auto-generated 64-char hex |
SESSION_SECRET |
changeme | Auto-generated 64-char hex |
NGINX_SERVER_NAME |
localhost | your-domain.com |
LIVEKIT_FLAGS |
--dev | (empty) |
- Development: Self-signed certificate (auto-generated)
- Production: Let's Encrypt (via certbot) or custom certificates
- Certificates stored in
certs/live/<domain>/ - Auto-renewal configured for Let's Encrypt
bash scripts/setup-ssl.sh --domain myapp.example.com # Self-signed bash scripts/setup-ssl.sh --letsencrypt --domain myapp.example.com --email [email protected] # Let's Encrypt
The Go backend is organized as domain modules in backend/internal/. Each domain is self-contained:
internal/<domain>/
handler.go # HTTP handlers (Gin)
service.go # Business logic
repository.go # Database queries (sqlx)
model.go # DB entities
dto.go # Request/response types
+--------------------------------------------------------------+
| Docker Compose (Production) |
| |
| +----------+ |
| Internet ------> | nginx | |
| :80/:443 | :80/:443| |
| +----+-----+ |
| | |
| +------------+------------+ |
| | | | |
| +--------+--+ +-----+-----+ +--+-----------+ |
| | Frontend | | API | | Worker | |
| | Next.js | | Go | | Go (Asynq) | |
| | :3000 | | :8080 | | (async) | |
| +--------+--+ +-----+-----+ +--+-----------+ |
| | | | |
| +------------+------------+ |
| | |
| +-------+-------+ |
| | Redis | |
| | (queue+cache)| |
| +-------+-------+ |
| | |
| +-----------+ +------+------+ +------------------+ |
| | PostgreSQL | | Ollama | | Browser Agent | |
| | +pgvector | | (local | | Playwright | |
| | | | LLM) | | (internal) | |
| +------------+ +-------------+ +------------------+ |
| |
| +--------------------------------------------------+ |
| | LiveKit (voice coaching) | |
| +--------------------------------------------------+ |
+--------------------------------------------------------------+
All runtime configuration lives in config/application.yaml. Environment-specific secrets (API keys, passwords) go in .env.
application: approval_tiers: auto_apply: min_score: 95 action: "auto_submit" notify: true review: min_score: 80 max_score: 94 action: "pause_for_approval" reject: max_score: 79 action: "skip" log: true
llm: primary: provider: "openai" model: "gpt-4o" local: provider: "ollama" model: "qwen2.5:latest" embeddings: provider: "ollama" model: "mxbai-embed-large"
queue: redis_url: "redis://localhost:6379" concurrency: 5 retryAttempts: 3
email: provider: "microsoft_graph" check_interval: "30m" folders: ["Inbox"]
| Variable | Required | Description |
|---|---|---|
POSTGRES_PASSWORD |
Yes | PostgreSQL password |
OPENAI_API_KEY |
No | Cloud LLM for generation (Ollama used if absent) |
ANTHROPIC_API_KEY |
No | Alternative cloud LLM provider |
MS_TENANT_ID |
No | Microsoft Graph for email monitoring |
MS_CLIENT_ID |
No | Microsoft Graph for email monitoring |
MS_CLIENT_SECRET |
No | Microsoft Graph for email monitoring |
LIVEKIT_API_KEY |
No | Voice interview coaching |
LIVEKIT_API_SECRET |
No | Voice interview coaching |
GRAFANA_PASSWORD |
No | Grafana dashboard (observability) |
ALLOW_INSECURE_COOKIES |
No | Set true in Docker production to allow session cookies over HTTP (default: cookies require HTTPS) |
SESSION_SECRET |
Yes | JWT encryption key for session cookies (64-char hex, auto-generated in production) |
make help # Show all available commands make setup # First-time setup (infra + models) make start # Start all services make stop # Stop all services make build # Build all Docker images make clean # Remove containers and volumes make migrate # Run database migrations make logs # Tail all service logs make test # Run all tests
make setup-production # Full production setup (SSL + secrets + build + deploy) make start-production # Start with nginx (production mode) make stop-production # Stop production services make build-production # Build production images make logs-production # Tail production logs make nginx-test # Validate nginx config make health-check-production # Check all service health make shell-nginx # Shell into nginx container
See make help for the full list.
Symptom: Backend returns 200 on login, but the UI stays on the login page.
Common causes:
SESSION_SECRETnot set — The session cookie can't be encrypted. Check thatSESSION_SECRETis defined in your environment.Securecookie over HTTP — In Docker production (NODE_ENV=production), the session cookie is set with theSecureflag. Browsers reject secure cookies when accessed via HTTP. Fix: setALLOW_INSECURE_COOKIES=truein docker-compose environment, or access via HTTPS.- Missing
Set-Cookieheader — Check browser DevTools → Application → Cookies after login. If nosessioncookie appears, the Route Handler isn't setting it.
All list views use a shared EmptyState component (components/shared/EmptyState.tsx) that accepts title, description, optional hint, secondaryAction, and icon. If an empty state looks generic, check that the list component passes descriptive props.
All generated data stays local:
storage/
+-- resumes/ # Generated PDF resumes
+-- coverletters/ # Generated PDF cover letters
+-- screenshots/ # Browser automation screenshots
+-- job_descriptions/ # Scraped job postings
+-- interview_prep/ # Interview coaching data
+-- voice_recordings/ # Voice coaching sessions
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
Go (backend/):
- Domain modules in
internal/<domain>/with handler, service, repository, model, dto files - Return errors up the stack � never
log.Fatalin handlers - Use
zap.Loggerfor structured logging � nofmt.Println - Raw SQL in repository layer only (sqlx) � no ORM
- All async work goes through Asynq task queue � no inline processing in handlers
TypeScript (browser-agent/):
- Strict
tsconfig.json� noany, no@ts-ignore - One class per file, class name matches filename
- Playwright for all browser interaction
- Zod for input validation
- App Router only — no
pages/directory - Server Components by default — add
"use client"only when needed - Tailwind CSS v4 — no
tailwind.config.js - API calls via
fetchwithNEXT_PUBLIC_API_URLenv var - Shared
EmptyStatecomponent for consistent empty state UX across all list views - Session cookie auth via HTTP-only cookies (encrypted JWT with
jose) - Route Handler proxy (
/api/auth/[...proxy]) for backend API calls from Server Components
MIT