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

@henkaku-center/chi-base

v0.1.0

Published

Shared coordination infrastructure for Chi Pi extensions.

Readme

Chi Base

Chi Base is the shared coordination package for Chi modules running as Pi extensions. It discovers modules, initializes them in dependency order, stores versioned global/project configuration, and provides a small /chi settings command.

Install

The repository is currently private and Chi Base is not yet published to npm. Authenticate GitHub first with the GitHub CLI, then install it from Git:

gh auth login
gh auth setup-git
pi install https://github.com/henkaku-center/chi-base

SSH is also supported when your SSH key is configured:

pi install git:[email protected]:henkaku-center/chi-base

When the package is published, use npm:@henkaku-center/chi-base instead. See the Pi package installation and update documentation for package management details.

Update

Update this GitHub package with:

pi update https://github.com/henkaku-center/chi-base

To update Pi and all installed packages at once, use pi update --all.

Chi Base is installed once. Individual Chi modules listen for the chi:discover event and register with the live registry supplied in that event.

Module authors

Import the contract as types only:

import type { ChiBase } from "@henkaku-center/chi-base/contract";

Runtime communication uses the ChiBase object received from discovery. See the Chi concepts glossary, how to write a module, the module contract, configuration and migrations, and the example module.

Configuration

Chi configuration is separate from Pi settings:

  • Global: ~/.pi/agent/chi/config.json
  • Project: .pi/chi/config.json

Project configuration is used only for trusted projects. Settings changed by /chi are persisted immediately. Modules with onConfigChange receive the new effective configuration while running; modules without it can read the latest value with chi.getConfig(id). Initialization is not repeated.

The /chi editor uses one tab per module. It starts in project mode when the trusted project has a loaded local override, and otherwise starts in global mode. It supports p for project scope, arrow keys or h/l for tabs, and x to reset the selected setting. Its header shows the active scope, and its custom list uses use default (value) and use global (value) fallback labels without repeating scope in row names. See configuration and migrations for the complete behavior.

Scope

Chi Base is intentionally small. It is not a general event bus, storage framework, module loader, or arbitrary settings editor. Modules communicate through direct APIs exposed by the registry.

References