frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Show HN: Bento - An entire PowerPoint in one HTML file (edit+view+data+collab)

https://bento.page/slides/
133•starfallg•1h ago•33 comments

Show HN: HN Hall of Fame – browse 3,100 legendary Hacker News links

https://www.orangecrumbs.com/hall/
54•oyster143•1h ago•11 comments

Show HN: DeepSQL – A self-hostable AI DBA agent for Postgres and MySQL

https://deepsql.ai/
3•venkat971•2d ago•3 comments

Show HN: Web swing through midtown NYC

https://www.swingnyc.com/
2•shahahmed•21m ago•0 comments

Show HN: blackbar-nano – local PII detection and redaction on CPU

https://github.com/safetype/blackbar-nano
2•My24HR•44m ago•0 comments

Show HN: Brew doctor` for Skills and MCP loadouts

https://github.com/dbreunig/drskill
2•dbreunig•56m ago•0 comments

Show HN: AI resume spam ruined hiring so I built a tool to keep the bots out

https://permanym.com
2•romanhn•58m ago•0 comments

Show HN: EcoTrace – Lightweight carbon footprint and energy tracker for Python

https://github.com/Zwony/ecotrace
2•Zwony•1h ago•0 comments

Show HN: MutexCam – Global Camera and Mic Control on Mac for Zoom, Teams, Meet

https://mutex.cam/
2•superquizonline•1h ago•0 comments

Show HN: The Email Game – AI agents compete over cryptographically signed emails

https://theemailgame.com/
2•RyanJensen•1h ago•1 comments

Show HN: I built 20,795 grad-advisor profiles from OpenAlex public data

https://labcompass.app
3•boazraz•1h ago•0 comments

Show HN: Veracium – agent memory keeping third-party claims from becoming facts

https://github.com/veracium-ai/Veracium
2•qspencer•1h ago•0 comments

Show HN: Yorishiro – a macOS terminal where AI agents live

https://github.com/sktkkoo/Yorishiro
2•hakumei•1h ago•0 comments

Show HN: PDF tools that run in the browser, no upload

https://pdfcdf.com
3•sofiurrr•1h ago•0 comments

Show HN: Made a App to Turn Any Podcast into a Website

https://audioenhancer.com/
2•wbemaker•1h ago•0 comments

Show HN: BBRv3 for gVisor's netstack, visualized in the browser using WASM

https://ccsim.apoxy.dev
2•dilyevsky•1h ago•0 comments

Show HN: Anakin – API for your AI agents to access the most difficult websites

https://anakin.io
4•mohitprateek•1h ago•0 comments

Show HN: Agent in 9 Lines Python

https://gist.github.com/tosh/6e91a9dbf08dd630c535e7345ac7f0b5
7•tosh•2h ago•2 comments

Show HN: Cleared – true profit calculator for eBay, Poshmark and Depop

https://clearedledger.xyz
2•petesarney•1h ago•0 comments

Show HN: LapDeck – Turn your phone into a remote deck for your Windows laptop

https://github.com/ronak-create/LapDeck
2•ronak_parmar•1h ago•0 comments

Show HN: Receive.link – anyone can send you files encrypted to your passkey

https://receive.link/
2•neutrinoq•1h ago•1 comments

Show HN: Langy, an automated AI engineer (we gave it a robot body) [video]

https://langwatch.ai/blog/introducing-langy-your-automated-ai-engineer
8•jangletown•1h ago•0 comments

Show HN: I walk-forward tested classic trading setups. Several have no real edge

https://edgestacker.com/tools/library/
2•thepromptgenius•1h ago•0 comments

Show HN: Fund an agent once – prepaid USDC key for HTTP 402 tools (Solana)

https://vibes-coded.com/start
3•b_radford•1h ago•0 comments

Show HN: Kernel optimization is obsolete. Just NPM install it

https://github.com/tensormux/kernel-skills
2•KRISH2832•1h ago•0 comments

Show HN: Trifle – Open-source analytics that stores answers, not events

https://trifle.io/
4•iluzone•2h ago•0 comments

Show HN: DataParade – generate dataflow diagrams from code for risk assessments

https://github.com/DataParade-io/dataparade-cli
4•dpdave•2h ago•0 comments

Show HN: Cosyra – run cloud coding agents from your phone

https://cosyra.com/
2•adamisnotroman•2h ago•1 comments

Show HN: Foomchat – an AI chat where the interface is whatever you want

https://foomchat.com
3•scrygl•2h ago•2 comments

Show HN: Dejavu – stop showing coding agents the same command output twice

https://github.com/Salnika/dejavu
2•salnika•2h ago•0 comments
Open in hackernews

Show HN: Trifle – Open-source analytics that stores answers, not events

https://trifle.io/
4•iluzone•2h ago
Trifle is an open-source time-series analytics library that aggregates nested counters instead of storing raw events. All in the database you already have. After rebuilding it twice over 10 years, it now tracks ~1B events a day at my day job.

It started in 2015 as my own Rails APM. I plugged into ActiveSupport::Notifications, got a few small users, and one bigger one whose scraping app broke everything. That sparked the core idea: aggregate counters into pre-defined time buckets, so a single write increments multiple buckets at once. The APM eventually faded away without much traction.

Later in 2021 I needed analytics at my day job. Instead of going for something out there I revised the idea of Trifle as a more generic analytics library, borrowing some data warehouse ideas. First used Redis, then Postgres, eventually MongoDB. Hence why Trifle::Stats comes with multiple drivers that keep the DSL unified while storage layer changes with your needs. In our case (huge write volume, some reads) PG read faster but slowed on large writes.

The nested values are the whole trick here. Single:

  Trifle::Stats.track(
    key: 'requests::aws::s3_uploads',
    values: {
      count: 1,
      status: { request.response_code => 1 },
      size: payload.bytes,
      duration: { sum: request.duration, count: 1 }
    }
  )
  
builds up counts for requests, success rate, result status codes, duration for multiple time buckets at once. Single bucket from 2am then looks like:

  { count: 14, status: { 200: 12, 500: 2 }, size: 5628341, duration: { sum: 43, count: 14 } }
If request.duration is in seconds, then sum stored under duration would be in seconds as well.

Success rate is never stored, but it is calculated by dividing 200s over total number of requests. Same with average duration: sum over count. You ask for a metrics key, granularity and timeframe and you get back aggregated values at each point. Ready for charts or to answer "Average response time over last 30 days".

There's a Series wrapper for aggregating and formatting values for charts in a simple call. And as building dashboards is not as much fun for other devs as I thought, I built Trifle App - a visual layer with dashboards, scheduled digests and alerts. It's written in Elixir, so I ported the library to Elixir too. And later to Go for a CLI. All three are compatible, write in one and read in another.

Today we track activity from over 100M background jobs a day which turns into about 1B events. It runs surprisingly cheap when you're willing to trade some safety away (turn off journaling and write concerns in Mongo). 3-node Hetzner MongoDB cluster where the primary does 20% utilization costs us around $1k/month.

It has its limitations. Payloads can't hold tens of thousands of keys. Documents becomes too large to update efficiently. Some planning ahead is needed. And then there are no dimensions. Sometimes you can nest them (country - there are only so many countries), sometimes it's better to have dedicated metrics key per dimension (customer - growing forever). That multiplies tracked events, hence 1B events from 100M jobs.

The libraries are MIT. The App is source-available under ELv2 - free to self-host and paid cloud if you want it managed. I build this on the side with no investor money to burn on a free service.

Happy to answer anything about architecture, storage models, my failures or why I didn't give up on this yet.