r/analytics • u/Dovahkciin • Oct 02 '26
Discussion why do all modern self-hosted analytics solutions run on Node.js?
hi everyone,
i've been using Umami Cloud for the past two years for my personal projects, but noticed that all history older than 6 months was deleted (which is pretty frustrating, even if i understand that they cannot keep all user data).
as im still a student on a small budget, i host my projects on a small VPS and wanted to switch to a self-hosted analytics solution.
but WHY does almost every modern tool require Node.js / Docker with heavy background services, while lightweight alternatives either look like they were built in 2010 or lack essential features like events, funnels, and clean session tracking?
am I missing something here? im not saying it's easy to build, but im surprised i couldn't find anything that seems to fit my needs
because if there really is nothing low-resource and GDPR-friendly im seriously considering building my own ultra-lightweight PHP + SQLite solution from scratch.
•
u/AutoModerator Oct 02 '26
If this post doesn't follow the rules or isn't flaired correctly, please report it to the mods. Have more questions? Join our community Discord!
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
3
u/meatmick Oct 02 '26
Having the largest ecosystem or popularity makes it a de facto standard, and it just snowballs into being shoved into everything. Whether it's a good thing or not, I'm not sure.
This is similar to Pythondata-related not being the fastest (although it's plenty fast for a lot of workloads, especially with c++/rust backed packages) but still being the most popular tool for anything data related.
Users don't see the backend and don't care about the amount of resources it needs.
Also, sometimes we devs obsess over fast vs slow when, in some scenarios, we're talking milliseconds of difference for some low concurrency/performance requirements workloads.
I don't have a true answer for you, just my reflection.
1
u/Content-Parking-621 Oct 02 '26
Try GoatCounter, it's a single Go binary with SQLite, no Node or Docker needed, and it's GDPR-friendly by design, exactly the low-resource setup you're describing.
1
u/Express_Speaker8829 Oct 03 '26
you're not missing much, the language isn't really the reason. it's the database.
once you want funnels and sessions you need every raw event, and "who did A then B within a week" over millions of rows is slow in a normal row store. so the modern tools reach for a columnar db (plausible uses clickhouse) or a heavily indexed postgres, and that's where the docker + background services come from. the node part is mostly just the dashboard.
light options that do exist:
- goatcounter: go, single binary, sqlite or postgres. very light, has events, no funnels
- matomo: php + mysql, has sessions and events, funnels are a paid plugin
- umami self-hosted: runs with plain node + postgres, no docker needed, fine on a small vps
if you do build your own php + sqlite one, worth doing early:
- turn on WAL mode, sqlite is fine with one writer that way
- write raw hits to one table, roll them up into daily tables with a cron, and let the dashboard read the rollups
- unique visitors without cookies: hash ip + user agent + a salt that rotates every day, then throw the old salt away
- decide retention up front (raw for 30-90 days, rollups forever)
disclosure: i'm building one of these too (DataVisitors, hosted and invite-only right now, so not the self-hosted thing you want). the daily salt trick above is how we count visitors without cookies.
2
u/EducationalGene5855 Oct 02 '26
Ran Plausible self hosted, Postgres ate my 1gb VPS alive.
8
u/[deleted] Oct 02 '26
[removed] — view removed comment
1
u/[deleted] Oct 02 '26
[removed] — view removed comment