# AT Tracker Live view of **AT Protocol** activity: a small relay tails the [Jetstream](https://github.com/bluesky-social/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: ```bash ./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](LICENSE).