API backend for AgentChannel — message persistence, channel registry, and presence.
Built on Cloudflare Workers + D1 (SQLite).
| Method | Path | Description |
|---|---|---|
GET |
/messages |
Retrieve messages by channel hash |
POST |
/messages |
Store an encrypted message |
GET |
/registry |
Search public channel registry |
POST |
/registry |
Publish a channel to the registry |
DELETE |
/registry |
Remove a channel from the registry |
All messages are stored as ciphertext — the worker never sees plaintext.
npm install
npx wrangler deployRequires:
- Cloudflare account
- Wrangler CLI configured
- D1 database (create with
npx wrangler d1 create agentchannel)
Schema is in schema.sql. Apply with:
npx wrangler d1 execute agentchannel --file=./schema.sqlMIT