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

@arvoretech/pi-lsp

v1.0.3

Published

PI extension that bridges Language Server Protocol servers to give the agent real compiler diagnostics, go-to-definition, references, hover and rename

Readme

@arvoretech/pi-lsp

PI extension that bridges Language Server Protocol servers, giving the agent real compiler diagnostics, go-to-definition, find-references, hover types and project-wide rename — instead of guessing from text.

Tools

| Tool | Purpose | | --- | --- | | lsp_diagnostics | Real type-checker errors/warnings for a file (e.g. TS2345). | | lsp_definition | Resolve a symbol to its definition (1-based line/column). | | lsp_references | Find all references to a symbol across the project. | | lsp_hover | Inferred type signature and docs for a symbol. | | lsp_rename | Compute a safe project-wide rename. Returns edits; does not apply them. |

Commands

  • /lsp-status — list configured language servers and their file extensions.

Supported languages

Driven by a registry (src/registry.ts). Currently:

  • TypeScript / JavaScript (.ts .tsx .js .jsx .mts .cts .mjs .cjs) via typescript-language-server --stdio.

Adding a language is a single entry in LANGUAGE_SERVERS — the JSON-RPC client, lifecycle, and document sync are language-agnostic.

Requirements

The language server binary must be on PATH. For TS/JS:

pnpm add -g typescript-language-server typescript

If a server is missing, the tools return a clear message and the extension stays inert (no crash).

How it works

  • One server instance per (language, project root), lazy-spawned on first use. Root is detected by walking up from the file and preferring the nearest tsconfig.json / jsconfig.json / package.json over .git, so files inside a subproject of a monorepo resolve to the subproject (which has its own TypeScript install) rather than the repo root.
  • If a server fails to initialize (e.g. no TypeScript found at the resolved root), the instance is not cached as permanently unavailable — a later call can retry once the root resolution improves.
  • Documents are synced (didOpen / didChange) from disk on each call; diagnostics are awaited with a short quiet-period debounce.
  • Servers are shut down cleanly on session_shutdown.

Architecture

src/
  protocol.ts   LSP type subset
  client.ts     JSON-RPC over stdio (Content-Length framing, request/notify)
  registry.ts   language -> server config
  manager.ts    spawn / lifecycle / root detection / doc sync / high-level ops
  tools.ts      lsp_* tool definitions + output formatting
  index.ts      entry shell (lifecycle + tool registration)