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

teaos

v0.0.8

Published

local package, component, and npm plugin manager

Readme

teaos (0.0.8)

Use local and npm package plugins with a unified runtime loader.

Changelog

0.0.7 (2026-05-02)

  • Added CLI commands teaos dependencies and teaos dependencies-local to inspect traced dependency results from teaos.json.
  • Documented recursive API usage for dependency tracing: teaos.dependencies(lpath, {recursive: true}) and teaos.localDependencies(lpath, {recursive: true}).

Installation

command line

npm install -g teaos
teaos ls

library

npm install teaos

Usage

Command line

Run in your project root.

teaos

Prints the installed teaos package version.

teaos ls

Lists local packages found in ./lib/{package}/index.js.

teaos ls -l

Shows detailed module info including scanned extension details for each local package under ./lib.

teaos ls apps

If ./apps exists, lists directories directly under ./apps.

teaos ls lib

Same output as teaos ls.

teaos extension-types

Scans ./lib/*/lib/extensions/* and prints detected extension types.

teaos attr <NAME>

Prints teaos.attr(NAME) for the current project (for example: root, name, path.@apps).

teaos ls --extension-type <type>

Lists tea modules that contain the specified extension type.

teaos extensions --all

Shows all discovered extensions as <module>.<extension-type>.

teaos extensions --type <type>

Shows extensions for modules matching the specified extension type.

teaos extensions --package <name>

Shows extensions for the specified tea module.

teaos require <package>
teaos use <package>

Loads a local package as @<package> and prints trace logs (require / declare).

teaos require.all
teaos use.all

Loads all packages discovered under ./lib.

teaos @<package>/<tool> [...args]
teaos <package>/<tool> [...args]
teaos create app <appname>

Creates apps/<appname>/teaos.json and apps/<appname>/index.js.

teaos create lib <libname>

Creates lib/<libname>/teaos.json and lib/<libname>/index.js.

teaos install [<name>|@<libname>]
teaos install lib/<libname>
teaos install apps/<appname>
teaos init

Initializes teaos.json in the current project root (similar to npm init for teaos metadata).

  • If teaos.json already exists, the command makes no changes.
  • If teaos.json does not exist, it is created with:
    • name: copied from package.json.name when available (otherwise directory name)
    • dependencies: copied from package.json.dependencies when available (otherwise {})

Adds/synchronizes dependencies for the current scope (project root, apps/<appname>, lib/<libname>).

  • teaos install @<libname>
    • Adds @<libname>: "*" to scoped teaos.json.
    • If current scope is apps/<appname>, also adds the same entry to root teaos.json.
    • If TEAOS_REPO is set (loaded from root .env when present) and lib/<libname> is missing, clones <TEAOS_REPO>/<TEAOS_REPO_PREFIX><libname>.git into lib/<libname>.
    • TEAOS_REPO_PREFIX is optional (defaults to empty string when undefined).
  • teaos install <name>
    • Adds <name>: "*" to scoped teaos.json.
    • Runs npm-style install for the root project (npm install <name>), with node_modules handled only at project root.
  • teaos install lib/<libname>
    • Alias for teaos install @<libname>.
  • teaos install apps/<appname>
    • Installs an application repository into ./apps/<appname> (if not already present).
    • Uses <TEAOS_REPO>/<APPS_REPO_PREFIX><appname>.git as clone URL.
    • APPS_REPO_PREFIX is optional (defaults to empty string when undefined).
  • teaos install (no args)
    • Verifies and reconciles dependencies and local modules in the current scope.
teaos uninstall <name|@libname>
teaos uninstall lib/<libname>
teaos uninstall apps/<appname>

Removes the dependency key from dependencies in the current scope's teaos.json.

  • In apps/<appname> scope, also removes the same key from root teaos.json.
  • In lib/<libname> scope, updates only that lib's teaos.json.
  • teaos uninstall lib/<libname> is an alias for uninstalling @<libname>.
  • teaos uninstall apps/<appname> is currently not supported (no-op).
  • Does not delete lib/<name> directories or node_modules entries.
teaos dependencies
teaos dependencies-local

Prints traced dependency sets for the current project scope:

  • teaos dependencies shows all dependency package names (local and npm).
  • teaos dependencies-local shows only local dependency names (@...).

Recursive verification:

  • Newly loaded lib/*/teaos.json files are read recursively.
  • Internal deps (@...) are checked against lib/* and loaded from TEAOS_REPO when available.
  • npm deps are checked in root node_modules, and missing packages are installed.

Dependency format in teaos.json:

{
  "name": "@libA",
  "dependencies": {
    "@libB": "*",
    "@libC": "*",
    "libX": "1.0.0"
  }
}

Internal modules (@...) are always written as "*".

Loads an external CLI tool from either:

  • lib/<package>/lib/extensions/teaos-tool/<tool>.js
  • node_modules/<package>/lib/extensions/teaos-tool/<tool>.js

Library API

local packages (lib/{package})

const teaos = require('teaos');
teaos.require("@something");

npm package plugins

const teaos = require('teaos');
const plugin = teaos.require('some-npm-plugin');

declare component

const teaos = require('teaos');
const desc = { type: "function", func: funcX };
teaos.declare(desc);

listen declaration

const teaos = require('teaos');
teaos.on("declare", (desc) => {
});

dynamic configurable local packages / npm plugins

const teaos = require('teaos');
teaos.use("@something", { resources: '*' }); // local package resources
teaos.use("some-npm-plugin", { resources: '*' }); // npm plugin resources

dependency trace API

const teaos = require('teaos');

teaos.dependencies(lpath, { recursive: true });
teaos.localDependencies(lpath, { recursive: true });
  • lpath: path to scan (for example, ./lib or ./apps).
  • recursive: true: recursively reads discovered teaos.json files and returns accumulated dependencies.

project attributes

const teaos = require('teaos');

teaos.attr('root'); // project directory absolute path (resolved from app entry / node_modules path)
teaos.attr('name'); // package.json.name -> teaos.json.name -> directory name

teaos.attr('path.@apps'); // "./apps" if ./apps exists
teaos.attr('path.apps'); // absolute path of ./apps if exists

teaos.attr('path.@lib'); // "./lib"
teaos.attr('path.lib'); // absolute path of ../lib if exists

teaos.attr('path.@tests'); // "./tests"
teaos.attr('path.tests'); // absolute path of ../tests if exists

Deploying Rules

Simple Local package

  • local package path: lib/{local package}

Local package with dynamic resource management

  • local package path: lib/{local package}
  • resource directory: lib/{local package}/lib/extensions
  • resource definition files:
    • lib/{local package}/lib/extensions/{resource type}.js
    • lib/{local package}/lib/extensions/{resource type}/index.js
    • lib/{local package}/lib/extensions/{resource type}/{resource name}.js
  • test path: lib/{local package}/tests
  • resource types:
    • value: general value (reserved)
    • variable: general variable (reserved)
    • function: { type: 'function', name: (default: Function.name), func: Function }
    • operator: general operator (reserved)
    • command: command as operator (reserved)
    • expression: expression as operator (reserved)
    • aspect: aspect to context (reserved)

Theory

image

  • F: function
  • F_a: aspected function
  • F_m: composited function (Set model)
  • F_c: context (ex. commit, p2p, probe, loging, Kalman filter)
  • O_d: operator (ex. integral, decode/encode)
  • O_l: linear operator (ex. step function, matrix)
  • O_{inverse}: inversable operator
  • V: variable
  • V_c: composited variable
  • Λ: Eigenvalue
  • X_c: Eigenvector
  • P: Probability density function
  • H_e: Entropy

History

  • version 0.0.8
    • Stable commandline
  • version 0.0.7
    • Add teaos dependencies and teaos dependencies-local commands
    • Add recursive dependency API examples: teaos.dependencies(lpath, {recursive: true}), teaos.localDependencies(lpath, {recursive: true})
  • version 0.0.6
    • Add support for npm package plugins
    • Improve CLI usage documentation
  • version 0.0.5
    • Add Theory
  • version 0.0.4
    • SVG to PNG
  • version 0.0.3
    • improve trace log
    • add theory doc
  • version 0.0.2
    • support teaos.use()
    • support teaos.extensions()
    • support teaos "command use {local package}""
    • support teaos "command require {local package}""
  • version 0.0.1
    • add teaos command
    • support command "teaos ls"
    • support 'require' event
  • version 0.0.0
    • support teaos.require()
    • support teaos.declare(desc)
    • support teaos.on(name, handler)
    • support 'declare' event