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

@yinzuoweia/nis

v0.2.1

Published

NIS CLI for agent-friendly JSON tree operations

Readme

NIS (@yinzuoweia/nis)

Agent-friendly JSON tree CLI and JS API.

Install

npm i @yinzuoweia/nis

Run without installing:

npx @yinzuoweia/nis --version

npx nis resolves to an unrelated unscoped package on npm. Use npx @yinzuoweia/nis ... instead.

CLI

Default file path: ./.nis/tree.json

nis init [--file <path>] [--force]
nis add --set key=value... [--parent <id>] [--id <id>] [--file <path>]
nis get <id> [--file <path>]
nis ls [parentId] [--max <n>] [--file <path>]
nis update <id> [--set key=value...] [--unset key...] [--file <path>]
nis delete <id> [--cascade|--no-cascade] [--yes] [--file <path>]
nis move <id> --to <newParentId> [--file <path>]
nis find "<query>" [--max <n>] [--sort <field:asc|desc>] [--fields <csv>] [--file <path>]
nis validate [--file <path>]
nis upsert --id <id> --set key=value... [--parent <id>] [--file <path>]
nis bulk --ops-file <json> [--atomic|--no-atomic] [--file <path>]
nis snapshot create [--name <name>] [--file <path>]
nis snapshot restore <snapshotId> [--file <path>]

Natural aliases (spark)

nis spark search "newer_than:7d tag:idea" --max 10
nis spark add "summary:idea description:detail" under root
nis spark delete <id> --yes

Query DSL (v1)

  • Full text term: transformer
  • Field filter: tag:idea
  • Comparators: score>=0.9, created_at>1710000000
  • Relative time: newer_than:7d, older_than:30d
  • Multiple conditions are AND.

JS API

import {
  initTree,
  addNode,
  updateNode,
  deleteNode,
  moveNode,
  findNodes,
  validateTree,
  applyBulk,
  createSnapshot,
  restoreSnapshot,
} from '@yinzuoweia/nis';

Output Contract

CLI always writes machine-readable JSON:

  • success: {"ok": true, "action": "...", "file": "...", "result": ..., "warnings": []}
  • error: {"ok": false, "action": "...", "error": {"code": "...", "message": "...", "hint": "..."}}

Notes

  • Root node is fixed as root and immutable.
  • Reserved fields: id,parent,children,created_at.
  • Writes are protected by file lock + atomic rename.
  • Snapshot retention default is 20 and can be configured with NIS_SNAPSHOT_KEEP.