Skip to content

v1.0.0 β€” Nyx Analytics 🦞🌌

Choose a tag to compare

@fabudde fabudde released this 24 Jun 01:10
· 100 commits to master since this release

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/v1 REST API (Bearer auth) + a nyx CLI 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

<script defer data-domain="example.com" src="https://analytics.example.com/nyx.js"></script>

```

πŸ”’ 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 🦞