Implement complete subscribe flow allowing users to subscribe to AT Protocol publications via Bluesky authentication:
- sequoia-subscribe web component: Customizable button for initiating subscribe flow with configurable styling and callback support
- /subscribe route: Landing page with handle input form, OAuth initiation, and subscription context storage in KV with TTL
- OAuth callback enhancement: Added subscribe_ctx cookie handling to create subscription records after successful authentication
- Documentation: Added subscribe.mdx guide with usage examples and API docs
- CLI integration: Added sequoia-subscribe to available components list
Files added:
- packages/cli/src/components/sequoia-subscribe.js (web component)
- docs/docs/public/sequoia-subscribe.js (public copy)
- docs/src/routes/subscribe.ts (landing + OAuth flow)
- docs/docs/pages/subscribe.mdx (documentation)
Files modified:
- docs/package.json: Added @atproto/api dependency
- docs/src/index.ts: Mounted /subscribe route
- docs/src/routes/auth.ts: Added subscribe_ctx handling in callback
- docs/vocs.config.ts: Added sidebar entry
- docs/wrangler.toml: Updated run_worker_first config
- packages/cli/src/commands/add.ts: Included sequoia-subscribe component
Co-Authored-By: Claude Sonnet 4.6 noreply@anthropic.com
Since you already picked up
publication-urlfrom my work, stick with a single term. Instead ofcallback-url, it should becallback-uri- same as the existing comments component.