The high-performance core engine for the Twitch interactive airline simulation.
The Miles & More Backend powers the ultimate interactive flight simulation experience on Twitch. Built on modern Node.js and Fastify, this server orchestrates real-time IRC chat commands, manages flight telemetry, and handles job scheduling—all tightly integrated with Twitch and lightning-fast Redis storage.
- Twitch Integration Core: Full IRC chat bot, user lookups, and Twitch API interactions.
- Real-Time Data Pipelines: Handles live SimLink aviation telemetry ingestion.
- Automated Scheduling: Upstash QStash and local pollers for boarding flows and lifecycle management.
- Robust API Engine: Lightweight Fastify endpoints serving the web frontend.
npm installCopy the example environment variables and adjust them to your Twitch and Upstash configurations:
cp .env.example .envUse a single Twitch Developer Application for all OAuth flows:
TWITCH_APP_CLIENT_ID/TWITCH_APP_CLIENT_SECRETare the only application credentials.TWITCH_BOT_ACCESS_TOKEN/TWITCH_BOT_REFRESH_TOKENbelong to the bot Twitch account and must be issued for that same application.
Start the backend locally (listens on http://localhost:3001 or your configured PORT):
npm run devCC BY-NC 4.0 License
This project is licensed under the Creative Commons Attribution-NonCommercial 4.0 International License. You are free to view and modify the code for personal use or private testing, but you may not use this software, or any portion of it, for commercial purposes, monetization, or as part of a paid service.
Requirements for Credits
If you showcase, adapt, or fork parts of this repository for open, non-profit projects, you must prominently credit the original creator in your project's README.md and user-facing documentation by linking back to this original code/author.