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

@deqiying/fast-context

v1.0.0

Published

Semantic local-code discovery CLI for AI agents and terminal users.

Readme

fast-context

fast-context is a Go CLI for semantic discovery in local codebases. It uses Windsurf Devstral to narrow unknown entrypoints, then expects the caller to verify returned files and line ranges with local deterministic tools.

Install

Alpha releases are intentionally available through the default installation channel:

npm install -g @deqiying/fast-context
fast-context --version

@deqiying/fast-context@latest is equivalent. Pin an exact version when reproducibility is required; latest may point to an Alpha until the stable-release gate is met.

Supported npm platforms:

  • Windows x64
  • Linux x64
  • macOS arm64

The launcher installs platform-specific Go binaries as optional dependencies and uses @vscode/ripgrep. A user-provided FC_RG_PATH always takes precedence.

Agent workflow

fast-context skills show --format content fast-context
fast-context doctor --project . --format json
# Read the exact contract for a known command before constructing unfamiliar argv.
fast-context schema --format json search
fast-context search --project . --format json "where is authentication handled"
# Load exact output/error details only when needed.
fast-context skills show --format content --reference cli-contract fast-context

search sends the query, a repository map, and requested restricted-tool results to Windsurf. Once the Skill is loaded and doctor reports ok=true, no separate per-search authorization is required; an explicit instruction forbidding external transmission still wins. Snippets are disabled by default, and every result remains a candidate until local deterministic tools verify it.

schema --format json returns the full versioned CLI command manifest; schema --format json <canonical-command-path...> returns one definition, such as search or key extract. Prefer the targeted form when the command is known, and use the full form only for first-time discovery or caching. It accepts canonical paths only, is JSON-only and static, and does not read configuration, credentials, project/CWD, or environment values; it does not access the network, write files, or run normal command handlers. The manifest is not native-tool registration: a host must explicitly map it if native tools are required.

Use known argv directly and reuse a targeted definition for the same CLI version within a task. If schema is unknown on an older installation, load that binary's version-matched Skill with skills show instead of guessing newer flags or silently updating. --reference cli-contract is allowlisted and cannot read arbitrary paths; without it, skills show keeps the original main-Skill output shape.

JSON presentation

JSON output defaults to one compact line with one trailing LF. For human inspection, add --pretty to produce two-space-indented JSON with the same trailing LF:

fast-context schema --pretty

The CLI never infers layout from TTY, pipes, redirection, or its host. --pretty is accepted by search, key extract, doctor, skills list, skills show, and schema; it is ignored for text/content output and never selects JSON by itself. The existing default format of each command is unchanged, and text-only version does not support --pretty.

Local credentials

For a persistent user-level key, create $HOME/.config/fast-context/config.json yourself:

{
  "api_key": "your-api-key"
}

The CLI does not create or rewrite this file. Runtime credentials are resolved in this order: FAST_CONTEXT_KEY, the JSON api_key, WINDSURF_API_KEY, then the Linux/WSL Devin CLI ~/.local/share/devin/credentials.toml. Windsurf/Devin state.vscdb files are never discovered automatically. Use fast-context doctor --format json to inspect the effective source; use fast-context key extract --path <state.vscdb> only when you explicitly intend to inspect a legacy database. Never commit the file or print a complete key in logs.

FC_TIMEOUT_MS is clamped as a 1s..300s runtime default. An explicit --timeout keeps the CLI's historical duration-parser compatibility and is not clamped to that environment range; the manifest's canonical Agent range is intentionally 1s..300s.

License and origin

MIT licensed. This Go implementation is derived from the behavior of fast-context-mcp, whose MIT notice is preserved in the repository license.