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

@awesome-tools/commitizen

v1.5.1

Published

Commitizen for multi or mono repo projects πŸ”₯

Readme

Commitizen for multi or mono repo projects πŸ”₯

publish ci

Table of Contents

Installation

This module is distributed via npm which is bundled with node and should be installed as one of your project's devDependencies. Add commitizen and cz-git by running:

npm install --save-dev @awesome-tools/commitizen cz-git

Usage

Then add a script to your package.json:

{
	scripts: {
		cm: 'commitizen'
	}
}

You can now use this script with yarn or npm

yarn cm

OR

yarn commitizen

cz.config.ts

You can optionally create a cz.config.ts file in the root of your project to customize the behavior of commitizen. Here is the configuration used in this monorepo as an example:

import { execSync } from 'node:child_process'
import fs from 'node:fs'
import path from 'node:path'
import { fileURLToPath } from 'node:url'
import { definePrompt } from 'cz-git'

function addSignedOffByTrailer(commitMessage: string) {
	try {
		const authorIdentity = execSync('git var GIT_AUTHOR_IDENT', {
			encoding: 'utf-8'
		}).trim()

		const sobLine = authorIdentity.replace(/^(.*>).*$/, 'Signed-off-by: $1')
		const modifiedMessage = execSync(
			`git interpret-trailers --if-missing add --trailer "${sobLine}"`,
			{ input: commitMessage, encoding: 'utf-8' }
		)

		return modifiedMessage.trim()
	} catch (error) {
		if (error instanceof Error) {
			console.error('Failed to add Signed-off-by trailer:', error.message)
		} else {
			console.error('Error', error)
		}

		return commitMessage
	}
}

const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)

const packages = fs.readdirSync(path.resolve(__dirname, 'packages'))
const tools = fs.readdirSync(path.resolve(__dirname, 'tools'))

export const scopes = [
	{
		name: 'release'
	},
	{
		name: 'ci'
	},
	{
		name: 'test'
	},
	{
		name: 'core'
	},
	{
		name: 'tool'
	},
	{
		name: 'backend'
	},
	...[...packages, ...tools].map(name => ({ name }))
]

export const types = [
	{
		value: 'feat',
		name: 'πŸŽ‰ feat:\tAdding a new feature',
		emoji: 'πŸŽ‰'
	},
	{
		value: 'fix',
		name: 'πŸ› fix:\tFixing a bug',
		emoji: 'πŸ›'
	},
	{
		value: 'hotfix',
		name: 'πŸš‘ hotfix:\tCritical hotfix',
		emoji: 'πŸš‘'
	},
	{
		value: 'docs',
		name: 'πŸ—ƒοΈ docs:\tAdd or update documentation',
		emoji: 'πŸ—ƒοΈ'
	},
	{
		value: 'style',
		name: 'πŸ’„ style:\tAdd or update styles, ui or ux',
		emoji: 'πŸ’„'
	},
	{
		value: 'refactor',
		name: '♻️ refactor:\tCode change that neither fixes a bug nor adds a feature',
		emoji: '♻️'
	},
	{
		value: 'perf',
		name: '⚑️perf:\tCode change that improves performance',
		emoji: '⚑️'
	},
	{
		value: 'test',
		name: 'πŸ§ͺ test:\tAdding tests cases',
		emoji: 'πŸ§ͺ'
	},
	{
		value: 'chore',
		name: '🚚 chore:\tChanges to the build process or auxiliary tools\n\t\tand libraries such as documentation generation',
		emoji: '🚚'
	},
	{
		value: 'revert',
		name: 'πŸ’« revert:\tRevert to a commit',
		emoji: 'πŸ’«'
	},
	{
		value: 'wip',
		name: '🚧 wip:\tWork in progress',
		emoji: '🚧'
	},
	{
		value: 'build',
		name: 'πŸ¦– build:\tAdd or update regards to build process',
		emoji: 'πŸ¦–'
	},
	{
		value: 'ci',
		name: 'πŸš€ ci:\tFixing CI build',
		emoji: 'πŸš€'
	},
	{
		value: 'security',
		name: '🚨 security:\tFixing security issues',
		emoji: '🚨'
	},
	{
		value: 'init',
		name: '✨ init:\tInitial commit',
		emoji: '✨'
	}
]

export default definePrompt({
	allowCustomScopes: false,
	allowEmptyScopes: false,
	allowBreakingChanges: ['feat', 'fix'],
	markBreakingChangeMode: true,
	minSubjectLength: 10,
	maxSubjectLength: 200,
	maxHeaderLength: 200,
	useEmoji: true,
	emojiAlign: 'left',
	enableMultipleScopes: true,
	useCommitSignGPG: true,
	scopeEnumSeparator: ',',
	formatMessageCB: ({ defaultMessage }) => {
		return addSignedOffByTrailer(defaultMessage)
	},
	types,
	scopes
})

Things to know

This project is a wrapper around https://github.com/commitizen/cz-cli for multi/mono repo projects and it uses the cz-git adapter.

Issues

Looking to contribute? Look for the Good First Issue label. πŸ˜€

πŸ› Bugs

Please file an issue for bugs, missing documentation, or unexpected behavior.

See Bugs

πŸ’‘ Feature Requests

Please file an issue to suggest new features. Vote on feature requests by adding a πŸ‘. This helps maintainers prioritize what to work on.

NX

This library was generated with Nx.

Building

Run nx build commitizen to build the library.

Credits

This project wouldn't have been possible without the amazing work done by

Commitizen git-cz