Epok Advisor — Project Documentation
This folder contains the living documentation for the Epok Advisor platform, built for Epok Advice (Kendra Thompson's advisory consulting business).
Live at: https://epok-advisor.netlify.app Repo: https://github.com/bunswoDS/epok-advisor (private)
Documentation Index
- Project Overview — What this project is, what's built, and who uses it
- Tech Stack — Technologies, architecture, file structure, env vars, testing
- Content Strategy — How markdown content flows through the system
- Content Architecture — Database-first design: folders, tags, versioning, editing, AI integration, exports
- Personas & Roles — Role hierarchy, auth (human + API), RLS strategy
- User Flows — Engagement lifecycle, questionnaires, AI chat, analysis, KB management, exports, external API access
- Database Schema — All 18 tables, enums, RLS policies, seed data
- Future Ideas — What's been implemented vs. what's still planned
For AI Coding Agents
These docs are intentionally written to be useful for both humans and AI agents. If you're an agent working on this codebase:
- Start with
project-overview.mdfor domain context and a summary of all features - Check
tech-stack.mdfor architectural constraints, file structure, and environment setup - Read
content-architecture.mdfor how content is stored (folders + tags, not paths), versioned, embedded, and exported - Read
personas-and-roles.mdfor the role hierarchy, auth methods (Supabase, API keys, OAuth), and RLS strategy - Read
database-schema.mdfor the full table structure before writing any queries or migrations — note:content_documentsno longer haspathorcontent_typecolumns - Read
user-flows.mdfor the engagement lifecycle and all implemented workflows - Check
future-ideas.mdto see what's already built vs. what's still planned
Key gotchas for agents
- No Hono — API routes use React Router loaders/actions, not a separate API framework
- No
pathorcontent_typeon content_documents — Usefolder_idandcontent_document_tagsinstead - TipTap pinned to v3.20.1 — Do not upgrade (v3.20.3+ breaks Vite builds)
- Flat file routing — Dot-delimited filenames:
admin.engagements.$id.tsx→/admin/engagements/:id - Epok green — Accent color is
epok-*(not blue), defined intailwind.config.ts