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

@askturret/mcp-explorer

v0.2.0

Published

Local Explorer UI - dev-only tool browser and safe invoke panel

Downloads

561

Readme

@askturret/mcp-explorer

Local, dev-only Explorer UI — a Swagger-like human view of the effective MCP tool surface, with a safe test-invoke panel.

It renders from the same RegistrySnapshot the transport serves, so what it shows cannot drift from what tools/list returns, and it invokes tools through the same /mcp endpoint any MCP client uses. There is no Explorer-private endpoint.

What it shows

  • Every visible tool in the current snapshot, filterable.
  • Per-tool detail: description, input and output schema as a JSON Schema tree with per-field docs, effect flags, and executor type.
  • A test-invoke form derived from the input schema, submitted as tools/call.
  • A response viewer showing the pretty-printed result or the typed error.
  • Registry hash, version and createdAt in the header.

Usage from an adapter

import { buildExplorerViewModel, renderExplorerHtml } from '@askturret/mcp-explorer';

const html = renderExplorerHtml(buildExplorerViewModel(registry.current(), basePath));

buildExplorerViewModel is pure — snapshot in, view model out — so an adapter only has to serve the string. The Express adapter mounts it at ${basePath}/explorer.

Diagnostic panels (#56)

renderExplorerHtml takes an optional second argument — the six diagnostic panels from buildExplorerPanels:

const html = renderExplorerHtml(model, buildExplorerPanels({ /* live state */ }));

Omit it and the page is unchanged apart from per-tool provenance, which rides on the view model and needs nothing from the host. Adapters expose this as the explorerPanels option, called per request. See docs/explorer-panels.md.

Everything embedded in the page is redacted at serialization, so a hand-built panel set cannot route around the pipeline the builders apply.

Production

Per §10.1 invariant 9, the Explorer is disabled by default when NODE_ENV=production, where the route returns 404. An operator can opt in explicitly (enableExplorer: true), which is not blocked but logs a startup warning naming the setting.

Enabling it in production is risky and deliberately so: the Explorer publishes the full tool surface and can invoke tools. It has no authentication of its own — it inherits only whatever the host app puts in front of ${basePath}/explorer. Protecting that route is the adopter's responsibility.

Executor config is never sent to the browser; only the executor type is, since config can hold upstream URLs and credential references.

Delivery

A single self-contained HTML document with inline CSS and JS — no framework, no build step, no runtime dependency. A typical page is ~5 KB gzipped, against the 100 KB budget in the architecture doc.

Scope

This is the v0.1 developer inner-loop. Provenance UI, policy explanation, trace/audit history, breaker/bulkhead state, version diff and the principal-aware effective surface ship with their owning epics.