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

intershell

v0.6.3

Published

Bun-first TypeScript library of monorepo entities (commits, packages, versioning, tags, affected, compose, config).

Readme

InterShell — monorepo entities

Typed building blocks for commits, packages, versioning, tags, and CI-friendly workflows — Bun-first, TypeScript-first.

InterShell is a library of entities: small, focused modules you import from your own scripts, CLIs, or CI jobs. Each entity wraps a slice of monorepo work (git, Turbo, package.json, changelogs, compose, and more) behind a consistent API.

Table of contents

Overview

  • Entity-firstEntityCommit, EntityPackage, EntityAffected, and the rest are the product; compose them in your tooling.
  • Type-safe — strict TypeScript, explicit types exported from each module.
  • Bun-oriented — developed and tested on Bun; entities use Bun where it helps (for example shell helpers).

Install

bun add intershell
npm install intershell

Quick start

import { EntityCommit, EntityPackage, EntityAffected } from "intershell";

const { stagedFiles } = await EntityCommit.getStagedFiles();
const errors = await EntityCommit.validateStagedFiles(stagedFiles);

const packages = await EntityPackage.getAllPackages();
const affected = await EntityAffected.getAffectedPackages();

Import names follow the Entity* convention (for example EntityTag, EntityCompose).

Entities

| Entity | Role | |--------|------| | EntityAffected | Resolve affected packages via Turbo filters | | EntityBranch | Branch data and validation helpers | | EntityCommit | Conventional commits, parsing, staged-file checks | | EntityCompose | Docker Compose parsing and validation-style operations | | EntityIntershellConfig | Load and validate intershell.config.json | | EntityPackage | Discover packages, read package.json, repo metadata | | EntityPackageChangelog | Changelog content and templates | | EntityPackageCommits | Commit ranges and dependency-aware analysis | | EntityPackageTags | Tag naming and package-specific tag logic | | EntityPackageVersion | Bump types and version data from history | | EntityTag | Tags, prefixes, and git-related tag helpers |

See Developer guide: entities for a slightly longer tour and patterns.

Configuration

Optional project config lives at the repo root as intershell.config.json. Use EntityIntershellConfig to read and validate it from your own code.

{
  "branch": {
    "prefixes": ["feat", "fix", "chore"],
    "minLength": 3,
    "maxLength": 50
  },
  "commit": {
    "types": ["feat", "fix", "docs", "style", "refactor", "test", "chore"],
    "scopes": ["package-name"]
  }
}

Architecture

┌─────────────────────────────────────┐
│  Your scripts / CLI / CI            │
├─────────────────────────────────────┤
│  intershell (barrel)                │
│  Entity* modules + shared helpers   │
└─────────────────────────────────────┘

The package entry re-exports entity modules from the root import (intershell).

Development

When working on this repository:

bun run lint         # Biome (report only)
bun run typecheck    # TypeScript
bun test
bun run build
bun run check   # lint --fix, then typecheck, test, and build

Release to npm after version:prepare and version:apply (so package.json and the git tag match):

bun run version:publish              # validate, build, npm publish
bun run version:publish -- --dry-run # npm publish --dry-run

The script lives at scripts/version/publish.ts and is exposed as version:publish so it stays grouped with the other version scripts and does not use the script name publish (npm treats that as a lifecycle hook after npm publish).

After a real npm publish, it runs gh release create (or gh release edit if the release already exists). Install the GitHub CLI and run gh auth login. The version tag must exist on the remote (--verify-tag). Use --no-github to skip. Release notes are the parsed slice for that semver from CHANGELOG.md (same rules as ChangelogTemplate.parseVersions / DefaultChangelogTemplate); if missing, new releases use --generate-notes and edits only update the title.

For npm auth, put an access token in .env as NPM_TOKEN (see .env.example). The repo .npmrc passes it to the registry; version:publish loads .env and runs npm whoami before publishing. You can use NODE_AUTH_TOKEN instead (e.g. in CI). If no token is set, it runs npm login in an interactive terminal. Use --no-npm-login to skip the login prompt only.

Requirements

  • Bun >= 1.0.0 (recommended runtime)
  • Turbo >= 2.5.8 (peer dependency — required for EntityAffected and similar flows)

When you develop inside this repository, you also use TypeScript, Biome, and Lefthook as listed in package.json; consumers only need what their chosen entities call (often Turbo for monorepo graphs).

License

MIT — see LICENSE.