internal/

directory
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2026 License: AGPL-3.0

Directories

Path Synopsis
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.
cli
Package cli holds the daemon's command implementations.
Package cli holds the daemon's command implementations.
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.
paths
Package paths resolves the OS-specific directories used by the daemon.
Package paths resolves the OS-specific directories used by the daemon.
reader
Package reader reads transcript files that Claude Code appends to concurrently.
Package reader reads transcript files that Claude Code appends to concurrently.
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.
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).
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.
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).
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.
watch
Package watch turns filesystem events and periodic rescans into coalesced triggers.
Package watch turns filesystem events and periodic rescans into coalesced triggers.
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.
Package server wires the HTTP handlers of braid-server.
Package server wires the HTTP handlers of braid-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.
config
Package config parses the server's BRAID_* environment.
Package config parses the server's BRAID_* environment.
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.
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.
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.
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.
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.
httpx
Package httpx holds shared HTTP building blocks for the server.
Package httpx holds shared HTTP building blocks for the 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.
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.
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.
spa
Package spa serves the embedded single-page web app.
Package spa serves the embedded single-page web app.
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.
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.
webauth/oidctest
Package oidctest is a minimal in-process OIDC provider for tests.
Package oidctest is a minimal in-process OIDC provider for tests.
Package testdb gives each test its own freshly migrated Postgres database.
Package testdb gives each test its own freshly migrated Postgres database.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL