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

@vinesheg/dev-forge

v1.0.3

Published

Zero-config developer toolkit with unified CLI for linting, formatting, and Git hooks

Downloads

206

Readme

NPM Version Publish to NPM License

dev-forge

Zero-config developer toolkit with unified CLI for modern projects

A single-dependency meta-package that provides comprehensive tooling for linting, formatting, Git hooks, and code quality checks.

Features

Zero Configuration - Works out of the box with sensible defaults
🔧 Single Dependency - Install once, get everything you need
High Performance - Powered by Biome and Lefthook
🎯 Comprehensive Checks - Linting, formatting, dead code detection, and more
🪝 Git Hooks - Automatic pre-commit and commit-msg validation
📦 Package Standards - Validates package.json structure and content

Tools Included

Installation

npm install -D @vinesheg/dev-forge```

Or with yarn:

```bash
yarn add --dev @vinesheg/dev-forge

Quick Start

  1. Initialize the toolkit in your project:
npx forge init

This will:

  • Generate configuration files (biome.json, .stylelintrc.json, etc.)
  • Set up Git hooks via Lefthook
  • Add a prepare script to your package.json
  1. Run checks on your codebase:
npx forge check
  1. Auto-fix issues where possible:
npx forge fix

CLI Commands

forge init

Initialize dev-forge in your project. Creates configuration files and sets up Git hooks.

npx forge init [options]

Options:

  • --skip-hooks - Skip Lefthook installation

What it does:

  • Creates biome.json that extends toolkit defaults
  • Creates .stylelintrc.json for CSS/SCSS linting
  • Creates .npmpackagejsonlintrc.json for package.json validation
  • Creates .commitlintrc.json for commit message validation
  • Copies lefthook.yml for Git hook configuration
  • Installs Git hooks via Lefthook
  • Adds prepare script to package.json (runs on npm install)

forge check

Run all quality checks on your codebase in parallel.

npx forge check [options]

Options:

  • --no-parallel - Run checks sequentially instead of in parallel

What it checks:

  • Biome: Lints and checks formatting of JS/TS/JSON files
  • Stylelint: Validates CSS/SCSS/Sass files
  • Knip: Finds unused files, dependencies, and exports
  • npm-package-json-lint: Validates package.json structure

forge fix

Auto-fix issues where possible.

npx forge fix

What it fixes:

  • Biome: Applies automatic fixes and formatting
  • Stylelint: Fixes auto-fixable CSS/SCSS issues

Git Hooks

After running forge init, the following Git hooks are automatically installed:

Pre-commit Hook

Runs before each commit and checks:

  • Biome on staged JS/TS/JSON files
  • Stylelint on staged CSS/SCSS files
  • npm-package-json-lint if package.json is staged

Commit-msg Hook

Runs after entering a commit message and validates:

Example valid commit messages:

feat: add user authentication
fix: resolve memory leak in worker
docs: update installation instructions
chore: upgrade dependencies

Configuration

All tools come pre-configured with sensible defaults, but you can customize them by editing the generated config files:

Biome (biome.json)

{
  "$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
  "extends": ["./node_modules/dev-forge/configs/biome.json"]
}

Add your own rules or override defaults:

{
  "extends": ["./node_modules/dev-forge/configs/biome.json"],
  "linter": {
    "rules": {
      "suspicious": {
        "noExplicitAny": "off"
      }
    }
  }
}

Stylelint (.stylelintrc.json)

{
  "extends": ["./node_modules/dev-forge/configs/stylelint.json"]
}

npm-package-json-lint (.npmpackagejsonlintrc.json)

{
  "extends": "./node_modules/dev-forge/configs/pkg-lint.json"
}

Lefthook (lefthook.yml)

The default configuration runs checks on staged files. You can add custom commands:

pre-commit:
  parallel: true
  commands:
    biome:
      glob: "*.{js,jsx,ts,tsx,json,jsonc}"
      run: npx biome check --staged {staged_files}
    
    custom-script:
      run: npm run my-custom-check

Package.json Scripts

Add these to your package.json for convenience:

{
  "scripts": {
    "prepare": "forge init",
    "lint": "forge check",
    "lint:fix": "forge fix"
  }
}

Then use:

npm run lint      # Run all checks
npm run lint:fix  # Auto-fix issues

CI/CD Integration

Add dev-forge checks to your CI pipeline:

GitHub Actions

name: Quality Checks

on: [push, pull_request]

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: actions/setup-node@v4
        with:
          node-version: '18'
      - run: npm ci
      - run: npx forge check

GitLab CI

lint:
  image: node:18
  script:
    - npm ci
    - npx forge check

Knip Configuration

Knip automatically detects unused files and dependencies. To customize, create a knip.json:

{
  "entry": ["src/index.ts"],
  "project": ["src/**/*.ts"],
  "ignore": ["**/*.test.ts", "scripts/**"]
}

Troubleshooting

Git hooks not running

If hooks aren't running, try:

npx forge init

This will reinstall Lefthook hooks.

Lefthook installation fails

Make sure you have a .git directory:

git init
npx forge init

Configuration not found

Run the init command to generate config files:

npx forge init

Requirements

  • Node.js >= 18.0.0
  • Git (for Git hooks)

Philosophy

dev-forge follows the principle of convention over configuration. It provides:

  1. Sensible defaults that work for most projects
  2. Easy customization when you need it
  3. Minimal setup - one command to get started
  4. Fast feedback - catch issues before they reach CI/CD

License

MIT

Contributing

Issues and pull requests are welcome! Please follow Conventional Commits for commit messages.

Acknowledgments

Built with these excellent tools: