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

@lazyconfig/commitlint

v0.1.0

Published

Shared, production-ready Commitlint configuration for enforcing consistent conventional commit messages.

Readme

@lazyconfig/commitlint

npm Downloads Conventional Commits License Sponsor

Shared Commitlint configuration that enforces consistent, readable commit messages following the Conventional Commits specification.

Extends @commitlint/config-conventional with an opinionated set of rules to keep commit history clean, predictable, and tooling-friendly across all projects.


Features

  • Based on Conventional Commits — compatible with changelogs, semantic versioning, and release tools
  • Enforces 11 commit types covering the full development workflow
  • Hard limits on header, scope, and subject length to keep history scannable
  • Warnings for missing scope and blank lines before body/footer
  • Fully overridable — extend or tighten any rule locally

Installation

# pnpm
pnpm add -D @lazyconfig/commitlint @commitlint/cli @commitlint/config-conventional

# npm
npm install --save-dev @lazyconfig/commitlint @commitlint/cli @commitlint/config-conventional

# yarn
yarn add --dev @lazyconfig/commitlint @commitlint/cli @commitlint/config-conventional

# bun
bun add --dev @lazyconfig/commitlint @commitlint/cli @commitlint/config-conventional

Usage

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

// commitlint.config.cjs
module.exports = {
	extends: ["@lazyconfig/commitlint"],
};

Or in ESM (.commitlintrc.mjs):

export default {
	extends: ["@lazyconfig/commitlint"],
};

Use .cjs for the CommonJS format — if your project has "type": "module" in package.json, a plain .js config file will be treated as ESM and module.exports will fail.

That's it — commitlint will now validate every commit message against lazyconfig's rules.


Commit Message Format

<type>(<scope>): <subject>

[optional body]

[optional footer(s)]

Examples

feat(auth): add OAuth2 login support
fix(api): handle empty response in fetchUser
docs(readme): update installation instructions
chore(deps): upgrade typescript to v5.4
refactor(core): extract validation logic into helpers
test(utils): add edge-case coverage for parseDate

Allowed Types

| Type | Description | | ---------- | ----------------------------------------------- | | feat | A new feature | | fix | A bug fix | | docs | Documentation changes only | | style | Formatting changes with no effect on logic | | refactor | Code change that is neither a fix nor a feature | | perf | Performance improvements | | test | Adding or updating tests | | build | Build system or external dependency changes | | ci | CI configuration changes | | chore | Maintenance and tooling tasks | | revert | Reverts a previous commit |

Commits using any other type will be rejected with an error.


Enforced Rules

| Part | Rule | Severity | | ------- | -------------------------------- | -------- | | Type | Must not be empty | Error | | Type | Must be lowercase | Error | | Type | Must be one of the allowed types | Error | | Scope | Must be lowercase | Error | | Scope | Must not be empty | Warning | | Scope | Maximum 25 characters | Error | | Subject | Must not be empty | Error | | Subject | Maximum 72 characters | Error | | Header | Maximum 100 characters | Error | | Body | Must be preceded by a blank line | Warning | | Footer | Must be preceded by a blank line | Warning |

Error — commit is rejected. Warning — commit is accepted but a message is printed.


Git Hooks Integration

Pair with Husky to validate commit messages automatically before they are recorded:

# pnpm
pnpm add -D husky
pnpm exec husky init

# npm
npm install --save-dev husky
npx husky init

# yarn
yarn add --dev husky
yarn husky init

# bun
bun add --dev husky
bunx husky init

Then add the commit-msg hook:

# .husky/commit-msg
commitlint --edit $1

Husky v9 adds node_modules/.bin to PATH automatically, so commitlint can be called directly without a package manager prefix.

Once set up, any commit with a non-conforming message will be blocked immediately.


Extending or Overriding Rules

Override any rule locally by adding a rules block:

// commitlint.config.js
module.exports = {
	extends: ["@lazyconfig/commitlint"],
	rules: {
		// Make scope mandatory (error instead of warning)
		"scope-empty": [2, "never"],

		// Relax subject length if needed
		"subject-max-length": [2, "always", 100],
	},
};

Related Links


License

MIT