Tracks compliance drift over time with charts and entropy scores. Companion to Clotho
https://moirai.0x1eo.dev/lachesis
- TypeScript 82.7%
- HTML 14.7%
- SCSS 2.6%
Add audit history endpoints, interactive report viewer with evidence filtering, trend analysis charts, and audit-to-audit comparison. Enhance data models to support Clotho's rich evidence types including file diffs and configuration drift detection. |
||
|---|---|---|
| api | ||
| dashboard | ||
| .gitignore | ||
| LICENSE | ||
| README.md | ||
Lachesis
Dashboard for tracking if my servers are staying compliant over time.
Ingests JSON reports from Clotho, stores them in MariaDB, shows pretty graphs. Tells me when things "fray" (drift from baseline).
Install
API
cd api
npm install
Dashboard
cd dashboard
npm install
Needs MariaDB running with a monitor database.
Usage
# start api (port 6380)
cd api && npm run dev
# start dashboard (port 4200)
cd dashboard && npm start
Ingest a Clotho report
curl -X POST http://localhost:6380/api/ingest \
-H "Content-Type: application/json" \
-d @clotho_report.json
Check stats
curl http://localhost:6380/api/threads/stats
Database
sudo mariadb -e "
CREATE DATABASE monitor;
CREATE USER 'lachesis'@'localhost' IDENTIFIED BY 'changeme';
GRANT ALL ON monitor.* TO 'lachesis'@'localhost';
"
Tables auto-create on first run.
What it tracks
- Entropy — weighted score of failed controls (higher = worse)
- Stability — time since last failure / total uptime
- MTBF — mean time between "fray" events
License
MIT