GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - anthrodjear/MyJob: A simple AI powered job search and Management Engine

BranchesTags
Open more actions menu

Latest commit

 

History

306 Commits
306 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.playwright-mcp
.playwright-mcp
 
 
.vs
.vs
 
 
backend
backend
 
 
browser-agent
browser-agent
 
 
config
config
 
 
docs/superpowers/specs
docs/superpowers/specs
 
 
frontend
frontend
 
 
k8s
k8s
 
 
nginx
nginx
 
 
postman
postman
 
 
scripts
scripts
 
 
templates
templates
 
 
.dockerignore
.dockerignore
 
 
.env.example
.env.example
 
 
.env.production
.env.production
 
 
.gitignore
.gitignore
 
 
.gitleaks.toml
.gitleaks.toml
 
 
.golangci.yml
.golangci.yml
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
TEST_COVERAGE_PLAN.md
TEST_COVERAGE_PLAN.md
 
 
docker-compose.ci.yml
docker-compose.ci.yml
 
 
docker-compose.production.yml
docker-compose.production.yml
 
 
docker-compose.yml
docker-compose.yml
 
 
favicon-check.png
favicon-check.png
 
 
session-log.md
session-log.md
 
 
skills-lock.json
skills-lock.json
 
 
state.md
state.md
 
 

Repository files navigation

AI Job Search Agent

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.

Why This Exists

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.

Features

  • 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.

Tech Stack

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

Quick Start

Prerequisites

  • 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

1. Clone and configure

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

2. First-time setup

make setup

This will:

  • Create .env from .env.example if missing
  • Start PostgreSQL and Redis
  • Generate .env with bcrypt password hash

3. Initialize the database

make migrate

4. Start all services

make start

5. Access the dashboard

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

Development Setup

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

Building locally

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

Running tests

make test          # All tests
make test-api      # Go backend only
make test-frontend # Next.js only

Shell access

make shell-postgres    # psql CLI
make shell-redis       # redis-cli
make shell-api         # Shell into API container
make shell-worker      # Shell into Worker container

Project Structure

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

Architecture

Task-Based API Pattern

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: {...} }

Scoring Tiers

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 Deployment

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.

Quick Production Setup

# 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]

Manual Production Setup

# 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

Production Commands

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

Security Features

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

Production Architecture

Internet → :80/:443 → [nginx] → frontend (Next.js)
                              → api (Go)
                              → ws://livekit:7880
                              → browser-agent (internal only)

Environment Variables

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)

SSL/TLS

  • 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

Domain Modules

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

Services Architecture

+--------------------------------------------------------------+
|                    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)             |       |
|  +--------------------------------------------------+       |
+--------------------------------------------------------------+

Configuration

All runtime configuration lives in config/application.yaml. Environment-specific secrets (API keys, passwords) go in .env.

Scoring Tiers

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 Providers

llm:
  primary:
    provider: "openai"
    model: "gpt-4o"
  local:
    provider: "ollama"
    model: "qwen2.5:latest"
  embeddings:
    provider: "ollama"
    model: "mxbai-embed-large"

Queue & Workers

queue:
  redis_url: "redis://localhost:6379"
  concurrency: 5
  retryAttempts: 3

Email Sync

email:
  provider: "microsoft_graph"
  check_interval: "30m"
  folders: ["Inbox"]

Environment Variables

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)

Makefile Commands

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

Production Commands

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.

Troubleshooting

Login redirect loops back to /login

Symptom: Backend returns 200 on login, but the UI stays on the login page.

Common causes:

  1. SESSION_SECRET not set — The session cookie can't be encrypted. Check that SESSION_SECRET is defined in your environment.
  2. Secure cookie over HTTP — In Docker production (NODE_ENV=production), the session cookie is set with the Secure flag. Browsers reject secure cookies when accessed via HTTP. Fix: set ALLOW_INSECURE_COOKIES=true in docker-compose environment, or access via HTTPS.
  3. Missing Set-Cookie header — Check browser DevTools → Application → Cookies after login. If no session cookie appears, the Route Handler isn't setting it.

Empty state shows "No items found" instead of contextual message

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.

Data Storage

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

Contributing

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Code Standards

Go (backend/):

  • Domain modules in internal/<domain>/ with handler, service, repository, model, dto files
  • Return errors up the stack � never log.Fatal in handlers
  • Use zap.Logger for structured logging � no fmt.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 � no any, no @ts-ignore
  • One class per file, class name matches filename
  • Playwright for all browser interaction
  • Zod for input validation

Next.js (frontend/):

  • 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 fetch with NEXT_PUBLIC_API_URL env var
  • Shared EmptyState component 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

License

MIT

About

A simple AI powered job search and Management Engine

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.