An atproto indexer and web app that scrapes domains from collections it sees
at-tracker README.md
1.4 kB · 33 lines
Markdown
at main

AT Tracker #

Live view of AT Protocol activity: a small relay tails the Jetstream firehose, aggregates Lexicon collection usage into Postgres, and a React Router web app explores the results (domains, collections, and PDS attribution).

What’s in the repo #

Part Role
relay/ Node service: WebSocket consumer → in-memory batching → Postgres upserts (non-blocking hot path; see CLAUDE.md for design notes).
web/ SSR UI (React Router 7 + Postgres reads).
infra/ Terraform for deploying a VPS stack.

Try it locally #

Docker (recommended): copy .env.example to .env.local, adjust values, then:

./local.sh

Open http://localhost:3000 (see local.sh for options).

Without Docker: run Postgres and export DATABASE_URL (for example postgres://user:pass@localhost:5432/attracker), then npm install / npm run dev in relay/ and web/ separately. The relay creates tables on startup (relay/src/db.ts).

Production-style compose and TLS live in docker-compose.yml + Caddyfile. See DEPLOY.md for deployment.

Contributing #

Issues and pull requests are welcome. Treat the relay’s WebSocket handler as a hot path: no blocking I/O there (see CLAUDE.md).

License #

MIT.