···45A monorepo for indexing and displaying [Standard.site](https://standard.site) documents from the AT Protocol, powered by Cloudflare Workers, D1, and Queues.
67-## Architecture
8-9-```
10-┌─────────────────────────────────────────────────────────────┐
11-│ Cloudflare │
12-├─────────────────────────────────────────────────────────────┤
13-│ │
14-│ ┌──────────────┐ ┌──────────────┐ ┌─────────────┐ │
15-│ │ Pages │────▶│ Worker │────▶│ D1 │ │
16-│ │ (Client) │ │ (API) │ │ (Database) │ │
17-│ └──────────────┘ └──────────────┘ └─────────────┘ │
18-│ ▲ ▲ │
19-│ │ │ │
20-│ ┌──────┴───────┐ ┌──────┴───────┐ │
21-│ │ Queue │ │ Cron │ │
22-│ │ (Resolver) │ │ (Refresh) │ │
23-│ └──────┬───────┘ └──────────────┘ │
24-│ │ │
25-└──────────────────────────────┼──────────────────────────────┘
26- │ POST /webhook/tap
27- ┌──────────┴───────────┐
28- │ Tap Instance │
29- │ (External) │
30- └──────────────────────┘
31-```
32-33**Components:**
34351. **Tap Indexer** (External) - Subscribes to the AT Protocol firehose and sends webhook events
···53```
5455The client will run on `http://localhost:5173`.
56-57-## API Endpoints
58-59-### Health & Stats
60-61-| Endpoint | Method | Description |
62-|----------|--------|-------------|
63-| `/health` | GET | Health check |
64-| `/stats` | GET | Database statistics |
65-66-### Feed Endpoints
67-68-| Endpoint | Method | Description |
69-|----------|--------|-------------|
70-| `/feed` | GET | Pre-resolved documents (fast) |
71-| `/feed-raw` | GET | Raw record references (for client-side resolution) |
72-| `/records/:did` | GET | Records by DID |
73-74-### Webhook
75-76-| Endpoint | Method | Description |
77-|----------|--------|-------------|
78-| `/webhook/tap` | POST | Receives events from tap |
79-| `/webhook/tap/debug` | POST | Debug endpoint (echoes payload) |
80-81-### Admin
82-83-| Endpoint | Method | Description |
84-|----------|--------|-------------|
85-| `/admin/resolve-all` | POST | Queue unresolved records for processing |
8687## How It Works
88
···45A monorepo for indexing and displaying [Standard.site](https://standard.site) documents from the AT Protocol, powered by Cloudflare Workers, D1, and Queues.
6000000000000000000000000007**Components:**
891. **Tap Indexer** (External) - Subscribes to the AT Protocol firehose and sends webhook events
···27```
2829The client will run on `http://localhost:5173`.
0000000000000000000000000000003031## How It Works
32