You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains the complete product, design, engineering, and operational documentation for CitePilot, alongside the working codebases (citepilot-web, citepilot-ai, supabase/migrations).
CitePilot checks in-text citations against reference lists, validates sources against Crossref/DOI.org, detects hallucinated and retracted references, and reports style-rule and structural issues — with PDF and annotated-DOCX exports. It supports 10 citation styles (APA 7, APA 6, Harvard, Vancouver, Chicago Author-Date, Chicago Notes-Bibliography, MLA 9, IEEE, OSCOLA, Turabian).
System at a glance: web on Vercel (Next.js 16.2) · gateway + AI service on Railway (Node 22/Express + Python 3.12/FastAPI) · Vercel Postgres (PostgreSQL 16, Drizzle) · Google Gemini 2.5 Flash as the sole LLM · Crossref validation · PayPal subscriptions. Sessionless, synchronous MVP (see 04-engineering-standards/18-architecture-decision-records.md ADR-008–011).
Note: the working code is vendored in this monorepo (citepilot-web/, citepilot-ai/, supabase/migrations/) — not as git submodules. The citepilot-gateway referenced in older docs is not present as a separate checkout; AI calls go via next.config.ts rewrites to NEXT_PUBLIC_API_URL (Railway). See AGENTS.md and LEARNING.md for navigation rules and deployment quirks.
All docs are Markdown with YAML-style headers (Document ID, Version, Last Updated, Status, Owner).
Update Last Updated and increment Version on substantive changes.
Cross-references use relative paths — keep them valid.
On-disk document IDs use the schemes CP-DS-0XX, CP-ARCH-0XX, CITE-ENG-0XX, CP-OPS-0XX, CP-LAUNCH-0XX (stated in each file's header). Previous README versions claimed a CP-PROD-0XX scheme — that is obsolete.
When code and docs disagree, executable code wins (API contract: citepilot-ai/src/api/; schema: supabase/migrations/).
Contributing
Update the document header (Last Updated, Version).
Keep all cross-references valid.
Update this README when adding documents or changing structure.
Substantive technical changes should cite or create an ADR (04-engineering-standards/18-architecture-decision-records.md).