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

@brunobrise/xfeat

v1.5.0

Published

Automated AI-driven CLI for codebase analysis and feature extraction.

Readme

@brunobrise/xfeat

License: MIT Node.js

@brunobrise/xfeat is an automated, AI-driven CLI engine that deeply analyzes your codebase to extract product-level features, component architectures, and global system scopes. By combining precise AST-based structural parsing (via web-tree-sitter) with the reasoning capabilities of Anthropic's Claude Sonnet 4.6, this tool auto-generates comprehensive, human-readable documentation of what your code actually does.

Key Features

  • AST-Powered Parsing: Fast and accurate structural footprint generation (classes, functions, exports, imports) for modern ecosystem languages.
  • Agentic Source Code Reading: Rather than guessing based off function identifiers, the AI utilizes a specialized view_file tool to selectively dive into the raw source code wherever AST context is insufficient.
  • Automated Mermaid Diagrams: Visually maps out how files interact at macro and global architecture levels.
  • Structured Markdown Deliverables: Produces a neat, hierarchical FEATURES.md report encompassing everything from the executive summary to granular file logic.
  • Smart Directory Traversal: Adheres to your local .gitignore and optional custom .xfeatignore rules to avoid processing build artifacts and generic dependencies.

How It Works

The engine executes in an expanding 4-stage pipeline:

  1. AI Pre-filtering (Stage 0):

    • Interactively requests permission to AI-filter the target files.
    • Cleans the file list by intelligently removing trivial boilerplate, config files, and UI assets dynamically, saving time and tokens.
  2. Micro Analysis (File-Level):

    • Identifies granular structural signatures across source files.
    • Leverages an LLM sub-agent loop to request file contents as needed.
    • Outputs 1-2 sentence overviews alongside high-level feature bullet points for each file.
  3. Macro Analysis (Component-Level):

    • Groups files logically by their enclosing directory.
    • Synthesizes isolated file summaries into a curated Component Summary.
    • Generates localized Mermaid.js flow/architecture diagrams per directory.
  4. Global Analysis (System-Level):

    • Ties localized component summaries together into a master architecture overview.
    • Documents the core pillars and overarching domain of the application.
    • Renders a highly-abstracted global Mermaid architecture diagram representing the entire system interaction.

Installation

You can run @brunobrise/xfeat directly via npx without installing it globally:

npx @brunobrise/xfeat

Configuration

Create a .env file at the root of the project to define your API authorization:

# Required: Your Anthropic API Key
ANTHROPIC_API_KEY="sk-ant-..."

# Optional Environment Overrides
ANTHROPIC_AUTH_TOKEN=""
ANTHROPIC_BASE_URL=""
CLAUDE_CODE_SUBAGENT_MODEL="claude-sonnet-4-6"

Usage

You can scan the immediate working directory, or pass a relative/absolute path to dynamically scan another repository on your machine.

Scan Current Directory

npx @brunobrise/xfeat

Scan Remote Directory Path

npx @brunobrise/xfeat /path/to/your/custom/project

Development Tooling

For developers contributing to this tool, standard npm scripts are available:

  • npm run dev — Hot-reloads the analysis script using Nodemon.
  • npm run lint — Analyzes the source using ESLint against best practices.
  • npm run format — Standardizes code styling uniformly with Prettier.

Expected Output

The script concludes by generating a structured FEATURES.md record at your execution root. Inside, you can expect:

  1. Global Architecture Overview (Executive Summary, Application Pillars, Main System Diagram)
  2. Component Breakdown (Directory-by-Directory Insights, Narrow Context Diagrams)
  3. File-Level Details (Deeply granular feature lists)

Supported Languages

The foundational Tree-sitter AST parser natively understands:

  • JavaScript (.js, .jsx)
  • TypeScript (.ts, .tsx)
  • Python (.py)
  • Rust (.rs)
  • Go (.go)
  • Java (.java)
  • PHP (.php)

License

This tooling is open-sourced under the MIT License.


Built organically with the Anthropic SDK and Tree-sitter.