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

summariser

v1.0.1

Published

AI-powered CLI tool that scans a project and generates per-file summaries using any OpenAI-compatible LLM

Downloads

205

Readme

summariser

CLI tool that scans a project directory and uses an OpenAI-compatible LLM to generate a brief per-file summary, then renders the result as a directory tree in the terminal.

- src
  -- cli       (entry point, wires Commander commands to analyse and config handlers)
  -- config    (OS-aware config file management, load/save/set helpers)
  -- scanner   (recursive directory walker with regex include/exclude filters)
  -- summarizer (OpenAI SDK calls with pool-based concurrency, progress callbacks)
  -- renderer  (builds directory tree from summaries and renders with chalk colors)
  -- setup     (interactive wizard for first-time configuration)

Works with any OpenAI-compatible API: OpenAI, OpenRouter, Groq, Ollama, etc.


Model example:

  • Qwen3.5-0.8B

Install

npm install summariser -g

Option A — install from source (requires Node.js v18+):

# Linux / macOS
bash install.sh

# Windows (PowerShell)
.\install.ps1

# Windows (cmd)
install.bat

The script installs dependencies, compiles TypeScript, and runs npm link so sumr and summariser become available globally.

Option B — pre-built binary (no Node.js required):

Download the binary for your platform from Releases and put it anywhere on your PATH.


Quick start

# 1. Configure once
sumr config init

# 2. Run in any project
sumr --path ./my-project

Commands

| Command | Description | |---|---| | sumr | Analyse current directory | | sumr --path <dir> | Analyse a specific directory | | sumr --verbose | Verbose mode with progress bar and colored tree | | sumr --concurrency <n> | Parallel LLM requests (default: 5) | | sumr config init | Interactive setup wizard | | sumr config show | Print current config | | sumr config set <key> <value> | Set a single config value |


Configuration

Config is stored at:

  • Windows%APPDATA%\summariser\summariser-config.json
  • Linux / macOS~/.config/summariser/summariser-config.json

| Key | Default | Description | |---|---|---| | apiKey | — | OpenAI-compatible API key | | baseURL | https://api.openai.com/v1 | API base URL | | model | gpt-4o-mini | Model name | | language | English | Language for summaries | | includePattern | \.(ts\|js\|py\|go\|cs\|...)$ | Regex — which files to scan | | excludePattern | (node_modules\|.git\|dist\|...) | Regex — which paths to skip | | maxTokens | 150 | Max tokens per summary |

Examples:

sumr config set apiKey sk-...
sumr config set baseURL https://openrouter.ai/api/v1
sumr config set model anthropic/claude-3-haiku
sumr config set language Russian
sumr config set includePattern "\\.(ts|js|py)$"
sumr config set excludePattern "(node_modules|dist|\\.git|tests)"

Build binaries

npm run build
npm run package:all   # → bin/sum-win.exe  bin/sum-linux  bin/sum-macos

Binaries are self-contained — no Node.js needed on the target machine.