Skip to content

Latest commit

 

History

History
71 lines (57 loc) · 5.2 KB

README.md

File metadata and controls

71 lines (57 loc) · 5.2 KB

Documentation index

Suggested reading order for a new contributor is top to bottom.

Start here

Document Purpose
guide/ For people who use OpenChat: the inbox, administration, the website widget, and privacy
known-issues.md What does not work yet, what is untested, and what awaits a decision
architecture/overview.md The system, its deployables, and the main flows
architecture/open-questions.md Decisions the project owner still has to make
plan/milestones.md Milestone-by-milestone plan
plan/phase-0.md The foundation's tasks, now done, kept for reference

Review of the brief

Document Purpose
architecture/spec-review.md Gaps, risks, conflicts, and amendments to the specification
architecture/cloudflare-validation.md Each platform assumption checked against current documentation

Architecture

Document Purpose
architecture/monorepo.md Repository layout, module boundaries, dependency rules
architecture/data-model.md D1 design, write patterns, migration strategy
packages/database/src/schema The schema, in Drizzle. Migrations are generated beside it
architecture/realtime.md Durable Objects and the WebSocket lifecycle
architecture/widget.md Embedding the website widget, and its languages
architecture/dashboard.md The team inbox and its languages
architecture/design-system.md The icon, colours and layouts shared by the dashboard, widget, app and website
architecture/accessibility.md What the widget and dashboard do for accessibility, and how it is checked
architecture/background-jobs.md Queues, the outbox, and cron
architecture/security.md Authentication, tenant isolation, threat model
architecture/security-review-m1a.md Review of authentication and sessions, with accepted trade-offs and open decisions
architecture/security-review-m1b.md Review of tenant isolation, visitor tokens, attachments, and XSS
architecture/decisions/ Architecture decision records

Contracts

Document Purpose
api/conventions.md REST and WebSocket conventions, how contracts are generated
api/openapi.draft.yaml MVP REST contract (OpenAPI 3.1)
api/realtime-protocol.draft.ts WebSocket frames as shared TypeScript types
notification-relay/protocol.md Relay protocol, authentication, and delivery rules
notification-relay/openapi.draft.yaml Relay REST contract
notification-relay/protocol.draft.ts Relay shared TypeScript types
legal/ Drafts for a lawyer, not in force: privacy policy, relay terms, data processing agreement, records of processing, and subprocessors for the managed relay

Files named *.draft.* are design artifacts. Phase 0 moves them into packages/, after which the package is the source of truth and the draft is deleted.

Build and operate

Document Purpose
development/local-dev.md Local development workflow, including what cannot run locally
operations/agent-setup.md Instructions a coding agent follows to install OpenChat, and the prompt to give it
operations/one-click-deploy.md The Deploy to Cloudflare button, and first-time setup in the browser
operations/self-hosting.md Step by step: your own backend, with the official app
operations/deployment.md Production deployment and upgrades, and push through the managed relay
operations/monitoring.md Health checks, what to alert on, and what to do when one fails
operations/backup-and-restore.md Backups, Time Travel, restoring, and what a restore does not put back
operations/licensing.md Licences, the DCO, what CI checks, the notices, and the source offer for an installation you changed
operations/abuse-limits.md Every abuse limit, what people see, and how to change the four that are settings

How facts in these documents were checked

Platform limits were read from vendor documentation on 2026-11-03 and can change. Cloudflare validation records each source and marks what is documented, what is only observed, and what still needs a spike.