Repository Layout
Use this map as a quick orientation when extending Postgram.
What this page covers
Section titled “What this page covers”Key directories and their responsibilities.
Reference
Section titled “Reference”src/ auth/ API key and auth middleware cli/ user/admin CLI logic db/ Pool and migration helpers migrate-talon/ Talon import tooling services/ Business domain services transport/ REST and MCP adapters types/ Shared type definitions util/ Errors, audit, and logging
cli/ Published `@ivotoby/postgram-cli` packageui/ User-facing Web UI and Admin UIdocker/ Container entrypoint and secret bootstrap scriptsbin/ Local operator wrappers
packages/ browser-extension-chrome/ Chromium web clipper browser-extension-firefox/ Firefox web clipper
tests/ contract/ REST/MCP contract tests integration/ Integration flows unit/ Unit tests- The layout is intentionally service-oriented, with the published user CLI separate from the server-side Admin CLI.
- Add new features under
src/servicesand expose throughsrc/transport.