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

@typeset-page/mcp

v0.1.0

Published

Model Context Protocol server for Typeset: publish Markdown from an AI prompt (Claude Desktop/Code) to a shareable read.typeset.page URL. Local stdio; OAuth PKCE login via Supabase (Google/Microsoft).

Readme

@typeset-page/mcp

MCP server that lets you publish Markdown from an AI prompt straight to a shareable Typeset reader URL — without leaving your terminal or chat.

It exposes three tools over stdio:

| Tool | What it does | |---|---| | share_document | Render Markdown → publish → return read.typeset.page/p/<id> | | list_pages | List your published pages with their URLs | | unpublish | Take a page down and wipe its stored text |

Publishing goes through your Typeset account. You sign in once with Google or Microsoft via an OAuth flow in your browser; the session is stored locally (~/.config/typeset-mcp/session.json, owner-only). Every write uses your per-user token, so Supabase Row-Level Security enforces that you only touch your own pages.

Install & sign in

# One-time login (opens your browser)
npx @typeset-page/mcp login

Configure your MCP host

Claude Desktop

Add to claude_desktop_config.json (Settings → Developer → Edit Config):

{
  "mcpServers": {
    "typeset": {
      "command": "npx",
      "args": ["-y", "@typeset-page/mcp"]
    }
  }
}

Claude Code

claude mcp add typeset -- npx -y @typeset-page/mcp

Then, in a prompt: "Publish this note to Typeset" → the host asks you to approve the share_document call → you get a URL back.

Usage notes

  • Confirm before publishing. share_document and unpublish are marked destructive; your MCP host will ask for approval on each call. share_document publishes to the public web (the page is unlisted — reachable only via its URL, which contains a random id).
  • Update instead of duplicate. Pass the page_id returned by a previous share_document/list_pages to re-publish the same page.
  • Defaults: template vignelli, theme light, comment policy anyone. Override per call.

Configuration (env vars)

All optional — the defaults point at production Typeset.

| Var | Default | |---|---| | TYPESET_MCP_PROVIDER | google (azure for Microsoft) | | TYPESET_API_URL | https://api.typeset.page | | TYPESET_SHARE_BASE | https://read.typeset.page | | TYPESET_SUPABASE_URL | Typeset's Supabase project URL | | TYPESET_SUPABASE_ANON_KEY | Typeset's public anon key |

The Supabase URL/anon key are public values (the same pair ships in the web client); RLS, not secrecy, guards access.

CLI subcommands

npx @typeset-page/mcp login     # interactive OAuth, stores the session
npx @typeset-page/mcp whoami    # print who you're signed in as
npx @typeset-page/mcp logout    # clear the stored session
npx @typeset-page/mcp           # run the MCP server on stdio (hosts do this)

Deploy / operator note (Supabase Redirect URLs)

The OAuth flow redirects back to a loopback URL. GoTrue validates redirect_to against the project's allowlist, so the following must be present under Authentication → URL Configuration → Redirect URLs in the Supabase dashboard:

http://127.0.0.1:42813/callback
http://127.0.0.1:42814/callback
http://127.0.0.1:42815/callback

The server binds the first free port among these (CANDIDATE_PORTS in src/loopback.ts). Keep the two lists in sync.

Development

npm install
npm run build      # tsc → dist/
npm test           # vitest (PKCE, config, session, loopback)

Ported from the obsidian-docshare share pipeline (auth.ts + platform.ts), retargeted from Obsidian's requestUrl to native fetch. See docs/features/mcp-server/implementation.md for the design.