Job Application Tracker & Discovery — Next.js, TypeScript, Prisma, PostgreSQL, Job Postings Catalog (+ FastAPI AI Pipeline) FullStack Project
A production-style, full-stack job application CRM — not a generic job board. It helps you track applications you have already submitted, link them to postings in the app's own Postgres job postings catalog (salary, status, workplace and lifecycle changes), discover new roles to track, visualize your search with charts and KPIs, and (Phase 2) run an AI insights pipeline. Built for learning: App Router SSR, Server Actions, TanStack Query hydration, optimistic UI, multi-layer caching, SSE cross-tab sync, and strict TypeScript end-to-end.

Table of Contents
Overview
Jobify helps job seekers organize, track, enrich, and analyze their job search in one place. Each authenticated user gets a private dashboard where they can:
- Add and manage job applications (position, company, location, status, employment mode)
- Attach an apply URL so the job links to a catalog posting with salary, status, and workplace data
- Search and filter their pipeline with URL-synced filters and pagination
- Discover open postings from the built-in catalog and track any role with one click
- View stats, KPIs, and multiple chart types (monthly trend, weekly velocity, status/mode breakdown)
- Export data as CSV or Excel
- Receive in-app notifications (and optional email) when a tracked posting closes or changes
The app is built as a learning-oriented full-stack reference: server-rendered pages for fast first paint, client-side TanStack Query for instant interactions, Prisma + PostgreSQL for persistence, and optional Redis/Sentry/Resend for production polish.
Features
Core Functionality
| Feature |
Description |
| CRUD |
Create, read, update, delete job applications |
| Search & filters |
Filter by position/company, status, mode, month (URL-synced) |
| Pagination |
Paginated job list for large datasets |
| Stats dashboard |
Status cards + KPI row (response rate, interview rate, top job type) |
| Charts |
Monthly trend + projection, weekly velocity, status donut, mode bars |
| Export |
Download CSV/Excel with monthly grouping |
| Dialogs |
Add/Edit jobs in modal dialogs (no page navigation) |
Job Postings Catalog (Phase 1)
| Feature |
Description |
| Own catalog |
Company, JobPosting, JobPostingEvent tables in Postgres (seeded) |
| Posting link |
Tracked jobs link by exact apply URL, else same company + title similarity |
| Posting badges |
Live / Closed / JD Changed / Salary Added on job cards |
| Discover page |
Keyset-paginated search with filters; one-click Track Application |
| Nightly cron |
Re-sync linked jobs and notify on changes (/api/cron/enrich) |
| Read API |
/api/postings, /api/postings/facets, /api/postings/:id, /:id/events |
User Experience
- NextAuth v5 authentication — credentials, Google OAuth, guest demo sign-in dropdown
- Custom auth UI — branded Sign In / Sign Up forms (no hosted provider chrome)
- Notification bell — SSE + BroadcastChannel; unread badge + popover list
- Dark / light / system theme — via
next-themes
- Glassmorphism UI —
GlassCard, glass dropdowns, targeted skeletons
- Responsive layout — mobile hamburger nav, grid cards on desktop
- Toast feedback — success/error notifications via Sonner
- Form validation — React Hook Form + Zod (client + server)
Technical Highlights
- SSR prefetch + hydration — data ready on first paint
- Optimistic mutations — UI updates before server round-trip
- Multi-layer cache —
unstable_cache, tags, optional Redis read-through
- Cross-tab sync — BroadcastChannel + SSE (
/api/jobs/events)
- localStorage persist — jobs/stats/charts cached client-side (not discover/ai)
- Sentry integration — optional error tracking with browser tunnel
- Type-safe end-to-end — TypeScript + Prisma + Zod
Technology Stack
Frontend
| Library |
Version |
What it does |
| Next.js |
16.x |
React framework — App Router, SSR, Server Actions, Turbopack dev |
| React |
19.x |
UI library with Server/Client Components |
| TypeScript |
5.8.x |
Static typing across the codebase |
| Tailwind CSS |
3.4.x |
Utility-first styling |
| shadcn/ui |
— |
Accessible Radix-based components (Button, Dialog, Select…) |
| Lucide React |
— |
Icon set |
| React Hook Form |
7.x |
Form state with minimal re-renders |
| Zod |
3.x |
Schema validation (shared client + server) |
| Recharts |
2.x |
Stats page charts (Bar, Area, Pie, Composed) |
| next-themes |
— |
Theme switching without flash |
| TanStack Query |
5.x |
Server state, cache, optimistic updates, persist |
| Sonner |
— |
Toast notifications |
Backend & Data
| Library |
Version |
What it does |
| Next.js Server Actions |
— |
Type-safe server functions ("use server") |
| Prisma |
6.x |
ORM — type-safe DB queries and migrations |
| PostgreSQL |
— |
Relational database for job records |
| NextAuth v5 |
5.x |
Authentication — JWT session, Prisma adapter, OAuth + credentials |
| Upstash Redis |
optional |
Read-through cache + SSE invalidation streams |
| Resend |
optional |
Email alerts when postings change |
| exceljs / papaparse |
— |
Excel/CSV export generation |
| dayjs |
— |
Date formatting in exports and charts |
Phase 2 — Python AI Service
| Library |
What it does |
| FastAPI |
HTTP API for 9-agent LLM pipeline |
| Ollama |
Local LLM (primary) |
| Groq / OpenRouter / Anthropic |
Free-tier cloud fallbacks |
See python-ai-service/ and docs/PROJECT_PLAN.md for the full roadmap.
Dev & Quality
| Tool |
Purpose |
| Vitest |
Unit tests (lib/__tests__, hooks/__tests__, components/__tests__) |
| ESLint |
Linting (eslint-config-next) |
| Sentry |
Optional production error monitoring |
Architecture & Data Flow
Understanding the flow is key to extending this project.
Read path (SSR → client)
page.tsx (export const dynamic = 'force-dynamic')
└─ await prefetchQuery on server (QueryClient)
└─ HydrationBoundary → dehydrate state
└─ Client component (JobsGrid, StatsContainer, DiscoverResults…)
└─ useQuery with same queryKey → instant data, no loading flash
└─ lib/jobs/queries.ts (unstable_cache + tags + optional Redis)
└─ Prisma → PostgreSQL
Why force-dynamic? Every dashboard page is user-specific. SSR prefetch + client cache gives fast first paint without stale public HTML.
Write path (mutation → invalidation)
User action (CreateJobForm / DiscoverJobCard / DeleteJobButton)
└─ useJobsMutation (optimistic UI patch)
└─ Server Action (utils/actions.ts)
└─ Prisma write
└─ after() → linkJobToPosting() (non-blocking)
└─ invalidateUserJobCaches(userId, jobId?)
├─ revalidateTag / revalidatePath (Next cache)
├─ Redis cache key delete (optional)
└─ publishInvalidation → SSE stream
└─ useJobsCacheSync → invalidateAllJobQueries (React Query)
└─ BroadcastChannel → other browser tabs
Why this pattern?
- SSR prefetch eliminates loading spinners on first visit
- Optimistic updates make the UI feel instant
- Tag-based revalidation keeps server cache correct after mutations
- SSE + BroadcastChannel keeps multiple tabs/instances in sync
- Targeted skeletons — static chrome always visible; only data slots pulse on cold cache
Project Structure