[READ-ONLY] Mirror of https://github.com/flo-bit/contrail. atproto backend in a bottle flo-bit.dev/contrail
README.md

Contrail #

Pre-alpha. Expect breaking changes.

Contrail turns public AT Protocol records into a queryable AppView.

  • Backfill from relays/PDSes or Alluvium exports, then stream live updates from Jetstream
  • Runs on Cloudflare Workers + D1, or Node.js + SQLite / PostgreSQL / PGlite
  • Generates typed getRecord and listRecords XRPC endpoints with filters, range queries, sorting, full-text search, pagination, relation counts, hydration, and profile/label hydration

Quick start #

pnpx @atmo-dev/contrail init my-appview
cd my-appview
pnpx @atmo-dev/contrail dev

Edit contrail.config.ts to pick the collections, queryable fields, relations, and search fields you want to index.

Docs #

  1. Get started locally
  2. Add the typed client
  3. Configure and query
  4. Deploy to Cloudflare Workers & Node

Advanced: Feeds · Labels · Moderation · Remote D1

Examples: Cloudflare Workers + D1 · Node + SQLite · Node + PostgreSQL

Contributing: Development guide · Spaces alpha (workspace-private)