How sabbat-cloud/sabbat-cyberpunk-console works
This is a Flask-backed cyberpunk terminal whose main workflow is: a visitor opens the console, enters commands in the browser, and receives terminal output or an interactive mini-app. The frontend handles the shell, simulated filesystem, themes, localization, tools, and presentation; Flask serves the page and owns server-side APIs and session-backed games. Chess and nuclear-war simulation have separate engines. The README documents additional games and capabilities that are not fully represented in the sampled source; those are kept as documented frontend or integration branches, without inferring unsampled call paths.
Main entry points: script.js Terminal shell · app.py Flask application · index.html Console page · PyTrek PyTrek game
Components 18
Web experience
- Terminal shell
static/js/script.js - Console page
templates/index.html - Virtual filesystem
static/js/script.js - Themes and i18n
static/js/script.js - Terminal tools
static/js/script.js - Text adventure
static/js/script.js
Flask backend
- Flask application
app.py - Chess API
app.py - Nuclear API
app.py - Security controls
app.py
Games and simulations
- Firewall game
app.py - PyTrek game
PyTrek - Chess engine
chess_engine.py - Nuclear simulator
nuclearwar_engine.py
Tools and integrations
- Encryption commands
app.py - Weather lookup
app.py - OpenWeatherMap
Other components
- Visitor
Connections 19
- Visitor → Console page: opens
README.md - Console page → Terminal shell: hosts
README.md - Terminal shell → Virtual filesystem: runs commands
README.md - Terminal shell → Themes and i18n: handles settings
README.md - Terminal shell → Terminal tools: runs commands
README.md - Terminal shell → Text adventure: launches
README.md - Console page → Flask application: served by
app.py - Flask application → Chess API: routes requests
app.py - Terminal shell → Chess API: posts moves
static/js/script.js - Chess API → Chess engine: uses
app.py - Terminal shell → Firewall game: plays
README.md - Terminal shell → PyTrek game: launches
README.md - Flask application → Nuclear API: routes requests
app.py - Terminal shell → Nuclear API: requests timeline
static/js/script.js - Nuclear API → Nuclear simulator: generates events
app.py - Terminal shell → Encryption commands: requests cipher
README.md - Terminal shell → Weather lookup: requests forecast
README.md - Weather lookup → OpenWeatherMap: fetches weather
app.py - Flask application → Security controls: configures controls
app.py