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

@mosetta/ide-plugin-lsp

v0.0.14

Published

LSP in the daemon: diagnostics for the whole project, hover, definitions, references and completion. TypeScript out of the box.

Readme

Language servers

@mosetta/ide-plugin-lsp · LSP in the daemon: diagnostics for the whole project, hover, definitions, references and completion. TypeScript out of the box.

What it does

Language servers run in the daemon, next to the project, and read files from the daemon's memory — so they see your unsaved edits, and they survive a reload of the tab.

  • TypeScript works on a fresh install. typescript-language-server ships with the editor and starts when a project opens, not when the first file does.
  • The whole project is checked, not only the open file: after start-up the server sweeps the project in the background, and the problems panel fills with every error. The sweep has a memory budget; when it stops early, the toolbar and the problems panel say how far it got and which setting raises the ceiling.
  • Any LSP server can be added in settings.json: a command, its arguments and the file extensions it looks after.
  • The answers feed the rest of the IDE: squiggles and hovers in the editor, go to definition and usages, completion items, red folders in the tree.

Settings

Section lsp in settings.json:

| Key | Default | What it does | |---|---|---| | startOnOpen | true | Start the servers when a project opens. | | checkProject | true | Sweep the whole project after start-up. | | memoryBudgetMb | 3072 | How much memory the servers and their children may take while sweeping. | | sweepIndicator | true | Show the sweep's progress on the toolbar. | | servers | typescript | The servers by name: enabled, command (empty means the bundled one), args, extensions, and optionally checkExtensions and preferences (the server's own options). |

Adding a server:

{
  "lsp": {
    "servers": {
      "css": {
        "enabled": true,
        "command": "vscode-css-language-server",
        "args": ["--stdio"],
        "extensions": ["css", "scss"]
      }
    }
  }
}

Screenshots and demos

A warning underlined in the code, with the message on hover

Try it in the browser

Using it from another plugin

import LspPlugin from '@mosetta/ide-plugin-lsp';

const lsp = this.ide.getPlugin(LspPlugin);

lsp.problems.value;        // every file with diagnostics: [{ path, diagnostics }]
lsp.fileDiagnostics.value; // the diagnostics of the open file
lsp.statuses.value;        // each server's state and sweep progress

const hover = await lsp.hover('src/flock.ts', 24, 10);        // { markdown } or null
const where = await lsp.definition('src/flock.ts', 1, 10);    // [{ path, line, character, preview }]
const uses = await lsp.references('src/sheep.ts', 4, 14);
const items = await lsp.complete('src/flock.ts', 30, 12, '.');

Lines and characters are zero-based, as in LSP itself. serves(path) tells whether any enabled server looks after a file — completion asks it before offering plain words after a dot.

The diagnostics are signals: read them inside a view or an effect and your plugin updates when a server reports.