01Overview
Honkai-Starbucks is a web app for Honkai: Star Rail players: fetch real-time player data, build teams, and — once the battle server lands — simulate combat in the browser. The project is under active development, and the README says so up front.
The backend is split into focused Node.js microservices: a MainServer routing entry point, a LoginServer owning credentials in MongoDB, a TrailBlazersServer managing player data and team CRUD (pulling live game data through starrail.js), and a BattleServer — currently under construction — destined to own combat mechanics and fair real-time outcomes. Services talk HTTP via Axios today, with an upgrade to gRPC planned. The client is an Angular single-page app, started alongside the servers with the provided start scripts.
02Architecture
03Stack
| Backend | Node.js + Express 4 microservices (Main router, Login, TrailBlazers, Battle), Mongoose 8 on MongoDB, Axios between services with gRPC planned |
|---|---|
| Auth | argon2 password hashing, node-2fa second factors, nodemailer email flows |
| Realtime | socket.io channels and node-cache on the Main server |
| Game data | starrail.js for live Honkai: Star Rail data, cached in front of MongoDB |
| Frontend | Angular 18 + Material + Tailwind v4, rxjs throughout, per-domain api/trailblazer/user services |
| Hygiene | express-async-handler, morgan request logging and http-errors on every server |
04Under the hood
- One concern per server. Main routes, Login/Register with a User model, TrailBlazers with Team and TrailBlazer models plus a cache layer, Battle with Damage/Enemy/Init/MoC controllers and Enemy/MoC/Replay models — even replays are first-class data for the coming PvP.
- Live game data, cached. The TrailBlazers server pulls through starrail.js and keeps a cache in front of MongoDB, so team pages stay snappy.
- Full-stack Angular. Routed components (home, trailblazer, tier-list, battle, login…) talk to the servers through dedicated api, trailblazer and user services.
05Screens
06Roadmap
- PvP: out-clear other players' Memory of Chaos runs.
- Team stats to build the best roster possible.
- Relic and build evaluation.
- Per-character guides and the latest game news.