How e-ecstacy/warrior-dashboard works
Warrior Dashboard is a self-hosted Flask application that gamifies habit tracking as RPG character progression. The main workflow is to record activities in the browser, submit them to the server, calculate points and stat XP, and persist the resulting character state; users then review progress and use earned points for rewards. The README also describes separate budget, workout, coding, notes, challenge, personal-record, and analytics features. The backend is largely a monolith in app.py, so its domain components share that source path. Some feature wiring is documented but not visible in the sampled excerpts.
Main entry points: app.py Flask application · app.js Browser logic · index.html Dashboard UI · db_adapter.py Storage adapter
Components 16
Web experience
- Dashboard UI
templates/index.html - Browser logic
static/js/app.js - Quest logging
static/js/app.js
RPG progression
- Character progression
app.py - Streaks and combos
app.py - Achievements and skills
app.py - Analytics and ghost data
app.py
Life tracking
- Budget tracker
app.py - Workouts and records
app.py - Programming skills
app.py - Notes and planning
app.py - Challenges and nemesis
app.py
Application and storage
- Flask application
app.py - Storage adapter
db_adapter.py - Persistent data
data
Other components
- User
Connections 20
- User → Dashboard UI: uses
README.md - Dashboard UI → Browser logic: loads
README.md - Browser logic → Flask application: requests API
static/js/app.js - Quest logging → Flask application: submits activity
- Flask application → Storage adapter: uses
app.py - Storage adapter → Persistent data: reads and writes
db_adapter.py - Flask application → Character progression: calculates XP
app.py - Character progression → Streaks and combos: updates
app.py - Flask application → Achievements and skills: serves features
README.md - Flask application → Analytics and ghost data: serves analytics
app.py - Browser logic → Budget tracker: submits transactions
static/js/app.js - Browser logic → Workouts and records: submits records
static/js/app.js - Browser logic → Programming skills: logs sessions
static/js/app.js - Browser logic → Notes and planning: submits notes
static/js/app.js - Browser logic → Challenges and nemesis: loads and completes
static/js/app.js - Flask application → Budget tracker: serves feature
README.md - Flask application → Workouts and records: serves feature
README.md - Flask application → Programming skills: serves feature
README.md - Flask application → Notes and planning: serves feature
README.md - Flask application → Challenges and nemesis: serves feature
README.md