Build info
| Version | 27ffa0d |
|---|---|
| Commit | 27ffa0d28d7d Sign in with devicebasedauth.org directly, without Clerk (PLAN D5) |
| Committed | 2026-11-25T07:28:11-06:00 |
| Built | 2026-11-25T13:30:11.214Z · run 45623905562 |
CI
Tests
| Suite | Tests | Passed | Failed |
|---|---|---|---|
| python | 127 | 127 | 0 |
| rust | 109 | 109 | 0 |
| ts-apps-site | 28 | 28 | 0 |
| ts-docs-samples | 54 | 42 | 0 |
| ts-gateways-apns-relay | 5 | 5 | 0 |
| ts-pricing | 15 | 15 | 0 |
| ts-sdk-js | 74 | 74 | 0 |
| ts-sdk-react-native | 17 | 17 | 0 |
| ts-spec | 118 | 118 | 0 |
| ts-workers-api | 231 | 231 | 0 |
| Total | 778 | 766 | 0 |
SDKs and packages
| Package | Name | Version | Links |
|---|---|---|---|
| TypeScript SDK + CLI + web components | @subetha/sdk | 0.0.1 | source · registry (publishing pending) |
| Rust core | subetha-core | 0.1.0 | source · registry (publishing pending) |
| Python SDK | subetha | 0.1.0 | source · registry (publishing pending) |
| Swift SDK | SubEtha | 0.1.0 | source |
| Kotlin SDK | us.subetha:subetha | 0.1.0 | source |
| Dart / Flutter SDK | subetha | 0.1.0 | source · registry (publishing pending) |
| Flutter native core plugin | subetha_core | 0.1.0 | source |
| React Native SDK | @subetha/react-native | 0.0.1 | source · registry (publishing pending) |
| React Native Turbo Module | @subetha/react-native-core | 0.0.1 | source |
| Reticulum/LXMF gateway | subetha-reticulum-gateway | 0.1.0 | source |
| APNs HTTP/2 relay | @subetha/apns-relay | 0.1.0 | source |
Changelog
All notable changes to SubEtha are tracked here.
Unreleased (v0.1.0-dev)
Devices through devicebasedauth.org (PLAN D5)
- Devices enroll at devicebasedauth.org for the audience
subetha.us; their device-bound credentials (Authorization: DBA …+DPoP, or DBA access tokens) are verified offline with the vendored@devicebasedauth/verifyand act as the linked account's devices within their grants (subetha:publish,subetha:subscribe, topics as resources), listed asdba:<id>, pausable and revocable here or there. - Accounts link one devicebasedauth.org account over OpenID Connect (
/v1/dba/link,/start,/finish,/auth/dba/callback; console Devices → Link devicebasedauth.org). - Sign in with devicebasedauth.org, with no Clerk (
/v1/dba/signin/start,/finish; console Sign in with devicebasedauth.org): signs in to the account the DBA account is linked to, or creates a linked account with no handle yet (the console asks for one). The session is a 30-dayadminAPI token, listed and revocable under Tokens. The console only finishes sign-ins started in the same tab. POST /v1/devices/dbaattaches an Ed25519 signing key to a DBA device (E2EE keys, signed requests and messages); revoking the DBA credential also stops the key. The console's "Enroll this browser" and baresubetha login(through thedbaCLI) use it; TS SDKdbaoption,attachDeviceKey,dbaLink/startDbaLink/finishDbaLink/unlinkDba.- Retired (410): the device-code flow (
/v1/device/code,/approve,/token) andPOST /v1/devices; SDKstartDeviceCode/approveDevice/pollDeviceTokenandsubetha devices approveremoved. - Fixed: the Worker could not start (
crypto.randomUUID()at module load inmcp.ts, refused by workerd), which failed CI's e2e job and would have failed every deploy.
Relay & Control Plane
- Core relay MVP: ntfy-compatible publish/subscribe (HTTP, JSON, SSE, WebSocket, poll,
since, filters, multi-topic,/{topics}/authpermission checks),TopicDO,AccountDOsingle-threaded prepaid ledger with credit leases and atomic alarm scheduling, D1 migrations, KV caches, R2 attachments (X-Filename, with canonical IDs, properX-Attachprecedence, and cleanup on topic deletion and frozen-account expiry), and daily cron metering/reconciliation/backups. - Routing & policies: intersection of account, topic, device, token, subscription, and message policies (
allow_transports,deny_transports,min_priority,max_cost_usd_micros,deadline_s, timezone-aware quiet hours, rate/burst limits, kill switches). Enforced on queued deliveries (with pre-delivery re-checks on retries), live (ws/sse/poll) connections, and/mcp(deliver_mcp); prevents capped/restricted admin tokens from minting less-restricted tokens; closes live connections on device pause/revoke or Clerk user/org deletion; deterministicany(cheapest-first) andfast(fastest-first) sorting;mode: "all"parallel delivery unaffected by acks. - Billing & fraud defenses: Stripe Checkout top-ups, opt-in auto-recharge (with persisted failure reasons in
auto_recharge_last_error), payment history & printable receipts, rolling 12-month volume pricing tiers, $5 new-funds telephony hold (crediting back released/unused reservations), immediate unfreeze on top-up, frozen-account lifecycle emails, global & per-account telephony circuit breakers (with SKU-scoped divergence reconciliation), Analytics Engine telemetry, multi-segment inbound SMS billing, and per-SKU usage breakdown (/v1/usage). - Transports: live WS/SSE/poll; Web Push, FCM, APNs (with per-account BYO credentials and HTTP/2 relay); HMAC-signed webhooks + endpoint inspector; inbound/outbound email (with echo-loop guard, multipart plaintext preference, SPF/DMARC checks, and single-part HTML body extraction); Slack OAuth + bidirectional channel bindings (with fresh token lookup); Twilio SMS, MMS, WhatsApp, and Voice with DTMF ack, multi-endpoint
STOP/ACKsync, and international opt-in countries priced daily; remote MCP server (/mcp+ RFC 9728/.well-known/oauth-protected-resource/mcp,topicsOAuth scope, and device-signed requests); Reticulum/LXMF gateway (with/ack <id>escalation acknowledgement and startup readiness guard).
SDKs, CLI & Edge Transports
- Rust core (
sdk/core): canonical JSON, Ed25519 signing, XChaCha20-Poly1305 E2EE, X25519 sealed-box wrapped topic keys, dedupe, store-and-forward outbox, routing planner,TransportModuletrait, monotonic ULID generator, edge protocol codecs (audio FSK, fountain-coded QR, BLE chunking, gossip, LAN), and UniFFI bindings. - TypeScript SDK (
sdk/js): client with dynamicTokenProvider(for rotating JWTs), WS→stream auto-fallback,EdgeGossipTransport, full typed control-plane methods,Outbox,routingplanner,TransportModule, Shadow DOM<subetha-feed>and<subetha-send>web components (with reactive attributes and E2EE support), browser edge shims (/edge.js), full built subpath exports +.d.tsdeclarations, and full CLI (pub,sub,tail,poll,cost,route,trace,ack,login,logout,whoami,lan,balance,prices,topics,devices,token). - Python SDK (
sdk/python): sync client (Client/SubEtha) with auto-E2EE, wrapped topic keys,ack/auto_ack,estimate(), signature verification, file uploads, device-signed requests, and control-plane helpers. - Mobile SDKs & samples: Swift (
sdk/swift, with pure-Swift SHA-256 fallback), Kotlin (sdk/kotlin, withsetTopicKeyand core outbox/deduper re-exports), Flutter (sdk/flutterwithsetTopicKey,sdk/flutter_core), React Native (sdk/react-nativewithcoreKeyWrapper,sdk/react-native-core) — withcontentType,actions,publishFile/estimateFile, and control-plane helpers across Swift, Kotlin, and Dart — plus Doorbell + Edge sample apps on web, CLI, Python, MCP, iOS, Android, Flutter, and React Native.
Docs, Tools & Infrastructure
- Web console & tools (
apps/site): live console dogfooding the SDK (with dynamic Clerk token refresh, live inboxsince/stop/clear/markdown/recent-trace picker, composer file/actions/sign snippets, subscription & device editing, auto-recharge failure banner, usage window selector, and ledger pagination), pricing calculator (tier-aware rent + inbound WhatsApp), offline route simulator (including token deny-lists), Edge lab, OpenAPI API explorer (with media-type selection and binary file uploads), copy-as snippets in 6 languages, token builder, trace viewer, endpoint inspector, per-SKU usage table, and/status/. - Spec, pricing & infra: OpenAPI 3.1 with drift test, shared conformance vectors (
spec/vectors), generated pricing table with CI margin invariants, Cloudflare Terraform configuration (infra/terraform), and GitHub Actions CI/Mobile/Pages/Deploy/Nightly/Release workflows.
Links
- Docs (this build) · openapi.yaml · llms.txt
- Sample apps: the live web sample, the Expo web build, Android APKs, and build instructions
- Pricing invariant report: every SKU's cost, price, and margin at every tier
- Relay status (polls https://subetha.us/v1/status from this page)
- Live web console (runs against production) · sdk.js drop-in web components
- Project plan · Changelog · Legal drafts