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

@abelspithost/commitlint

v0.0.3

Published

Shared commitlint preset extending @commitlint/config-conventional with stricter defaults

Readme

@abelspithost/commitlint

A shared commitlint preset that extends @commitlint/config-conventional with stricter defaults, plus a CLI to set everything up with one command.

What's included

  • Commitlint configuration that extends @commitlint/config-conventional
  • Scope is optional by default
  • A createConfig helper to customize allowed types and scopes (when you provide scopes, they become mandatory)
  • An init CLI that installs and configures commitlint + husky automatically
  • Automatic package manager detection (npm, yarn, pnpm, bun)

Quick setup

Run the init command in your project root:

npx -p @abelspithost/commitlint init

The CLI detects your package manager by looking for bun.lockb/bun.lock, pnpm-lock.yaml, yarn.lock, or falling back to npm. It will:

  1. Install husky, @commitlint/cli, and @abelspithost/commitlint as dev dependencies
  2. Initialize husky
  3. Remove the default pre-commit hook that husky creates
  4. Create a .husky/commit-msg hook (using the correct runner for your package manager)
  5. Generate a commitlint.config.ts that re-exports the preset (skip if one already exists)

Manual setup (npm)

Install the required dependencies:

npm install --save-dev husky @commitlint/cli @abelspithost/commitlint

Create a commitlint.config.ts in your project root:

export { default } from '@abelspithost/commitlint';

Set up husky and add the commit-msg hook:

npx husky init

Then create a .husky/commit-msg file with the following content:

npx --no -- commitlint --edit $1

Using createConfig

Use the createConfig helper to customize allowed scopes and types:

import { createConfig } from '@abelspithost/commitlint';

export default createConfig({
  scopes: ['api', 'ui', 'core'],
});

Options

| Option | Type | Default | Description | | -------- | ---------- | -------------- | ------------------------------------ | | scopes | string[] | — | Restrict commits to these scopes (makes scope mandatory) | | types | string[] | COMMIT_TYPES | Override the allowed commit types |

When you omit scopes, scope is optional and you can use any value. When you provide scopes, scope becomes required and must match one of the listed values. When you omit types, it defaults to the built-in COMMIT_TYPES.

Examples

// Restrict scopes only
import { createConfig } from '@abelspithost/commitlint';

export default createConfig({
  scopes: ['api', 'ui', 'core', 'docs'],
});
// Custom types and scopes
import { createConfig } from '@abelspithost/commitlint';

export default createConfig({
  scopes: ['api', 'ui'],
  types: ['feat', 'fix', 'chore'],
});

Extending the preset manually

Import the default config and spread it into your own configuration in commitlint.config.ts:

import baseConfig, { RuleConfigSeverity, type UserConfig } from '@abelspithost/commitlint';

const configuration: UserConfig = {
  ...baseConfig,
  rules: {
    ...baseConfig.rules,
    // require a scope in this project
    'scope-empty': [RuleConfigSeverity.Error, 'never'],
  },
};

export default configuration;

This package re-exports RuleConfigSeverity and UserConfig, so you don't need to install @commitlint/types separately.

Commit message format

Write your commits in the Conventional Commits format:

type: description
type(scope): description

Allowed types

build, chore, ci, docs, feat, fix, perf, refactor, revert, style, test

Examples

feat: add login endpoint
fix(api): handle null response from user service
docs(readme): add installation instructions