sathvikc/omni-db: Thin database orchestration library for Node.js - manage multiple connections with health monitoring and failover
github.com·13h·
Discuss: Hacker News
⚙️DataFusion
Preview
Report Post

OmniDB

Thin database orchestration library for Node.js — manage multiple connections with health monitoring and failover.

Features

  • 🔌 Multi-Database Support — Bring your own clients (Prisma, Drizzle, Redis, MongoDB, etc.)
  • 🏥 Health Monitoring — Configurable periodic health checks with timeouts
  • 🔄 Automatic Failover — Route to backups when primary is unhealthy
  • 📡 Event System — Subscribe to connection, health, and failover events
  • 📦 Minimal Footprint — Zero runtime dependencies, <10KB bundle
  • 🔷 TypeScript Ready — Full type definitions with generics

Before & After

❌ Without OmniDB — 80+ lines of boilerplate

// DIY: Managing multiple databases with health checks and failover

const primaryPool = new Pool({ connectionString: PRIMAR...

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help