npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@quiqflow-org/quiqflow-multi-tenants-utils

v1.0.5

Published

Shared multi-tenant helpers (schema resolution, connection management, middleware) for Quiqflow services.

Readme

quiqflow-multi-tenants-utils

npm version License: MIT

Quiqflow multi-tenant management utilities.
This package provides utility functions and helpers for developing, managing, and operating tenant-aware applications and services within the Quiqflow ecosystem.


Features

  • Tenant isolation: Utilities for handling multiple tenants with clear separation.
  • Configuration management: Simplifies the loading and handling of tenant-specific configurations.
  • Helpers for onboarding/provisioning: Facilitates new tenant setup and management flows.
  • Security and context management: Assists in establishing secure context for tenant operations.
  • Extensible and framework-agnostic: Easily integrates with Node.js/TypeScript backends and microservices.

Table of Contents


Installation

npm install quiqflow-multi-tenants-utils
# or
yarn add quiqflow-multi-tenants-utils

Usage

Import the package in your TypeScript/Node.js project:

import { getTenantContext, TenantConfigLoader } from 'quiqflow-multi-tenants-utils';

// Example: Retrieve tenant context from a request
const tenantId = req.headers['x-tenant-id'];
const tenantContext = getTenantContext(tenantId);

Or in JavaScript:

const { getTenantContext, TenantConfigLoader } = require('quiqflow-multi-tenants-utils');

API Reference

📑 NOTE: Consult the inline TypeScript documentation or see API details if available.

getTenantContext(tenantId: string): TenantContext

Retrieves or builds a tenant-specific context object using the provided tenant identifier.

TenantConfigLoader

A utility to load and cache tenant-specific configuration files.

Example:

const configLoader = new TenantConfigLoader('/path/to/configs');
const tenantConfig = configLoader.loadConfig(tenantId);

Additional helper functions may include:

  • Middleware for Express.js/Koa to inject tenant context
  • Utilities for tenant-aware logging
  • Helper types and guards for safe multi-tenant code

Examples

See the /examples directory (if present) or review test files for usage patterns and integration scenarios.


Contributing

Contributions are welcome!
Please open issues or pull requests for bug fixes, new features, or improvements.

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature/my-feature).
  3. Commit your changes (git commit -am 'Add new feature').
  4. Push to the branch (git push origin feature/my-feature).
  5. Create a pull request.

License

This project is licensed under the MIT License.


About

quiqflow-multi-tenants-utils is maintained by the Quiqflow team.

For questions or support, please open an issue.