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

@teqfw/cfg

v2.0.0

Published

Configuration package for Tequila Framework applications: load .env files and provide typed configuration through the DI container.

Readme

@teqfw/cfg

npms.io jsdelivr

Human-governed. Agent-built. Agent-ready.

@teqfw/cfg loads selected configuration sources into one immutable raw snapshot and exposes detached namespace fragments through the TeqFW dependency-injection container, so application packages own their typed settings. It is part of the Tequila Framework (TeqFW): created and evolved by coding agents under the architectural direction and final responsibility of Alex Gusev, and shipped with a version-matched Agent Skill so other agents can understand, integrate, and use it correctly.

Why use it

Configuration should be explicit, ordered, and stable before an application starts.

Configuration commonly becomes hidden global state. @teqfw/cfg makes the boundary explicit:

selected Sources → Loader → immutable raw snapshot → Reader → application settings

That enables:

  • ordered loading from objects, process.env, dotenv files, and custom sources;
  • deterministic precedence, with later complete keys replacing earlier values;
  • one atomic, deeply immutable raw snapshot after bootstrap, or an empty snapshot when configuration is not loaded;
  • DI-resolvable components under the TeqFw_Cfg_ namespace.

Quick start

Register the TeqFw_Cfg_ namespace and load the selected Sources once during bootstrap:

import Container from '@teqfw/di';

const container = new Container();
container.addNamespaceRoot('TeqFw_Cfg_', './node_modules/@teqfw/cfg/src', '.mjs');

const loader = await container.get('TeqFw_Cfg_Loader$');
const dotenv = await container.get('TeqFw_Cfg_Source_DotenvFile$');

await loader.load([
  dotenv.create({ path: '.env', id: 'project-dotenv' }),
]);

Package runtime configurations resolve TeqFw_Cfg_Reader$ and read detached raw namespace fragments:

const reader = await container.get('TeqFw_Cfg_Reader$');
const web = reader.get('TEQFW_WEB');
const port = Number(web.PORT ?? '3000');

Public API

cfg is DI-only and has no root runtime import. The public surface is the TeqFw_Cfg_ namespace:

  • TeqFw_Cfg_Loader$ — load selected Sources once during bootstrap;
  • TeqFw_Cfg_Reader$ — read detached raw namespace fragments;
  • TeqFw_Cfg_Source_Object$, TeqFw_Cfg_Source_ProcessEnv$, TeqFw_Cfg_Source_DotenvFile$ — built-in Source factories.

Do not import @teqfw/cfg/src/**.

Agent-ready package

The package ships with three aligned interfaces:

  • runtime code in src;
  • type information through JSDoc and types.d.ts;
  • a version-matched Agent Skill in skills/teqfw-cfg.

The skill explains components, Sources, values, lifecycle, failures, and supported integration patterns. An agent does not need to reconstruct the package architecture from source code alone.

Project instructions and application architecture remain authoritative. The package skill supplies product knowledge; the host supplies intent and policy.

Best fit

Use @teqfw/cfg for modular TeqFW applications that need an explicit, ordered, immutable configuration boundary and package-scoped raw fragments.

Use direct configuration loading when an application has a single trivial config or does not use a DI container.

Add to a project

npm install @teqfw/cfg @teqfw/di

The host registers the published TeqFw_Cfg_ namespace, resolves TeqFw_Cfg_Loader$, loads selected Sources once during bootstrap, then uses TeqFw_Cfg_Reader$ for raw namespace fragments.

Boundaries

The package acquires and publishes raw configuration. The application owns schema validation, type conversion, defaults, secret-management policy, and its typed settings. cfg does not discover packages, register schemas, initialize package configuration, or create a typed tree.

Agent-Driven Development

TeqFW is built through the same development model that it is designed to enable: one human defines the intent, architecture, constraints, and acceptance criteria; coding agents implement and maintain the products; other agents use those products in different combinations to create applications.

@teqfw/cfg is part of the Tequila Framework (TeqFW). The package includes a version-matched Agent Skill in skills/teqfw-cfg. The README provides a human-facing product overview; the skill provides agents with the package concepts, contracts, integration rules, examples, and boundaries.

Mount the skill into a host project:

mkdir -p .agents/skills
ln -s ../../node_modules/@teqfw/cfg/skills/teqfw-cfg \
  .agents/skills/teqfw-cfg

Each TeqFW package is both a practical software component and a working demonstration of human-governed, agent-driven development. This work follows the Agent-Driven Software Management (ADSM) approach: human intent, architectural authority, acceptance, and responsibility remain authoritative; agents act as implementation and reasoning partners.