Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
braid
command
Command braid is the Braid sync daemon and CLI.
|
Command braid is the Braid sync daemon and CLI. |
|
braid-server
command
Command braid-server is the Braid server.
|
Command braid-server is the Braid server. |
|
internal
|
|
|
buildinfo
Package buildinfo holds the version stamped in at build time.
|
Package buildinfo holds the version stamped in at build time. |
|
daemon/auth
Package auth implements the device-flow client and token storage.
|
Package auth implements the device-flow client and token storage. |
|
daemon/cli
Package cli holds the daemon's command implementations.
|
Package cli holds the daemon's command implementations. |
|
daemon/client
Package client is the daemon's HTTP client for the Braid server.
|
Package client is the daemon's HTTP client for the Braid server. |
|
daemon/paths
Package paths resolves the OS-specific directories used by the daemon.
|
Package paths resolves the OS-specific directories used by the daemon. |
|
daemon/reader
Package reader reads transcript files that Claude Code appends to concurrently.
|
Package reader reads transcript files that Claude Code appends to concurrently. |
|
daemon/scan
Package scan finds transcript files to sync below the Claude projects root.
|
Package scan finds transcript files to sync below the Claude projects root. |
|
daemon/service
Package service registers the daemon as a user service (launchd, systemd --user, Windows scheduled task).
|
Package service registers the daemon as a user service (launchd, systemd --user, Windows scheduled task). |
|
daemon/spool
Package spool keeps not-yet-acked transcript data alive after Claude Code deletes the original.
|
Package spool keeps not-yet-acked transcript data alive after Claude Code deletes the original. |
|
daemon/state
Package state is the daemon's SQLite state store (spec §4.3).
|
Package state is the daemon's SQLite state store (spec §4.3). |
|
daemon/syncer
Package syncer is the daemon's sync engine: scan, spool, read, batch, upload; state advances only on ACK.
|
Package syncer is the daemon's sync engine: scan, spool, read, batch, upload; state advances only on ACK. |
|
daemon/watch
Package watch turns filesystem events and periodic rescans into coalesced triggers.
|
Package watch turns filesystem events and periodic rescans into coalesced triggers. |
|
protocol
Package protocol holds the wire types and pure helpers shared by daemon and server.
|
Package protocol holds the wire types and pure helpers shared by daemon and server. |
|
server
Package server wires the HTTP handlers of braid-server.
|
Package server wires the HTTP handlers of braid-server. |
|
server/api
Package api serves the /api/v1 endpoints used by the web app.
|
Package api serves the /api/v1 endpoints used by the web app. |
|
server/config
Package config parses the server's BRAID_* environment.
|
Package config parses the server's BRAID_* environment. |
|
server/db
Package db wraps the Postgres pool, per-request user scoping and migrations.
|
Package db wraps the Postgres pool, per-request user scoping and migrations. |
|
server/derive
Package derive turns raw transcript rows into the derived tables, exactly once per row.
|
Package derive turns raw transcript rows into the derived tables, exactly once per row. |
|
server/derive/derivetest
Package derivetest is test support for the derive engine: it stores raw data as ingest would and inspects the derived tables.
|
Package derivetest is test support for the derive engine: it stores raw data as ingest would and inspects the derived tables. |
|
server/derive/parse
Package parse turns raw transcript lines and snapshots into typed events, leniently and without I/O.
|
Package parse turns raw transcript lines and snapshots into typed events, leniently and without I/O. |
|
server/device
Package device implements the RFC 8628 device authorization flow and its /device pages.
|
Package device implements the RFC 8628 device authorization flow and its /device pages. |
|
server/httpx
Package httpx holds shared HTTP building blocks for the server.
|
Package httpx holds shared HTTP building blocks for the server. |
|
server/ingest
Package ingest serves the device-authenticated data path: POST /v1/ingest and GET /v1/files.
|
Package ingest serves the device-authenticated data path: POST /v1/ingest and GET /v1/files. |
|
server/live
Package live fans per-user events from Postgres NOTIFY out to WebSocket clients.
|
Package live fans per-user events from Postgres NOTIFY out to WebSocket clients. |
|
server/page
Package page renders the server-side HTML pages (device login, login errors) in the dashboard's look.
|
Package page renders the server-side HTML pages (device login, login errors) in the dashboard's look. |
|
server/servertest
Package servertest starts a complete braid-server against a fresh test database and a mock OIDC provider.
|
Package servertest starts a complete braid-server against a fresh test database and a mock OIDC provider. |
|
server/spa
Package spa serves the embedded single-page web app.
|
Package spa serves the embedded single-page web app. |
|
server/stats
Package stats serves the /api/v1/stats endpoints: aggregates over the derived tables of the signed-in user.
|
Package stats serves the /api/v1/stats endpoints: aggregates over the derived tables of the signed-in user. |
|
server/webauth
Package webauth implements OIDC web login (authorization code + PKCE) and DB-backed sessions.
|
Package webauth implements OIDC web login (authorization code + PKCE) and DB-backed sessions. |
|
server/webauth/oidctest
Package oidctest is a minimal in-process OIDC provider for tests.
|
Package oidctest is a minimal in-process OIDC provider for tests. |
|
testdb
Package testdb gives each test its own freshly migrated Postgres database.
|
Package testdb gives each test its own freshly migrated Postgres database. |
|
Package web embeds the built web app (web/dist).
|
Package web embeds the built web app (web/dist). |
Click to show internal directories.
Click to hide internal directories.