internal/

directory
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: Apache-2.0

Directories

Path Synopsis
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.
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.
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.
Package audit appends rows to the audit_log table.
Package audit appends rows to the audit_log table.
Package auth implements accounts and access control: argon2id passwords with no password rules beyond a length cap, the generated first admin, 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 no password rules beyond a length cap, the generated first admin, cookie sessions, invites, password-reset links, roles, login and API rate limiting, and the authentication middleware.
Package backup creates and restores bubbles backup archives (.bbk).
Package backup creates and restores bubbles backup archives (.bbk).
Package buildinfo holds identifiers stamped into release binaries at link time.
Package buildinfo holds identifiers stamped into release binaries at link time.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Package mcpserver exposes Bubbles to MCP clients (AI agents) as eight tools.
Package mcpserver exposes Bubbles to MCP clients (AI agents) as eight tools.
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.
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).
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.
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.
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 a first start.
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 a first start.
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.
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.
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.
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.
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.
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.
Package webui serves the embedded Svelte single-page app.
Package webui serves the embedded Svelte single-page app.
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.

Jump to

Keyboard shortcuts

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