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

pi-usereq

v0.13.0

Published

<p align="center"> <img src="https://img.shields.io/badge/python-3.11%2B-3776AB?style=flat-square&logo=python&logoColor=white" alt="Python 3.11+"> <img src="https://img.shields.io/badge/license-GPL--3.0-491?style=flat-square" alt="License: GPL-3.0">

Readme

PI-useReq/pi-usereq (0.13.0)

Requirements

  • TODO: complete the bulle list with requiremets

Feature Highlights

  • TODO: complete the bulle list with feature highlights

Extension Custom Commands

TODO: complete table with the extension custom commands

| Prompt | Description | | --- | --- | | write | Produce a SRS draft based on the User Request description | | create | Write a Software Requirements Specification using the project's source code | | recreate | Reorganize and update the Software Requirements Specification based on source code analysis (preserve requirement IDs) | | renumber | Deterministically renumber requirement IDs in the Software Requirements Specification without changing requirement text or order | | analyze | Produce an analysis report | | change | Update the requirements and implement the corresponding changes | | check | Run the requirements check | | cover | Implement minimal changes to cover uncovered existing requirements | | fix | Fix a defect without changing the requirements | | implement | Implement source code from requirements (from scratch) | | new | Implement a new requirement and the corresponding source code changes | | refactor | Perform a refactor without changing the requirements | | readme | Write README.md from user-visible implementation evidence | | req-references | Write a REFERENCES.md using the project's source code | | workflow | Write a WORKFLOW.md using the project's source code | | flowchart | Write a FLOWCHART.md using the project's source code |

Default Workflow

Click to zoom flowchart image.

Flowchart

Project's Documentation

Project's Tree

TODO: update/rewrite the project tree

.
├── .req/
│   └── useReq/req files
├── docs/
│   ├── FLOWCHART.md
│   ├── REQUIREMENTS.md
│   ├── REFERENCES.md
│   └── WORKFLOW.md
├── guidelines/
│   └── User's guidelines
├── src/
│   └── Source code
└── tests/
    └── Unit tests suite

Install/Uninstall

Install

TODO: complete installation istructions

Install:

pi install npm:pi-usereq

Or via git:

pi install git:github.com/Ogekuri/PI-useReq

Reload Pi.

Uninstall

TODO: complete uninstall istructions

Quick Start

TODO: complete/reeview with a quick start guide with a complete quick start guide

  1. Install extension, tun pi-dev CLI
  2. Use /req-write or /req-create to create requirements
  3. Use /req-implement to implement source-code from requirements, or /req-cover to cover new requirements (documentation).
  4. Use /req-workflow, /req-flowchart, and/or /req-references to update project's documentation.
  5. Start to use /req-change, /req-new, and /req-fix.

Extension Usage

TODO: document all extension features in details

Extension Custom Commands

TODO: complete with the extension custom commands full documentation

Extension Custom Tools

TODO: complete with the extension custom tools full documentasions

  • Count tokens and chars for the given files files-tokens FILE [FILE ...]

  • Generate LLM summary markdown for the given files files-summarize FILE [FILE ...]

  • Generate compressed output for the given files files-compress FILE [FILE ...]

  • Find and extract specific constructs from the given files files-find TAG PATTERN FILE [FILE ...]

  • Run static analysis on the given files using tools configured in .req/config.json files-static-check FILE [FILE ...]

  • Count tokens and chars for canonical docs files in configured docs-dir (REQUIREMENTS.md, WORKFLOW.md, REFERENCES.md). tokens

  • Generate LLM summary markdown for source files selected by git ls-files cached others exclude-standard under configured src-dir directories. summarize

  • Generate compressed output for source files selected by git ls-files cached others exclude-standard under configured src-dir directories.
    compress

  • Find and extract specific constructs from source files selected by git ls-files cached others exclude-standard under configured src-dir directories. find TAG PATTERN

  • Run static analysis on source files selected by git ls-files cached others exclude-standard under configured src-dir directories (plus configured tests-dir, excluding fixtures/). static-check

  • Check repository integrity for the configured git path: clean working tree and valid HEAD. git-check

  • Check canonical docs presence in configured docs-dir: REQUIREMENTS.md, WORKFLOW.md, REFERENCES.md. docs-check

  • Create an isolated git worktree and branch with the provided name; also copies .req/, active provider directories, and .venv (when present) into the new worktree context. git-wt-create WT_NAME

  • Remove the git worktree and branch identified by name. git-wt-delete WT_NAME

  • Print the configured git-path value from .req/config.json; if .req/config.json is missing, the command fails with Error: .req/config.json not found in the project root. git-path

  • Print the configured base-path value from .req/config.json; if .req/config.json is missing, the command fails with Error: .req/config.json not found in the project root. get-base-path

  • Add enable-line-numbers to include <n>: prefixes in files-compress, compress, files-find, and find output.

  • Test static check configuration and execution (standalone). test-static-check {dummy,pylance,ruff,command} [FILES...]

