How rafzzzaza/kidou-am works
Kidou AM is a web UI and HTTP API for Alight Motion Premium activation using email magic links. Users can request a link and verify it manually, or use the one-click flow, which creates a temporary mail.tm account, polls for the message, extracts its code, verifies it, and attempts premium activation. Successful activations update JSONBin-backed statistics. The sampled auto route uses mail.tm, while the README describes a different temporary-mail provider; the separate email-generation route calls that documented provider. UI request wiring is based on the README, not sampled frontend source.
Main entry points: api/route.js API router · auto/route.js Auto activation · auth.js Auth and premium · verify-link/route.js Verify link
Components 18
Web and API
- Web interface
public/index.html - HTTP server
server.js - API router
app/api/route.js - Status endpoint
app/api/status/route.js
Activation flows
- Send link
app/api/send-link/route.js - Verify link
app/api/verify-link/route.js - Auto activation
app/api/auto/route.js - Email generation
app/api/email/route.js - Auth and premium
lib/auth.js - Error mapping
lib/errors.js
External services
- Firebase Identity
- Premium verification
- mail.tm
- Temp mail provider
Activation statistics
- Stats endpoint
app/api/stats/route.js - Stats service
lib/stats.js - JSONBin
Other components
- User
Connections 23
- User → Web interface: uses
- Web interface → HTTP server: requests
- HTTP server → API router: mounts API
- API router → Status endpoint: dispatches
- API router → Send link: dispatches
- API router → Verify link: dispatches
- API router → Auto activation: dispatches
- API router → Email generation: dispatches
- API router → Stats endpoint: dispatches
- Send link → Auth and premium: requests link
- Send link → Error mapping: formats errors
- Auth and premium → Firebase Identity: calls identity API
- Verify link → Auth and premium: verifies and activates
- Verify link → Error mapping: formats errors
- Verify link → Stats service: reads or increments
- Auto activation → mail.tm: creates account, polls inbox
- Auto activation → Auth and premium: requests link, verifies, activates
- Auto activation → Error mapping: formats errors
- Auto activation → Stats service: reads or increments
- Auth and premium → Premium verification: verifies purchase
- Email generation → Temp mail provider: generates address
- Stats endpoint → Stats service: reads stats
- Stats service → JSONBin: reads and writes