tonsky.me
Read post

Statistics made simple

This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).

A Clojure developer built a lightweight, self-hosted web analytics library called clj-simple-stats as an alternative to bloated solutions like Google Analytics. The library integrates as Ring middleware with zero configuration, distinguishes between request types (live users, RSS feeds, bots), properly counts RSS reader subscribers from User-Agent headers, and provides semantically correct visualizations using bar charts instead of misleading line graphs. It uses DuckDB for storage and offers basic filtering by page, referrer, and date. Future improvements include spike analysis, GeoIP data, referrer signal extraction, and performance optimization through pre-calculated aggregates.

    #webdev#self-hosting#duckdb#clojure
Dec 21, 2025•5m read time•From tonsky.me
Post cover image
Table of contents
Statistics made simpleExisting optionsMy solution
4.1K Impressions
tonsky.me's image
tonsky.me

Tonsky Blog offers insights, essays, and discussions on programming languages, software design, and ...

11 Followers

•

275 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard