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

@eserstack/codebase

v5.1.0

Published

Readme

🔧 @eserstack/codebase

eserstack Tool — eser/stack on GitHub Install: pnpm add @eserstack/codebase

@eserstack/codebase holds the git, package config and workspace discovery helpers of eserstack, and the TypeScript types of the codebase native functions. The validators, git hooks, release, changelog, GitHub and commit message commands are Go: run them as eser codebase <command>, documented in cmd/eser.

🔌 API Usage

import * as codebase from "@eserstack/codebase";

// Git operations
const commits = await codebase.getCommitsBetween("v1.0.0", "HEAD");
const branch = await codebase.getCurrentBranch();

// Workspace discovery
const packages = await codebase.discoverPackages(".");

| Export | What it holds | | ----------------------- | ---------------------------------------------------------------------- | | . and ./mod | The git, package config and workspace discovery functions below | | ./git | Commits between refs, branches, tags, staging, commit and push | | ./package | Load, update and sync the fields of package.json files | | ./workspace-discovery | Workspace packages and their entry points | | ./native-functions | Input and output types of the codebase native functions (fromNative) |

./native-functions is generated by go run ./cmd/eser codebase native-types from the Go functions in pkg/ajan/codebasefx; call them through fromNative of @eserstack/functions/native.

Deprecated exports

./cli-support re-exports @eserstack/shell/cli-support, and ./directive-analysis is a copy of the one in @eserstack/laroux-bundler. Import them from those packages; both exports are removed in 6.0.0.

Upgrading from 5.0.0

The TypeScript commands and validators of this package are removed; the Go eser runs the same commands with the same flags and manifest options.

// Before: the validators from code
import * as validation from "@eserstack/codebase/validation";
await validation.validate({ root: "." });
# After: the Go eser (npm install -g eser, or npx eser) runs one validator, or
# every validator step of .eser/manifest.yml
npx eser codebase validate-eof --fix
npx eser workflows run -e precommit

The removed exports are ./module, ./validation, ./install, ./release, ./versions, ./changelog-gen, ./release-notes, ./release-tag, ./gh, ./gh-contributors, ./commitmsg, ./file-tool, ./file-tools-shared, ./walk-stream, ./validate-stream, ./npm-externals, ./npm-workspace-specifiers and every ./validate-*. The package root is the library (./mod) instead of the CLI.


🔗 For further details, visit the eserstack repository.