New:Introducing Socket Scanning for VS Code Marketplace Extensions.Learn more →
Get Started
c

cbroberg

npm

25.27K

total weekly downloads

Packages

Current Co-maintainers

Former Co-maintainers

97 packages

@broberg/ai-sdk

Unified AI/LLM SDK — one facade, all providers, all capabilities, first-class cost control on every call.

@broberg/apikey

Framework-agnostic inbound API-key primitives for the broberg.ai fleet: mint prefixed keys, timing-safe verify (hashed or plaintext), sliding-window rate-limit over a pluggable store, a Cloudflare-style authorization cascade (permission × resource-filter

@broberg/app-shell

The fleet's app shell: collapsible sidebar (phone: rail or drawer), top bar with the notification bell and user menu as standard, page header and tabs. Framework-free core + Preact (Stack B). Styled on @broberg/theme tokens. Avatar from BrobergID, initial

@broberg/auth

Thin fleet wrapper around Better Auth — one createAuth() for email+password, magic-link (via @broberg/mail), social login (Google/Apple/GitHub/Microsoft/LinkedIn/Facebook) and passkey/WebAuthn, with dark-ship provider guards and Hono + Next mount helpers.

@broberg/auth-relay

ARS — an agent asks the owner for a code or password; the owner answers once on a local page; only the asker gets it, once.

@broberg/backup

Nightly encrypted logical backup for the broberg.ai fleet, ported from broberg-id's production backup. JSON dump of the app's own tables → gzip → AES-256-GCM, the key wrapped with RSA-OAEP: the machine can encrypt, never open. Read back and sha-checked be

@broberg/bodymap

Interactive body pain-map: a body a patient clicks to mark where it hurts, producing a structured PainReport (bodymap/v1). Framework-neutral core (region taxonomy + zod PainReport model + selection) + a 2D SVG React renderer + a rotatable 3D renderer (van

@broberg/call

Calls for 2–10 people on a self-hosted LiveKit SFU in the EU — audio, camera and screen share: the app's server mints a short-lived, room-bound ticket that allows exactly the sources it names (microphone only by default) and verifies LiveKit's signed webh

@broberg/chat

The fleet's AI-chat core: a conversation loop with a tool registry where a tool without a declared permission is DENIED, streaming typed frames, and the model injected rather than imported — so it carries no dependency it can silently outgrow.

@broberg/cmdk

Headless Cmd+K command-palette core: a framework-free fuzzyFilter (ranked subsequence match), a createPaletteController state machine (open/query/results/active-index with wrap-around keyboard nav + Enter activation), and a quota-safe localStorage recents

@broberg/cms-chat-client

Copy-owned browser client for the @webhouse/cms chat — quick-action cache (peek/warm). Grows into the full chat client, paired with @broberg/cms-chat-server.

@broberg/cms-inline-edit

Click-to-edit inline editing for live @webhouse/cms-powered sites — copy-owned, framework-agnostic

@broberg/complimenta-sdk

Typed SDK for the Complimenta (ComplimentaWork) booking API — read therapists/services/clinics/calendar-slots and create/cancel bookings. Generated from Complimenta's OpenAPI spec; OAuth2 client-credentials; runs in Next.js and Bun.

@broberg/config

The fleet's single-source config helper — a Zod-based env parser that validates + types process.env at boot (fail-fast, listing every offending key), a defineConfig factory for typed business-constant objects, and coerceInt/coerceBool/productionGuard esca

@broberg/consent-cookie

GDPR cookie consent for any site: <broberg-consent>, a drop-in custom element (banner, settings panel, reopen handle) that works the same in Next, Vite+Preact and plain HTML and takes the site's @broberg/theme tokens, on top of a framework-free consent co

@broberg/cron

Typed self-service client for cronjobs.webhouse.net — register + manage HTTP cron jobs over the Bearer-authed /api/jobs API (create/list/update/delete/pause/run), with a per-repo scoped token and per-job target headers kept server-side (never in the URL o

@broberg/data-table

The fleet's data table for Stack B (Preact, no shadcn): sorting, search, pagination, multi-select with an indeterminate select-all, remembered column visibility, a row ⋮-menu and typed cells (badge, status, number, select). Framework-free core + Preact co

@broberg/db-sdk

Thin shared database client for the broberg.ai fleet — one DbClient facade over libSQL/Turso and PostgreSQL/Supabase. The SQL dialect is passed through, not translated.

@broberg/deploy-core

Fly Live HMAC incremental content-sync and a Fly.io client (Machines REST + the GraphQL the fleet uses) — the shared deploy execution layer for the broberg.ai fleet.

@broberg/device-stats

Framework-free device statistics primitive: derive bucketed device facts (form factor, OS/browser major version, installed-PWA vs browser, screen bucket) from what the browser already sends. No identifier, no fingerprint — coarse buckets are baked in, not

@broberg/editor

The fleet's shared WYSIWYG editor on TipTap: a headless core (createEditor, toolbarState, markdown in/out), server-side HTML rendering without a browser, image upload through your own callback, and thin React/Preact adapters. Epic F101.

@broberg/event-log

Headless append-only event-log core (audit / activity / server layers): typed LogEntry with a generic kind, a frozen LogStore interface, fire-and-forget writers that never throw, convenience wrappers (logLogin, logDocumentCreated, …), plus GDPR primitives

@broberg/feature-stats

Which features are actually used: aggregate per-day counters (feature, day, count) with no user id, session, IP, path or cookie. Framework-free core, a SQL store for libSQL/Turso and Postgres, and thin Hono / Next / browser-beacon bindings.

@broberg/fleet-client

Typed client for the broberg fleet HTTP API (buddy + cardmem). One import instead of hand-rolling fetch + Bearer + payload — typed end-to-end from @broberg/fleet-contracts.

@broberg/fleet-contracts

Shared zod contracts + types for the broberg fleet HTTP API (buddy + cardmem). Single source of truth — servers validate against it, clients get their types from it.