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%
Find a file
Leandro Afonso 5377560efb Implement interactive audit reports, trend analysis, and comparison capabilities
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.
2026-01-14 15:11:23 +00:00
api Implement interactive audit reports, trend analysis, and comparison capabilities 2026-01-14 15:11:23 +00:00
dashboard Implement interactive audit reports, trend analysis, and comparison capabilities 2026-01-14 15:11:23 +00:00
.gitignore init 2026-01-10 21:14:03 +00:00
LICENSE init 2026-01-10 21:14:03 +00:00
README.md init 2026-01-10 21:14:03 +00:00

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