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

@zleap-ai/sag

v0.1.8

Published

Search local project files with SAG. Desktop app optional.

Readme

@zleap-ai/sag

Search local project files with SAG. The desktop app is optional; both use the same search core and knowledge base.

npm install -g @zleap-ai/sag
sag
sag add --types md,txt,html,py,js,ts,tsx,json,yaml
sag "Where is permission checked?"
sag -E -c '^(ERROR|WARN) [0-9]+' ./logs
sag -F -c 'validatePermission(' ./src

The same unversioned install command updates an existing npm installation to the latest release. For Agent setup, follow https://github.com/Zleap-AI/SAG-Wiki/blob/main/cli/skills/sag/SKILL.md.

You can also install with pnpm add -g @zleap-ai/sag or bun add -g @zleap-ai/sag.

First use of semantic search guides you through the JEV endpoint, model and API key. The key is entered without echoing. Existing settings are reused. To configure noninteractively, use sag config --key 'YOUR_KEY' or sag config --key-stdin. Command arguments may be saved in shell history.

The package includes precompiled native binaries. No Rust toolchain, desktop app, install script or extra binary download is required. Node.js 18 or later is required for the command launcher.

Supported platforms in this package: macOS Apple Silicon (arm64), Windows x64.

Search is scoped to indexed folders under the current directory. sag add indexes the current project, sag remove removes its knowledge-base records without deleting local files. .gitignore and .sagignore are respected. Use sag -c "question" for original passages, or --json for structured output.

Semantic search remains the default. Use -E / --extended-regexp for Rust regex syntax or -F / --fixed-strings for literal substrings. These mutually exclusive modes match one line at a time, are case-sensitive by default, and need no API key or model. They share the knowledge-base scope and exclusions. -m limits matching lines; no matches exits successfully. Regex lookaround and backreferences are unsupported.

Local matching also supports -i, -w, -x, -v, context via -A/-B/-C, file names via -l, per-file --count, fragments via -o, and silent predicates via -q (exit 0/1/2 for match/no match/error). Use repeated -e patterns or -f FILE (- for stdin), plus ordered --include / --exclude filename globs. These controls require -E or -F. -c still means content. --count scans all lines unless an explicit global -m limit is supplied.