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

@vsokolov/semantix

v1.3.0

Published

CLI tool to setup conventional commits, semantic-release, and automated releases

Readme

Semantix

A TypeScript CLI tool to automatically configure conventional commits, semantic-release, and automated releases for your projects.

Quick Start

See QUICKSTART.md for a detailed getting started guide.

Features

  • Commitlint - Enforces conventional commit format
  • Lefthook - Git hooks to validate commits
  • Semantic Release - Automated versioning and releases
  • Changelog Generation - Auto-generates CHANGELOG.md
  • GitHub Releases - Creates releases automatically
  • GitHub Actions - CI/CD workflow included

Installation

Global Installation (Recommended)

# Using Bun
bun install -g @vsokolov/semantix

# Using npm
npm install -g @vsokolov/semantix

# Using pnpm
pnpm add -g @vsokolov/semantix

Usage

Navigate to your project directory and run:

# If installed globally
semantix

# If installed locally
bunx @vsokolov/semantix
# or
npx @vsokolov/semantix

That's it! Semantix will automatically configure everything for you.

Project Structure

After running Semantix, your project will have:

your-project/
├── .github/
│   └── workflows/
│       └── release.yml           # GitHub Actions workflow
├── lefthook.yml            # Git hooks configuration
├── commitlint.config.js          # Commit message rules
├── .releaserc.mjs               # Semantic-release config
├── COMMIT_CONVENTION.md          # Team documentation
└── package.json                  # Updated with scripts

What Gets Configured

1. Dependencies Installed

  • @commitlint/cli & @commitlint/config-conventional
  • @semantic-release/changelog
  • @semantic-release/git
  • @semantic-release/github
  • lefthook
  • semantic-release

2. Configuration Files Created

  • commitlint.config.js - Commit message validation rules
  • .releaserc.mjs - Semantic-release configuration
  • lefthook.yml - Git hooks configuration
  • .github/workflows/release.yml - GitHub Actions workflow
  • COMMIT_CONVENTION.md - Documentation for your team

3. Package.json Scripts Added

{
    "scripts": {
        "release": "semantic-release",
        "release:dry": "semantic-release --dry-run",
        "prepare": "lefthook install"
    }
}

Commit Message Format

<type>[optional scope]: <description>

[optional body]

[optional footer]

Types

  • feat: New feature
  • fix: Bug fix
  • docs: Documentation changes
  • style: Code style changes (formatting)
  • refactor: Code refactoring
  • perf: Performance improvements
  • test: Adding or updating tests
  • build: Build system changes
  • ci: CI configuration changes
  • chore: Other changes
  • revert: Revert previous commit

Examples

git commit -m "feat: add user authentication"
git commit -m "fix: resolve memory leak in data processing"
git commit -m "docs: update installation instructions"
git commit -m "feat(api)!: redesign authentication flow

BREAKING CHANGE: The authentication API has been completely redesigned"

How Releases Work

  1. Commit with conventional commit format
  2. Push to main or master branch
  3. GitHub Actions runs automatically
  4. Semantic-release analyzes commits and:
    • Determines version bump (major/minor/patch)
    • Generates CHANGELOG.md
    • Creates git tag
    • Publishes GitHub release
    • Updates package.json version

Version Bumping

  • fix: → Patch release (1.0.0 → 1.0.1)
  • feat: → Minor release (1.0.0 → 1.1.0)
  • BREAKING CHANGE: → Major release (1.0.0 → 2.0.0)

Testing Releases

Before pushing, test the release process locally:

bun run release:dry

This shows what would happen without actually creating a release.

GitHub Configuration

Required: GitHub Token

The GitHub Actions workflow needs a GITHUB_TOKEN to create releases. This is automatically provided by GitHub Actions, but ensure your repository has:

  1. SettingsActionsGeneral
  2. Workflow permissions → Select "Read and write permissions"
  3. Check "Allow GitHub Actions to create and approve pull requests"

Customization

Change Release Branches

Edit .releaserc.mjs:

const config = {
    branches: ['main', 'develop', { name: 'beta', prerelease: true }],
    // ... rest of config
};

export default config;

Customize Commit Types

Edit commitlint.config.js:

module.exports = {
    extends: ['@commitlint/config-conventional'],
    rules: {
        'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'custom-type']],
    },
};

Development

Setup

# Clone the repository
git clone https://github.com/yourusername/semantix.git
cd semantix

# Install dependencies
bun install

Local Development

# Run in watch mode
bun run dev

# Build the project
bun run build

# Test locally in another project
bun link
cd /path/to/test-project
semantix

Testing

# Run tests
bun run test

# Run tests with coverage
bun run test:coverage

# Type checking
bun run typecheck

# Linting
bun run lint

# Fix linting issues
bun run lint:fix

# Code formatting
bun run format

# Check formatting
bun run format:check

Publishing

# Build and publish to npm
bun run build
npm publish

# Or use Bun to publish
bun publish

Troubleshooting

Commits are not being validated

bunx lefthook install

Release not triggering

  • Check GitHub Actions tab for errors
  • Verify workflow permissions are set correctly
  • Ensure you're pushing to main or master branch

"No commits since last release"

This means there are no conventional commits that would trigger a release (feat, fix, etc.)

License

MIT