Supported in find commands

  • Python: CLASS, FUNCTION, DECORATOR, IMPORT, VARIABLE
  • C: STRUCT, UNION, ENUM, TYPEDEF, MACRO, FUNCTION, IMPORT, VARIABLE
  • C++: CLASS, STRUCT, ENUM, NAMESPACE, FUNCTION, MACRO, IMPORT, TYPE_ALIAS
  • C#: CLASS, INTERFACE, STRUCT, ENUM, NAMESPACE, FUNCTION, PROPERTY, IMPORT, DECORATOR, CONSTANT
  • Rust: FUNCTION, STRUCT, ENUM, TRAIT, IMPL, MODULE, MACRO, CONSTANT, TYPE_ALIAS, IMPORT, DECORATOR
  • JavaScript: CLASS, FUNCTION, COMPONENT, CONSTANT, IMPORT, MODULE
  • TypeScript: INTERFACE, TYPE_ALIAS, ENUM, CLASS, FUNCTION, NAMESPACE, MODULE, IMPORT, DECORATOR
  • Java: CLASS, INTERFACE, ENUM, FUNCTION, IMPORT, MODULE, DECORATOR, CONSTANT
  • Go: FUNCTION, METHOD, STRUCT, INTERFACE, TYPE_ALIAS, CONSTANT, IMPORT, MODULE
  • Ruby: CLASS, MODULE, FUNCTION, CONSTANT, IMPORT, DECORATOR
  • PHP: CLASS, INTERFACE, TRAIT, FUNCTION, NAMESPACE, IMPORT, CONSTANT
  • Swift: CLASS, STRUCT, ENUM, PROTOCOL, EXTENSION, FUNCTION, IMPORT, CONSTANT, VARIABLE
  • Kotlin: CLASS, INTERFACE, ENUM, FUNCTION, CONSTANT, VARIABLE, MODULE, IMPORT, DECORATOR
  • Scala: CLASS, TRAIT, MODULE, FUNCTION, CONSTANT, VARIABLE, TYPE_ALIAS, IMPORT
  • Lua: FUNCTION, VARIABLE
  • Shell: FUNCTION, VARIABLE, IMPORT
  • Perl: FUNCTION, MODULE, IMPORT, CONSTANT
  • Haskell: MODULE, TYPE_ALIAS, STRUCT, CLASS, FUNCTION, IMPORT
  • Zig: FUNCTION, STRUCT, ENUM, UNION, CONSTANT, VARIABLE, IMPORT
  • Elixir: MODULE, FUNCTION, PROTOCOL, IMPL, STRUCT, IMPORT

Extension Side Features

TODO: complete with extension side defatures

Sound

TODO: complete with sound extension feature description

Note on Git usage

TODO: review and rewrite git section according extension features.

This section describes the Git behavior when executing the commands provided by the scripts.

  • Required state before execution:

    • Execute commands from a working branch (not in detached HEAD).
    • Preferably, the working tree should be clean: avoid unintended changes in the repository before starting the scripts.
    • Save all files and verify that you are in the correct project directory.
    • IMPORTANT: in clude on repository the directory configured in the extension.
  • What the scripts do to the repository:

    • The scripts may modify, create, or remove files in the working tree (files on disk).
    • They do not modify Git history (HEAD), branches, or tags automatically.
    • The index (staging area) and history remain unchanged until the user manually performs staging/commit operations.
  • How to commit (recommended practice):

    • Review changes generated by the scripts before including them in a commit.
    • Manually add files to commit using git add <file...>.
    • Execute the commit with a structured message, for example: git commit -m "change(<COMPONENT>): <SHORT-DESCRIPTION> [<DATE>]".
    • Staging and commit operations are under the user's control; the scripts do not perform automatic commits or update Git references.
  • Practical warnings:

    • Do not use destructive commands (e.g., git reset --hard, git clean -fd) to "clean" the repository without verifying the impact.
    • If you prefer to isolate changes, execute commands in a branch or a copy of the repository.