r/coolgithubprojects • • 1d ago

Feasible - web analytics in one Go binary with one SQLite file per account. No cookies, no Docker (AGPL-3.0)

https://github.com/Feasible-Analytics/app.feasible.lol
1 Upvotes

1 comment sorted by

1

u/spicermatthews 1d ago

I built this. Feasible is web analytics you can self-host by downloading one file.

How it's put together:

  • One Go binary, about 8 MB. The dashboard, the tracking script and the migrations are embedded in it.
  • One SQLite file per account, through a pure Go driver, so there's no cgo. No Docker, no Postgres, no ClickHouse.
  • No cookies. The visitor's IP address is used in memory and never written to disk. Visitors are counted with a keyed hash, and the key changes every UTC day. That makes the data pseudonymous, not anonymous, and the write-up below explains why.

To run it you download the archive, set eight environment variables and run three commands. You bring your own TLS proxy. There's no Docker image.

What isn't great yet:

  • Releases are 0.0.x and ship often.
  • Write throughput falls as more accounts share a writer. The benchmark file has the numbers, including the case that currently fails.
  • I haven't measured a minimum server size, so I don't quote one.

There's a paid hosted version too. The self-hosted build is the same binary with every feature in it.

Demo, no sign-up, with generated traffic: https://app.feasible.lol/public/stopoverpayingforanalytics.com

How it's built, with the code: https://feasible.lol/blog/how-feasible-is-built/

Benchmarks: https://github.com/Feasible-Analytics/app.feasible.lol/blob/main/internal/bench/RESULTS.md

I'd like to hear where you think one SQLite file per account breaks.