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

@ruby-fast/lsp

v0.2.3

Published

A fast Language Server Protocol implementation for Ruby

Downloads

722

Readme

Ruby Fast LSP

A high-performance Ruby Language Server written in Rust, built to power both AI coding agents and traditional editors with fast, accurate code intelligence.

Why Ruby Fast LSP

AI coding agents like Claude Code, Cursor, and Windsurf rely on Language Server Protocol features to understand codebases, validate their own edits, and navigate code with precision. Ruby deserves a language server that treats these agent workflows as first-class.

Ruby Fast LSP is designed around the features that matter most for agent-assisted development:

  • Diagnostics that catch errors in real time, so agents can self-correct without running a build
  • Go to Definition and Find References for precise, type-aware navigation instead of text search
  • Hover with type signatures, so agents understand what they're working with
  • Workspace Symbols for systematic codebase exploration

Written in Rust with millisecond response times, it handles large Ruby codebases without becoming a bottleneck.

Type Inference

At the core of Ruby Fast LSP is Yard & RBS backed type inference engine that gives diagnostics and navigation real accuracy, not just syntax awareness.

  • Resolves standard library types through RBS definitions
  • Handles generic substitution (e.g., Array[Integer]#first resolves to Integer)
  • Walks ancestor chains across includes, prepends, and inheritance
  • Validates return types against YARD and RBS annotations
  • Understands union types (eg. User, nil) for accurate nullability and branch analysis
  • Powers unresolved method and constant detection

You can guide the engine with simple YARD annotations on your methods:

# @param name [String]
# @return [User, nil]
def find_by_name(name)
  # ...
end

This is enough for the LSP to resolve return types, validate callers, and propagate types through method chains. No separate type files or complex setup required.

This is what makes the difference between a language server that can grep and one that can reason about Ruby code.

Installation

npm (recommended)

Install the language server binary globally:

npm install -g @ruby-fast/lsp

This makes the ruby-fast-lsp binary available in your PATH.

Building from Source

cargo build --release

The binary will be at target/release/ruby-fast-lsp.

Setup

Claude Code

  1. Install the binary globally via npm (see above).

  2. Add the language server to your Claude Code settings. Edit ~/.claude/settings.json:

{
  "lspServers": {
    "ruby": {
      "command": "ruby-fast-lsp",
      "args": ["--stdio"],
      "extensionToLanguage": {
        ".rb": "ruby",
        ".rake": "ruby",
        ".gemspec": "ruby"
      }
    }
  }
}
  1. Restart Claude Code. The language server will start automatically when you work with Ruby files, providing diagnostics, navigation, and type information.

For project-specific configuration, add the same lspServers block to .claude/settings.json in your project root instead.

VS Code

  1. Install the extension from the VS Code Marketplace.
  2. Open a Ruby project. The server starts automatically and indexes your workspace.

Cursor, Windsurf, and Other VS Code Forks

Editors based on VS Code that use the Open VSX Registry can install the extension from:

open-vsx.org/extension/naveenraj/ruby-fast-lsp

Other Editors

Any editor that supports LSP can use Ruby Fast LSP. Start the server with:

ruby-fast-lsp --stdio

Configure your editor's LSP client to connect via stdio with language ID ruby.

See Also

  • Ruby Fast Cop - A high-performance Ruby linter written in Rust, designed as a companion to Ruby Fast LSP.

Contributing

Issues and feature requests welcome on GitHub.

License

MIT