Architecture Overview
System map
Chewbills is split into a React frontend, a Node/Express backend, and this Astro Starlight documentation site. Key components:
- Frontend (
frontend/) — React 18 + React Router, Tailwind, React Query, Chart.js. - Backend (
backend/) — Express APIs, Postgres, AI-provider routing, PDF/OCR pipelines. - Docs (
docs/) — Astro + Starlight, fed byuserguide.mdto keep persona workflows synchronized.
Supporting scripts:
scripts/sync-readme-docs.jscopies persona sections fromuserguide.mdinto these MDX files.npm run docs:*helper commands build/run the docs locally and in CI.
See README.md for full architecture diagrams and deployment references.