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

ferret-lsp

v0.6.0

Published

Language Server Protocol (LSP) server for Ferret security scanner. Provides real-time diagnostics, hover info, completions, and code actions for AI CLI/agent configurations in any LSP-capable editor.

Readme

Ferret LSP Server

Language Server Protocol implementation for the Ferret security scanner.

Provides real-time security diagnostics, hover information, and completions for AI CLI/agent configuration files across any LSP-capable editor (VS Code, Neovim, Emacs, Zed, Helix, Sublime Text, etc.).

Installation

npm install -g ferret-lsp
# or
npx ferret-lsp

Usage

You can start the server in two ways:

Via the main Ferret CLI (recommended)

ferret lsp

Standalone

ferret-lsp
# or
npx ferret-lsp

Most editors will launch the server automatically when configured via their LSP settings.

The server communicates over stdio using the Language Server Protocol.

Features

  • Diagnostics: Real-time scanning of .md, .json, .yaml, .yml, .sh and AI config files (.claude/, .cursor/, etc.) using Ferret's full rule engine.
  • Hover: Hover over a finding or rule ID to see description, remediation, severity, and MITRE ATLAS techniques.
  • Completion: Context-aware completions when editing .ferretrc.json or custom rules files (categories, severities, rule IDs).
  • Code Actions: Quick fixes (where supported).

Editor Configuration Examples

Neovim (with nvim-lspconfig)

require('lspconfig').ferret_lsp.setup {
  cmd = { "ferret-lsp" },
}

Zed

Add to settings.json:

{
  "lsp": {
    "ferret": {
      "command": "ferret-lsp"
    }
  }
}

VS Code

The official Ferret VS Code extension can optionally use this LSP server (see extension settings ferret.useLspServer).

Configuration

The LSP server reads your existing .ferretrc.json / .ferretrc and respects the same settings as the CLI (thorough, semantic-analysis, mcp-validation, etc.).

Security

The LSP server shells out to the installed ferret binary for actual scanning (same isolation model as the VS Code extension). No new network or privilege requirements.

Development

cd lsp
npm install
npm run build
npm start

License

MIT