How zennoptionxct/am-reverse works
AlightMotion Premium Activate provides a CLI and web interface for email magic-link sign-in and premium verification. The main web flow sends a link, accepts the returned link, authenticates the user, requests premium verification, and reports the outcome; the CLI also supports refreshing a saved session and viewing saved sessions. The map includes the web API, CLI, and statistics state. The web page’s detailed request wiring was not sampled, so its connection to the API is based on the README’s description of the web workflow.
Main entry points: am.js CLI · api/route.js API Router · auth.js Auth Client · verify-link/route.js Verify Link
Components 17
Web API
- HTTP Server
server.js - API Router
app/api/route.js - Status Route
app/api/status/route.js - Send Link
app/api/send-link/route.js - Verify Link
app/api/verify-link/route.js - Stats Route
app/api/stats/route.js
Authentication
- Auth Client
lib/auth.js - Error Mapping
lib/errors.js
Local State
- Stats Logic
lib/stats.js - Stats File
data/stats.json - CLI Sessions
am.js
Other components
- User
- Firebase Identity
- Firebase Tokens
- Purchase Verification
Connections 22
- User → Web UI: uses
- User → CLI: runs
- Web UI → HTTP Server: sends requests
- HTTP Server → API Router: mounts API
- API Router → Status Route: dispatches
- API Router → Send Link: dispatches
- API Router → Verify Link: dispatches
- API Router → Stats Route: dispatches
- Send Link → Auth Client: requests link
- Send Link → Error Mapping: formats errors
- Verify Link → Auth Client: authenticates, verifies
- Verify Link → Error Mapping: formats errors
- Verify Link → Stats Logic: updates or reads
- Stats Route → Stats Logic: reads counts
- Stats Logic → Stats File: reads and writes
- Auth Client → Firebase Identity: requests sign-in
- Auth Client → Purchase Verification: submits verification
- Auth Client → Firebase Tokens: refreshes token
- CLI → Firebase Identity: requests sign-in
- CLI → Purchase Verification: submits verification
- CLI → Firebase Tokens: refreshes token
- CLI → CLI Sessions: reads and writes