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

flavor-grenade-lsp

v0.1.1

Published

Language Server Protocol server for Obsidian Flavored Markdown

Downloads

246

Readme

Flavor Grenade LSP

Language Server Protocol server for Obsidian Flavored Markdown (OFM).

Built with NestJS and Bun, communicating over stdio JSON-RPC. Provides definition, references, completion, diagnostics, code actions, rename, hover, code lens, document symbols, semantic tokens, and document highlight for .md files inside an Obsidian or flavor-grenade vault.

Prerequisites

  • Bun ≥ 1.1.30
  • Node.js ≥ 20 (for tooling only; the server itself runs under Bun)

Installation

bun install

Usage

bun run build        # compile TypeScript to dist/
node dist/main.js    # start the server (stdio transport)

Connect an LSP client (Neovim, VS Code, Helix, etc.) to the server's stdin/stdout using the standard Language Server Protocol initialization handshake.

Development Workflow

bun run build        # incremental TypeScript build
bun run lint         # ESLint (src/ only)
bun run typecheck    # tsc --noEmit, full type check
bun test             # unit tests + integration tests (src/test/integration/) via Bun test runner
bun run test:bdd     # BDD end-to-end suite (Cucumber + real server process)

Architecture

The server is composed of NestJS feature modules wired together in src/lsp/lsp.module.ts:

| Module | Responsibility | | --- | --- | | TransportModule | stdio JSON-RPC framing, reading, writing, and dispatch | | ParserModule | OFM document parsing — wiki-links, tags, callouts, embeds, headings, block anchors, frontmatter | | VaultModule | vault detection, file watching, vault index management | | ResolutionModule | wiki-link resolution (Oracle), diagnostics, link/embed resolution | | CompletionModule | completion providers for wiki-links, tags, callouts, embeds, headings, block refs | | NavigationModule | code lens and document highlight | | RenameModule | prepareRename and textDocument/rename for headings and file stems | | CodeActionsModule | quick-fix code actions (create-missing-file, TOC generator, fix-nbsp, tag-to-YAML) |

See src/ for the source layout and each subdirectory's README.md for per-module details.

Vault Detection

The server detects the vault root by walking up the directory tree from the opened document, looking for .obsidian/ (Obsidian vault) or .flavor-grenade.toml (flavor-grenade vault). If neither is found the server runs in single-file mode.

Diagnostic Codes

| Code | Meaning | | --- | --- | | FG001 | Broken wiki-link — target file not found | | FG002 | Ambiguous wiki-link — multiple files match the stem | | FG003 | Malformed wiki-link — empty or blank target | | FG006 | Missing block anchor target | | FG007 | YAML frontmatter parse error |

License

MIT