HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sathvikchinnu

no profile record

Submissions

[untitled]

1 points·by sathvikchinnu·เดือนที่แล้ว·0 comments

Show HN: Agent Chat Bridge – give AI IDE agents an async callback

github.com
5 points·by sathvikchinnu·2 เดือนที่ผ่านมา·0 comments

Show HN: OmniDB – Thin database orchestration (failover, health checks) for Node

github.com
1 points·by sathvikchinnu·5 เดือนที่ผ่านมา·1 comments

Show HN: Lume.js – 1.5KB React alternative using zero custom syntax

sathvikc.github.io
7 points·by sathvikchinnu·7 เดือนที่ผ่านมา·3 comments

comments

sathvikchinnu
·2 เดือนที่ผ่านมา·discuss
[flagged]
sathvikchinnu
·5 เดือนที่ผ่านมา·discuss
Hey HN,

I’m Sathvik, the creator of OmniDB.

I built this because I kept seeing the same outage pattern in production: the primary database isn’t "down" (refusing connections), it’s just stalled or slow. The application keeps trying to use it, the connection pool exhausts, and everything halts.

Most simple failover logic looks like this:

  if (primary.isDown) switch_to(replica)
But this doesn't capture latency spikes or "zombie" connections. I found myself writing ~200 lines of manual "glue code" for every project to handle health checks, timeouts, and graceful failovers properly.

OmniDB is a library that extracts that logic into a thin orchestration layer (<10KB, 0 deps).

What it does:

- Orchestration, not Abstraction: You bring your own client (Prisma, pg, Redis, Mongo, etc.). OmniDB just manages the lifecycle.

- Real Health Checks: Checks for latency/timeouts, not just connectivity.

- Circuit Breakers: Built-in protection to stop cascading failures.

- O(1) Scalability: Uses a Map-based registry so it handles N database connections/shards with constant-time lookup.

It’s TypeScript-first and designed to be dropped into existing Node.js backends.

Repo: https://github.com/sathvikc/omni-db

I’d love to hear how you handle application-side failover logic. Do you roll your own or rely entirely on infrastructure (proxies/LBs)?
sathvikchinnu
·7 เดือนที่ผ่านมา·discuss
Hey HN! I built Lume.js after getting frustrated with framework overhead on simple projects.

The problem: 80% of websites don't need a full framework. Vanilla JS works great except for one thing: reactivity. You end up with spaghetti code manually tracking which DOM elements to update.

What Lume does: Adds reactivity to vanilla JS using only web standards. data-bind attributes (valid HTML5) + ES6 Proxies. No JSX, no v-model, no x-data. No build step unless you want one.

Size: 1.5KB gzipped (vs 42KB React+ReactDOM, 18KB Vue, 15KB Alpine).

Philosophy: Inspired by Go - do one thing well. Lume makes HTML reactive. Everything else (routing, validation, etc.) is optional addons or separate libraries.

I rewrote the core three times over two months to get automatic dependency tracking without memory leaks. Ended up with 114 tests and full coverage.

The repeat addon for list rendering is experimental (API might change), but everything else is stable.

Would love feedback, especially on:

API decisions (explicit state() wrapping vs automatic) Tradeoffs (bundle size vs features) Use cases I'm missing Links:

Website: https://sathvikc.github.io/lume-js/ GitHub: https://github.com/sathvikc/lume-js Design decisions: https://sathvikc.github.io/lume-js/#docs/design/design-decis...