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

godot-lsp-cli

v0.1.0

Published

CLI that talks to Godot's built-in LSP — rename symbols, find references, go to definition

Readme

godot-lsp-cli

CLI that talks to Godot's built-in LSP. Rename symbols, find references, go to definition — from the terminal.

Zero runtime dependencies. Works with Godot 4.2+.

Install

npm install -g godot-lsp-cli

Or run without installing:

npx godot-lsp-cli <command>

Prerequisites

Godot's LSP server must be running. Start it headless in a separate terminal:

godot --editor --headless --lsp-port 6005 --path /path/to/your/project

Usage

godot-lsp-cli <command> [options]

All file commands accept relative paths when --project is set. Lines and columns are 0-based (LSP convention).

Rename a symbol across the project

godot-lsp-cli rename game/player/player.gd 10 4 new_name --project .

Returns all edits needed (does not write files).

Find all references

godot-lsp-cli references game/player/player.gd 10 4 --project .

Go to definition

godot-lsp-cli definition game/player/player.gd 10 4 --project .

Go to declaration

godot-lsp-cli declaration game/player/player.gd 10 4 --project .

List symbols in a file

godot-lsp-cli symbols game/player/player.gd --project .

Hover info (type + docs)

godot-lsp-cli hover game/player/player.gd 10 4 --project .

Godot built-in class docs

godot-lsp-cli native-symbol Timer
godot-lsp-cli native-symbol Node2D

Diagnostics (errors/warnings)

godot-lsp-cli diagnostics game/player/player.gd --project .
godot-lsp-cli diagnostics --project .  # all files

Show LSP capabilities

godot-lsp-cli capabilities --project .

Options

| Flag | Default | Description | |---|---|---| | --project <path> | — | Godot project root (enables relative paths) | | --port <port> | 6005 | LSP server port | | --host <host> | 127.0.0.1 | LSP server host | | --json | — | Output as JSON |

Godot LSP capabilities (4.6.1)

| Feature | Supported | |---|---| | Rename symbol | Yes | | Find references | Yes | | Go to definition | Yes | | Go to declaration | Yes | | Document symbols | Yes | | Hover | Yes | | Diagnostics | Yes | | Native class docs | Yes | | Workspace symbols | No |

How it works

Connects to Godot's LSP over TCP using the standard LSP JSON-RPC protocol. The transport layer is adapted from the official Godot VSCode plugin.

AI agent integration

This tool is designed to work with AI coding agents (Claude Code, Cursor, etc.) that can call CLI tools. The --json flag outputs structured data for programmatic consumption.

Example workflow for an AI agent:

  1. symbols <file> — understand file structure
  2. references <file> <line> <col> — check blast radius before changes
  3. rename <file> <line> <col> <newName> --json — get edit set
  4. Apply edits to files

License

MIT