Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
bubbles
command
Command bubbles is the single-binary chat server and its admin tooling.
|
Command bubbles is the single-binary chat server and its admin tooling. |
|
examples
|
|
|
echo-bot
command
Command echo-bot registers a /echo slash command and answers every invocation with its arguments, visible only to the person who ran it.
|
Command echo-bot registers a /echo slash command and answers every invocation with its arguments, visible only to the person who ran it. |
|
netdiag-sender
command
Command netdiag-sender is the reference mapping from netdiag-style Notice JSON lines to bubbles alerts.
|
Command netdiag-sender is the reference mapping from netdiag-style Notice JSON lines to bubbles alerts. |
|
internal
|
|
|
alerts
Package alerts is the alert domain (plan pipeline step 11): an app posts an alert under a dedupe key; repeats update one message instead of flooding the channel, escalations and overdue renotifications are marked as such for the notification dispatcher, members acknowledge and resolve, and a key that was resolved opens a new alert the next time.
|
Package alerts is the alert domain (plan pipeline step 11): an app posts an alert under a dedupe key; repeats update one message instead of flooding the channel, escalations and overdue renotifications are marked as such for the notification dispatcher, members acknowledge and resolve, and a key that was resolved opens a new alert the next time. |
|
app
Package app is the composition root of `bubbles serve`: it opens the store, loads the TLS material, builds the HTTPS and onboarding handlers, binds both listeners, runs the background jobs and shuts everything down gracefully.
|
Package app is the composition root of `bubbles serve`: it opens the store, loads the TLS material, builds the HTTPS and onboarding handlers, binds both listeners, runs the background jobs and shuts everything down gracefully. |
|
apps
Package apps is the integration domain: app accounts (a bot user plus the app row), their scoped bearer tokens, the bearer authenticator, per-token rate limits and the pairing flow that hands a new app its first token.
|
Package apps is the integration domain: app accounts (a bot user plus the app row), their scoped bearer tokens, the bearer authenticator, per-token rate limits and the pairing flow that hands a new app its first token. |
|
audit
Package audit appends rows to the audit_log table.
|
Package audit appends rows to the audit_log table. |
|
auth
Package auth implements accounts and access control: argon2id passwords with a common-password blocklist, first-run setup, cookie sessions, invites, password-reset links, roles, login and API rate limiting, and the authentication middleware.
|
Package auth implements accounts and access control: argon2id passwords with a common-password blocklist, first-run setup, cookie sessions, invites, password-reset links, roles, login and API rate limiting, and the authentication middleware. |
|
backup
Package backup creates and restores bubbles backup archives (.bbk).
|
Package backup creates and restores bubbles backup archives (.bbk). |
|
buildinfo
Package buildinfo holds identifiers stamped into release binaries at link time.
|
Package buildinfo holds identifiers stamped into release binaries at link time. |
|
chat
Package chat is the chat domain service: channels, direct messages, messages, threads, reactions, pins, read state and the bootstrap snapshot.
|
Package chat is the chat domain service: channels, direct messages, messages, threads, reactions, pins, read state and the bootstrap snapshot. |
|
config
Package config resolves the bootstrap settings of `bubbles serve` from flags and BUBBLES_* environment variables, prepares the data directory and enforces single-instance and bind policy.
|
Package config resolves the bootstrap settings of `bubbles serve` from flags and BUBBLES_* environment variables, prepares the data directory and enforces single-instance and bind policy. |
|
discovery
Package discovery advertises the server over mDNS (DNS-SD): a _bubbles._tcp service instance on the HTTPS port plus A/AAAA records for <mdns-name>.local on the ranked LAN interfaces.
|
Package discovery advertises the server over mDNS (DNS-SD): a _bubbles._tcp service instance on the HTTPS port plus A/AAAA records for <mdns-name>.local on the ranked LAN interfaces. |
|
dnsname
Package dnsname holds the one DNS-name validator shared by configuration parsing and the local CA's name constraints.
|
Package dnsname holds the one DNS-name validator shared by configuration parsing and the local CA's name constraints. |
|
events
Package events defines the realtime event vocabulary and appends events to the global event log inside a store write transaction.
|
Package events defines the realtime event vocabulary and appends events to the global event log inside a store write transaction. |
|
files
Package files is the file domain service: streaming uploads into a content-addressed store, metadata stripping, thumbnails, quotas, the permission check and headers of file serving, and the binding of uploaded files to messages.
|
Package files is the file domain service: streaming uploads into a content-addressed store, metadata stripping, thumbnails, quotas, the permission check and headers of file serving, and the binding of uploaded files to messages. |
|
files/filestest
Package filestest builds the image fixtures of the file tests in Go, so no binary test data is checked in: JPEGs with EXIF (GPS and orientation), XMP, IPTC and comments, PNGs with text and EXIF chunks, WebP files with metadata chunks, an oversized PNG header and an SVG with a script.
|
Package filestest builds the image fixtures of the file tests in Go, so no binary test data is checked in: JPEGs with EXIF (GPS and orientation), XMP, IPTC and comments, PNGs with text and EXIF chunks, WebP files with metadata chunks, an oversized PNG header and an SVG with a script. |
|
hooks
Package hooks is the incoming-webhook domain (plan pipeline step 12): a secret URL, POST /hooks/{token}, that posts into one channel as a pseudo-app.
|
Package hooks is the incoming-webhook domain (plan pipeline step 12): a secret URL, POST /hooks/{token}, that posts into one channel as a pseudo-app. |
|
httpapi
Package httpapi is the HTTPS front end: router, middleware (request id, panic recovery, LAN guard, security headers), the JSON error model, the REST handlers and the embedded single-page app.
|
Package httpapi is the HTTPS front end: router, middleware (request id, panic recovery, LAN guard, security headers), the JSON error model, the REST handlers and the embedded single-page app. |
|
logging
Package logging builds the server logger: JSON lines to a size-rotated file under the data directory plus human-readable text on the console, with helpers that keep secrets out of both.
|
Package logging builds the server logger: JSON lines to a size-rotated file under the data directory plus human-readable text on the console, with helpers that keep secrets out of both. |
|
mcpserver
Package mcpserver exposes Bubbles to MCP clients (AI agents) as eight tools.
|
Package mcpserver exposes Bubbles to MCP clients (AI agents) as eight tools. |
|
netutil
Package netutil classifies network addresses, ranks the host's LAN interfaces and guards HTTP handlers so only LAN clients get through.
|
Package netutil classifies network addresses, ranks the host's LAN interfaces and guards HTTP handlers so only LAN clients get through. |
|
notify
Package notify decides, server-side, who gets a Web Push for a message or an alert (plan pipeline steps 6 and 7).
|
Package notify decides, server-side, who gets a Web Push for a message or an alert (plan pipeline steps 6 and 7). |
|
onboarding
Package onboarding serves the plain-HTTP onboarding listener: a page that explains how to trust the local CA on each platform, the CA certificate in DER, PEM and iOS profile form, QR codes for this server's HTTPS URLs and invite landing pages.
|
Package onboarding serves the plain-HTTP onboarding listener: a page that explains how to trust the local CA on each platform, the CA certificate in DER, PEM and iOS profile form, QR codes for this server's HTTPS URLs and invite landing pages. |
|
push
Package push is bubbles' Web Push: VAPID keys, the subscription store, the payload builder and the sender.
|
Package push is bubbles' Web Push: VAPID keys, the subscription store, the payload builder and the sender. |
|
reset
Package reset implements the two destructive lifecycle operations of a bubbles server (pipeline steps 19 and 20): clear content, which deletes every message, file, alert and event but keeps accounts, channels, apps and settings, and factory reset, which wipes the data directory back to the setup wizard.
|
Package reset implements the two destructive lifecycle operations of a bubbles server (pipeline steps 19 and 20): clear content, which deletes every message, file, alert and event but keeps accounts, channels, apps and settings, and factory reset, which wipes the data directory back to the setup wizard. |
|
retention
Package retention is the hourly clean-up job: it hard-deletes messages older than the retention of their channel, deletes uploads that were never attached, removes blobs that no file refers to any more, and once a day sweeps the blob store for blobs that no row refers to at all.
|
Package retention is the hourly clean-up job: it hard-deletes messages older than the retention of their channel, deletes uploads that were never attached, removes blobs that no file refers to any more, and once a day sweeps the blob store for blobs that no row refers to at all. |
|
search
Package search implements full-text message search: the query grammar, the FTS5 MATCH construction, membership filtering, snippets and cursor pagination behind GET /api/v1/search.
|
Package search implements full-text message search: the query grammar, the FTS5 MATCH construction, membership filtering, snippets and cursor pagination behind GET /api/v1/search. |
|
service
Package service installs bubbles as an operating-system service: a Windows service (SCM), a macOS LaunchDaemon or a Linux systemd unit.
|
Package service installs bubbles as an operating-system service: a Windows service (SCM), a macOS LaunchDaemon or a Linux systemd unit. |
|
settings
Package settings reads and writes the instance settings stored in the settings table.
|
Package settings reads and writes the instance settings stored in the settings table. |
|
store
Package store owns the SQLite database file: opening it with the required pragmas, the read pool, the single writer goroutine, schema migrations and ID generation.
|
Package store owns the SQLite database file: opening it with the required pragmas, the read pool, the single writer goroutine, schema migrations and ID generation. |
|
tlsca
Package tlsca runs the built-in, name-constrained local certificate authority: CA create/load, leaf issue and renewal from the discovered SAN set, hot swap through tls.Config.GetCertificate, bring-your-own certificate reload, fingerprints and the iOS .mobileconfig profile.
|
Package tlsca runs the built-in, name-constrained local certificate authority: CA create/load, leaf issue and renewal from the discovered SAN set, hot swap through tls.Config.GetCertificate, bring-your-own certificate reload, fingerprints and the iOS .mobileconfig profile. |
|
webui
Package webui serves the embedded Svelte single-page app.
|
Package webui serves the embedded Svelte single-page app. |
|
wsgateway
Package wsgateway serves the realtime WebSocket endpoint GET /api/v1/ws: authentication (the request's principal) plus the Origin check, the hello frame, resume and replay from the event log, live delivery from the hub, heartbeats, client signal frames and the close codes of docs/protocol.md.
|
Package wsgateway serves the realtime WebSocket endpoint GET /api/v1/ws: authentication (the request's principal) plus the Origin check, the hello frame, resume and replay from the event log, live delivery from the hub, heartbeats, client signal frames and the close codes of docs/protocol.md. |
|
pkg
|
|
|
bubblesclient
Package bubblesclient is the Go SDK for a bubbles server: CA-pinned TLS, messages, alerts, uploads, slash commands, a reconnecting event stream, an outage-tolerant alert queue, mDNS discovery and pairing.
|
Package bubblesclient is the Go SDK for a bubbles server: CA-pinned TLS, messages, alerts, uploads, slash commands, a reconnecting event stream, an outage-tolerant alert queue, mDNS discovery and pairing. |
|
notifyrules
Package notifyrules decides whether one message or alert event should notify one recipient (plan pipeline step 6).
|
Package notifyrules decides whether one message or alert event should notify one recipient (plan pipeline step 6). |
|
protocol
Package protocol holds the wire types of the bubbles REST API.
|
Package protocol holds the wire types of the bubbles REST API. |
|
tools
|
|
|
distzip
command
Command distzip writes a zip archive that stores each named file at the archive root under its base name.
|
Command distzip writes a zip archive that stores each named file at the archive root under its base name. |
|
e2e-fixtures
command
Command e2e-fixtures writes the binary fixtures used by the Playwright suite: a JPEG that carries EXIF GPS, XMP and IPTC metadata and a plain PNG.
|
Command e2e-fixtures writes the binary fixtures used by the Playwright suite: a JPEG that carries EXIF GPS, XMP and IPTC metadata and a plain PNG. |
|
loadtest
command
Command loadtest drives a bubbles server with many realtime clients and reports send-to-receive latency, message loss and server memory.
|
Command loadtest drives a bubbles server with many realtime clients and reports send-to-receive latency, message loss and server memory. |
Click to show internal directories.
Click to hide internal directories.



