Back to browse
GitHub Repository

Fail-closed, TypeScript-first multi-tenancy for Node.js - one tenant-isolation contract across Express, Next.js, AdonisJS & NestJS with Prisma, Knex, Lucid, TypeORM, Sequelize & Mongoose.

1 starsTypeScript

TenancyJs – Open-source, secure multi-tenancy for Node.js

by karthickrmchn·Jul 8, 2026·2 points·0 comments

AI Analysis

●●SolidSolve My ProblemSlick

Fail-closed guarantee prevents data leaks when tenant context is missing.

Strengths
  • Async execution scope eliminates need to thread tenantId through every call.
  • Adversarial isolation tests prove two-tenant separation on real databases.
  • CLI init wizard scaffolds stack-specific wiring automatically.
Weaknesses
  • Multi-tenancy solutions already exist in Node ecosystem (multitenant, tenanti).
  • Version 0.2.0 indicates API still settling before production stability.
Target Audience

Node.js backend developers building SaaS applications

Similar To

multitenant · tenanti · SaaS Pegasus

Post Description

When I started my web development career, I worked mostly with PHP and Laravel. I quickly fell in love with the community and the ecosystem. The amount of thought and care that went into the packages people built made the framework a joy to work with. Fast forward eight years, and I've spent most of that time working in the Node.js and JavaScript ecosystem. One thing I always felt was missing was a stable, secure, production-focused multi-tenancy solution that integrated well with existing applications. So I built TenancyJS. It's MIT-licensed. You can try it with: npx tenancyjs-cli init Documentation: https://tenancyjs.pages.dev/

Similar Projects

Infrastructure●●Solid

Make AI and automation pipelines fail-closed

Deterministic offline verification of AI pipeline outputs with Merkle hashing—novel framing, early stage.

Big BrainZero to One
oneinx
114mo ago
Security●●●Banger

VellaVeto — blocks unsafe MCP tool calls by default

Fail-closed MCP gateway with formal verification and MCPSEC benchmark suite.

Big BrainWizardryZero to One
paolovella
213mo ago
Developer Tools●●●Banger

Overture – Interactive plan graphs for AI coding agents (open source)

MCP server that halts AI agents to show executable plans as editable graphs—real friction point solved.

Solve My ProblemSlickBig Brain
AdewoleJasper
204mo ago