A little command-line tool to generate Vega-Lite charts from Navidrome's insights database.
https://github.com/navidrome/insight-charts.git
insightโcharts processes insight records from
Navidrome and generates
Vega-Lite charts.
git clone https://github.com/yourusername/insight-charts.git
cd insight-charts
development; autoโreloads on file change
deno task devproduce a standalone native binary in ./insightโcharts
deno task build
| Variable | Purpose | Example |
| -------------------- | ---------------------------------------------------------------------------- | ---------------------------------- |
| INSIGHTDBPATH | Path to the SQLite database. Required if --db-path flag is not passed. | INSIGHTDBPATH=./db/insights.db |
| INSIGHTOUTPUTDIR | Folder where chart JSON files will be written. | INSIGHTOUTPUTDIR=./charts |
| INSIGHTVERBOSE | Enable timestamped log lines (1, true, yes). | INSIGHTVERBOSE=1 |
A sample file (.env.example) is provided; copy it to .env and adjust:
cp .env.example .env
...edit as needed...
INSIGHTDBPATH=./db/insights.db \
INSIGHTOUTPUTDIR=./charts \
deno run -ERW main.ts
After deno task build:
./insight-charts -d ./db/insights.db -o ./charts -v
| Flag | Description | Default |
| ------------------------- | ------------------------------------- | ------- |
| -d, --db-path <path> | Path to the SQLite database | โ |
| -o, --output-dir <path> | Output directory for chart JSON files | . |
| -v, --verbose | Prepend date & time to log messages | off |
| --help | Show builtโin help | โ |
deno task serve
docker build -t insight-charts .