- Python 62.4%
- HTML 21.2%
- CSS 15.7%
- Dockerfile 0.5%
- Shell 0.2%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
All checks were successful
Push Docker Image / push (push) Successful in 1m11s
|
||
| .forgejo/workflows | ||
| examples | ||
| mado | ||
| .gitignore | ||
| AGENTS.md | ||
| DESIGN.md | ||
| README.md | ||
Mado
A lightweight, self-hosted error tracking tool.
Quick Start
uv sync
uv run python manage.py migrate
uv run python manage.py seed # optional: load sample data
uv run python manage.py runserver
Open http://localhost:8000.
Signing in requires Thermopylae — see Authentication. Without it the server runs, but nobody can log in.
Authentication
Mado keeps no credentials of its own. Every session — the app and the Django Admin alike — starts at Mado's sign-in screen, whose only option is Sign in with Thermopylae. Thermopylae then authenticates the user and vouches for their identity, and Mado returns them to the page they were heading for.
| Variable | Example | Notes |
|---|---|---|
OIDC_ISSUER |
https://thermopylae.marut.network |
Public base URL of the provider |
OIDC_CLIENT_ID |
mado |
Client ID of the Mado application |
OIDC_CLIENT_SECRET |
— | Shown once, when the application is created |
Register the application in Thermopylae's /admin with the redirect URI
https://<mado-host>/oidc/callback/, then put the credentials in the
deployment's .env. The four endpoints are derived from the issuer.
Mado asks for the openid, email, profile and roles scopes. Roles are per
application: give a user the admin role under the Mado client to let them into
Django Admin. Roles are re-read at every sign-in, so revoking one takes the
access away again. Email addresses and passwords are managed in Thermopylae too;
the User Settings page only reports what the provider said.
Features
- Projects — create, configure, delete projects; each gets a unique DSN key
- Event Ingestion — POST structured error payloads via the
/api/events/store/endpoint - Issue Grouping — similar events are fingerprinted (exception type + culprit + in-app frames) and rolled up into one issue with an occurrence count
- Issue Browser — filter by status, level, full-text search; HTMX-powered live filtering
- Issue Detail — tabbed view of stack trace, tags, context, request data, user info, extras, SDK info; jump between occurrences
- Stack Traces — collapsible frames with source context, highlighted error lines
- Status Management — resolve, ignore, reopen issues; single or bulk actions
- Notification Throttling — one email per issue per cooldown window (
MADO_NOTIFICATION_COOLDOWN_MINUTES, default 30), plus an immediate alert when a resolved issue regresses - Tags — auto-extracted (environment, release, level, etc.) plus custom tags
- Single Sign-On — authentication and admin roles come from Thermopylae; Mado stores no passwords
- Database Agnostic — works with SQLite, PostgreSQL, MySQL, and any Django-supported backend
Development
# Run tests
uv run python manage.py test
# Type checking
uv run mypy projects events accounts mado
Accounts arrive by signing in through Thermopylae, so there is no local
superuser to create: give the account the admin role for this application in
Thermopylae instead.