Commit Graph

5 Commits

Author SHA1 Message Date
685692dee1 Add topics endpoint and refactor to topic-based discovery
- Add GET /topics endpoint with pagination and peer counts
- Refactor offers to support multiple topics per offer
- Add stateless authentication with AES-256-GCM
- Add bloom filter support for peer exclusion
- Update database schema for topic-based discovery
- Add comprehensive API documentation to README

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-14 18:31:17 +01:00
28ef5eb1d1 Simplify API: remove topics, rename session→offer
- Remove topic-based grouping and discovery
- Rename sessions to offers for clarity
- Simplify to just POST /offer, POST /answer, POST /poll
- Add version to health endpoint
- Update database schema (sessions→offers table)
- Reduce offer timeout to 1 minute
- Server version: 0.0.1

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 23:17:38 +01:00
10fa579de1 Reduce session timeout to 1 minute
🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-12 22:40:19 +01:00
8cb56142cd Fix Cloudflare Worker compatibility for version endpoint
- Add version parameter to AppConfig interface
- Pass version from environment config instead of using process.env
- Update worker.ts to pass VERSION environment variable
- Update wrangler.toml with VERSION variable
- Update deploy script to automatically set VERSION to git commit hash

This fixes the 'process is not defined' error in Cloudflare Workers

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-08 11:45:41 +01:00
2bc6359b73 Include wrangler.toml in repository for CI/CD deployments
- Removed wrangler.toml from .gitignore
- Added wrangler.toml to repo (safe - no secrets)
- Database ID is not sensitive, protected by Cloudflare auth
- Fixes CI/CD deployment failures
2025-11-07 23:15:18 +01:00