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

neostaged

v0.2.0

Published

<div align="center">

Readme

Ultra-fast, zero-dependency pre-commit tool built with Zig & Node.js N-API.

Run linters, formatters, and custom scripts against staged git files with modern visual feedback and total safety.

npm version license node version zero dependencies


⚡ Preview

◆ neostaged v0.2.0 · ⎇ main · 2 staged
│
│ ◈ neostaged.json — 2 files · 1 pattern
│
│ ▸ **/*.txt · 1 file
│   ⠋ sleep 0.3 · 1 file · 320ms
│   ✓ echo hello · 1 file · 80ms
│   ✓ true · 1 file · 80ms
│
├─ ✓ done in 495ms · 3 ok · 0 failed · 0 skipped
│
│ ⏱ timings
│   TASK                            FILES  STATUS     DURATION
│   sleep 0.3                           1  ✓ ok    320ms
│   echo hello                          1  ✓ ok     80ms
│   true                                1  ✓ ok     80ms
╰─ staged ✓

✨ Features

  • Blazing Fast Native Core: Written in Zig, compiled directly into a native Node.js N-API binary (.node).
  • 📦 Zero Runtime Dependencies: No heavy npm dependency trees to install or update.
  • 🎨 Modern Rail Layout UI: Sleek left-rail layout with inline task statuses, live task spinners, and 24-bit TrueColor ANSI styling.
  • 🛡️ Git Safe & Automated Backups: Automatically stashes unstaged modifications before running tasks, and safely restores or recovers state if a task fails.
  • ⏱️ Task Timings Summary: Clear summary table listing exact duration per task in milliseconds.
  • 📁 Flexible Configuration: Read rules from .neostaged.json, neostaged.config.js, .neostagedrc, or package.json.
  • 🌐 Cross-Platform: Works identically across macOS, Linux, and Windows.

📦 Installation

Install neostaged using your favorite package manager:

# npm
npm install --save-dev neostaged

# pnpm
pnpm add -D neostaged

# yarn
yarn add -D neostaged

# bun
bun add -d neostaged

🚀 Quick Start

1. Configure rules

Create a neostaged.json (or .neostaged.json) in your project root:

{
  "*.{js,ts,tsx}": [
    "eslint --fix",
    "prettier --write"
  ],
  "*.json": [
    "prettier --write"
  ]
}

2. Add to Git Pre-Commit Hook

With Husky:

npx husky add .husky/pre-commit "npx neostaged"

Or in .husky/pre-commit:

#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx neostaged

⚙️ Configuration Formats

neostaged searches for configuration files in the following order:

  1. .neostaged.json / neostaged.json / neostaged.config.json
  2. .neostagedrc
  3. package.json (under "neostaged": { ... })
  4. .neostaged.js / neostaged.js / neostaged.config.js
  5. .neostaged.cjs / neostaged.cjs / neostaged.config.cjs
  6. .neostaged.mjs / neostaged.mjs / neostaged.config.mjs

Examples

neostaged.json

{
  "*.{ts,tsx}": "eslint --fix",
  "*.md": "prettier --write"
}

package.json

{
  "name": "my-project",
  "neostaged": {
    "*.js": ["eslint --fix", "prettier --write"]
  }
}

neostaged.config.js

export default {
  ignores: [
    '**/*.test.ts',
    '**/*.spec.ts',
    '**/generated/**'
  ],
  tasks: {
    '**/*.{js,ts}': ['eslint --fix', 'prettier --write'],
    '*.css': 'stylelint --fix'
  }
};

🎨 Customizing the Spinner

Customize the animation and 24-bit TrueColor scheme using environment variables:

Color (NEOSTAGED_SPINNER_COLOR)

  • Default: #26a1c0 (Solid Hex RGB)
  • Rainbow Mode: rainbow (or arcoiris)
  • Custom Hex: #ff5733, #00ff88, #9966ff
# Rainbow animation
NEOSTAGED_SPINNER_COLOR=rainbow npx neostaged

# Custom hex color
NEOSTAGED_SPINNER_COLOR=#ff5733 npx neostaged

Spinner Theme (NEOSTAGED_SPINNER)

Select from 10 built-in themes:

  • dots (Default: )
  • sparkle ( )
  • pulse ( )
  • bars ( )
  • diamond ( )
  • dense, moon, arc, bounce, arrow
NEOSTAGED_SPINNER=sparkle npx neostaged

📊 Comparison

| Feature | neostaged | lint-staged | nano-staged | |---|:---:|:---:|:---:| | Engine | Zig + N-API | Node.js (JS) | Node.js (JS) | | Dependencies | 0 | ~35+ | ~5+ | | V8 Rail Layout | ✅ | ❌ | ❌ | | TrueColor 24-bit Spinner | ✅ | ❌ | ❌ | | Partial Staging Backup | ✅ | ✅ | ✅ | | Execution Timings Table | ✅ | ❌ | ❌ |


📄 License

MIT © Luciano Alves