Skip to content

docs: add contributor architecture overview - #447

Draft
pdsarin wants to merge 1 commit into
masterfrom
pdsarin/document-repo-overview-3ww666
Draft

docs: add contributor architecture overview#447
pdsarin wants to merge 1 commit into
masterfrom
pdsarin/document-repo-overview-3ww666

Conversation

@pdsarin

@pdsarin pdsarin commented Jul 15, 2026

Copy link
Copy Markdown

What

Adds docs/ARCHITECTURE.md — a contributor-focused map of the Umami codebase — and links it from the README.

Why

"Explain what this repo does" is a recurring onboarding question. This captures the answer in the repo itself so new contributors can orient quickly without reading the full source.

Contents

  • Two halves of the system — data collection (write path: tracker → collect endpoints → enriched storage) vs. the analytics dashboard (read path).
  • API request lifecycle — the parseRequest → checkAuth → permissions → query → response pattern used across src/app/api.
  • Query layer — how runQuery() abstracts over Prisma / raw SQL / ClickHouse, plus the core Prisma data model.
  • Frontend architecture — component library, shared components, query hooks, Zustand stores, i18n.
  • "Where do I make a change?" and common commands reference tables.

Notes

  • Docs-only change; no code or behavior is affected.
  • Content cross-referenced against the actual source tree (src/app, src/queries, prisma/schema.prisma, package.json).

🤖 Generated with Claude Code

🌒 Run on Niteshift: View Task

Add docs/ARCHITECTURE.md mapping the codebase for contributors: the
collection (write) vs. dashboard (read) halves, the API request
lifecycle, the multi-backend query layer, the core data model, and a
"where do I make a change?" reference table. Link it from the README.

Run-on: Niteshift Staging
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant