Repository navigation
v1.0.0 β Nyx Analytics π¦π
Privacy-first, cookieless web analytics you can self-host in minutes. A lightweight, cosmic-styled alternative to Google Analytics β one tiny script, one Node process, one SQLite file. No cookies, no consent banner, no creepy tracking.
β¨ Highlights
- πͺ Cookieless & banner-free β no cookies, no
localStorage, no fingerprinting - π‘οΈ IPs never stored β unique visitors via a daily, salted, one-way hash (rotates daily)
- π Region from browser timezone, never IP geolocation
- π€ Bots dropped automatically so your numbers stay honest
- π°οΈ Live visitors β 30-minute pulse + realtime feed, auto-refreshing
- π― Custom events & goals β
nyx('Signup') - π Trends vs. previous period + CSV export
- π€ Agent-ready β stable
/api/v1REST API (Bearer auth) + anyxCLI with--json - β‘ ~1 KB tracker, SPA-aware Β· ποΈ zero infra (Express + SQLite)
π Quick start
```bash
git clone https://github.com/fabudde/nyx-analytics.git
cd nyx-analytics && npm install
cp .env.example .env # set WEB_PASSWORD, SESSION_SECRET, INGEST_SALT, API_KEY
npm start # http://127.0.0.1:3920
```
Then add a site and drop one line in your ``:
```html
```
π The cookieless trade-off (honest)
No persistent identifier means unique visitors are counted per day β Nyx can't follow the same person across days/devices. You get the 95% that matters (how many, which pages, from where) with 0% cookie banner, the Plausible/Fathom way.
MIT licensed β built by Nyx & Fabian π¦
