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

conventional-branch-name

v0.1.0

Published

Conventional branch name validation

Readme

TypeScript Package Template

A template repository for authoring npm packages with TypeScript.

Features

Setup

Click the green Use this template button to create a new repository from this template.

Then, update the following placeholders:

  1. package.json: Update name, description, keywords, homepage, bugs, repository, funding, and author
  2. LICENSE: Update the copyright year and author name if needed
  3. README.md: Replace this entire file with documentation for your actual package

Configuration

The template is configured with sensible defaults, but you can customize:

  • tsconfig.json - TypeScript compiler options (extends @tsconfig/bun)
  • tsdown.config.ts - Build configuration (entry points, formats, minification)
  • biome.json - Linting and formatting rules
  • lefthook.json - Git hooks for pre-commit checks
  • .releaserc.json - Semantic release configuration
  • knip.jsonc - Unused code and dependencies detection

Available Scripts

# Development
bun run dev          # Type check in watch mode
bun run typecheck    # Type check once

# Code Quality
bun run lint         # Lint and auto-fix with Biome
bun run check        # Run all checks (lint, typecheck, test)

# Testing & Building
bun test             # Run tests
bun run build        # Build for production

Publishing

This template uses semantic-release for automated versioning and publishing.

Automated Releases (Recommended)

When you push commits to the main or next branch, the CI/CD pipeline will:

  1. Analyze commit messages to determine the version bump (major, minor, patch)
  2. Create a git tag
  3. Publish to npm with provenance
  4. Create a GitHub release

Commit message format follows Conventional Commits:

  • feat: add new feature - minor version bump
  • fix: resolve bug - patch version bump
  • perf: improve performance - patch version bump
  • refactor: restructure code - patch version bump
  • feat!: breaking change or BREAKING CHANGE: in body - major version bump
  • docs:, chore:, ci:, test:, build:, style: - no release

Manual Publishing

If you prefer manual releases:

  1. Remove or disable the release job in .github/workflows/ci.yml
  2. Use npm's standard workflow:
npm version patch   # or minor, or major
git push --follow-tags
npm publish --provenance

NPM Authentication

The CI/CD pipeline uses npm's OIDC authentication for secure, token-free publishing. No manual setup required for public packages.

For scoped/private packages, configure npm access in .releaserc.json under the @semantic-release/npm plugin.

License

MIT