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

@vielzeug/codex

v2.3.1

Published

MCP server that exposes the vielzeug ecosystem to AI assistants — run locally over stdio or remotely over HTTP

Readme

@vielzeug/codex

MCP server for Vielzeug package metadata, documentation, public source, REPL examples, and Refine component data.

Install and run

npx -y @vielzeug/codex
npx -y @vielzeug/codex --port=3100

Stdio is default. HTTP uses Streamable HTTP on 127.0.0.1; health endpoint: http://127.0.0.1:3100/health.

mcp-setup.json ships a machine-readable generic stdio/HTTP setup manifest:

{
  "command": "npx",
  "args": ["-y", "@vielzeug/codex"]
}

Local development

Node 22+ and root workspace setup required:

pnpm setup
cd packages/codex
pnpm test:unit
pnpm test:integration
pnpm dev

pnpm dev regenerates an atomic chunked snapshot whenever docs or package inputs change. Use --debug to log tool timings and expected failures.

Programmatic API

import { SnapshotCatalog, createMcpServer, loadSnapshot } from '@vielzeug/codex';
import { StdioServerTransport } from '@modelcontextprotocol/server/stdio';

const snapshot = loadSnapshot();
const catalog = new SnapshotCatalog(snapshot);
await createMcpServer(catalog, { version: snapshot.manifest.version }).connect(new StdioServerTransport());

Tools

| Tool | Input | Description | | --- | --- | --- | | list-packages | — | List every Vielzeug package. | | get-package | packageSlug | Read metadata for one package. | | get-docs | packageSlug, page? | Read one documentation page as Markdown. | | get-source | packageSlug | Read bundled public source for one package. | | list-examples | packageSlug | List runnable REPL examples for one package. | | get-example | exampleId, packageSlug | Read one runnable REPL example. | | search-packages | query | Search package metadata, docs, examples, and source. | | get-type-signature | slug, symbol | Read one exported TypeScript declaration. |

| Tool | Input | Description | | --- | --- | --- | | refine-list-components | — | List bundled Refine web components. | | refine-get-component | tagName | Read one Refine component declaration. | | refine-generate-template | scenario?, tagName | Generate a minimal Refine component HTML template. | | refine-get-tokens | filter? | List bundled Refine CSS custom properties. | | refine-validate-usage | html, tagName | Validate unknown attributes in one Refine component HTML fragment. |

Snapshot layout

Published data/ contains one static snapshot: manifest.json, lightweight catalog.json and search.json, optional refine.json, and lazy package chunks under packages/. Local pnpm dev snapshots live under ignored .dev/ and use current.json to select an immutable generation. Pass --snapshot=<directory> to load either form.

Documentation

  • https://vielzeug.dev/codex/
  • https://vielzeug.dev/codex/usage
  • https://vielzeug.dev/codex/api