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

newprint-mcp

v1.6.3

Published

MCP server that lets AI agents render rich UI — tables, charts, markdown, diffs, code blocks, JSON trees, kanban boards, and pages — and return a shareable URL. Requires an API key from newprint-ui.

Readme

newprint-mcp

An MCP server that lets AI agents render rich UI — tables, charts, markdown, diffs, code blocks, JSON trees, kanban boards, and multi-block pages — and return a shareable URL instead of plain text.

How it works

  1. Create an account and get an API key
  2. Configure your API key with the setup_api_key tool
  3. Agent calls render_ui with structured data
  4. User opens the returned URL and sees a rich rendered view

Setup

1. Install

Claude Code:

claude mcp add newprint-mcp -- npx -y newprint-mcp

Claude Desktop — add to claude_desktop_config.json:

{
    "mcpServers": {
        "newprint": {
            "command": "npx",
            "args": ["-y", "newprint-mcp"]
        }
    }
}

2. Create an account

Sign up at newprint.dev/register.

3. Get an API key

Go to your Dashboard and create an API key. Copy it — it starts with np_ and is only shown once.

4. Configure the API key

Ask your AI agent to run the setup_api_key tool:

"Set up my newprint API key: np_your_key_here"

The key is saved to ~/.newprint/config.json and used automatically for all future renders.

Alternative: Set the NEWPRINT_API_KEY environment variable instead:

{
    "mcpServers": {
        "newprint": {
            "command": "npx",
            "args": ["-y", "newprint-mcp"],
            "env": {
                "NEWPRINT_API_KEY": "np_your_key_here"
            }
        }
    }
}

Usage

Once configured, ask Claude to render something:

"Show me last month's sales as a bar chart"

"Create a markdown report summarising these results"

"Build a page with a summary, chart, and data table"

Claude will call render_ui and return a URL you can open in your browser.

Usage limits

Each account gets 1,000 renders per month. Check your current usage on the Dashboard or by asking the agent to run newprint_status.

Tools

render_ui

Render structured data as a rich UI and return a shareable URL.

| Parameter | Type | Required | Description | | --------- | ---------------------------------------------------------------------------------------------- | -------- | ----------------------------- | | type | table | markdown | chart | diff | codeblock | json-tree | kanban | page | Yes | Render type | | title | string | No | Optional display title | | payload | object | Yes | Data matching the type schema |

setup_api_key

Configure your newprint API key. Validates the key and saves it to ~/.newprint/config.json.

| Parameter | Type | Required | Description | | --------- | ------ | -------- | -------------------------------- | | api_key | string | Yes | Your API key (starts with np_) |

newprint_status

Check your setup status, key validity, and monthly usage. Takes no parameters.

Payload schemas

table

{
    "columns": ["Name", "Score"],
    "rows": [
        ["Alice", 95],
        ["Bob", 88]
    ]
}

markdown

{
    "content": "# Hello\n\nThis is **markdown**."
}

chart

{
    "chartType": "bar",
    "xKey": "month",
    "series": [{ "dataKey": "revenue", "label": "Revenue" }],
    "data": [{ "month": "Jan", "revenue": 42000 }]
}

diff

{
    "oldValue": "const x = 1;",
    "newValue": "const x = 2;",
    "language": "javascript",
    "fileName": "config.js"
}

codeblock

{
    "code": "console.log('hello');",
    "language": "javascript",
    "fileName": "app.js"
}

json-tree

{
    "data": { "user": { "name": "Alice", "active": true }, "roles": ["admin"] }
}

kanban

{
    "columns": [
        {
            "title": "To Do",
            "color": "#6366f1",
            "cards": [{ "title": "Design auth flow", "tags": ["design"], "priority": "high" }]
        }
    ]
}

page (multiple blocks)

{
    "blocks": [
        { "type": "markdown", "payload": { "content": "## Summary" } },
        { "type": "table", "payload": { "columns": ["A", "B"], "rows": [[1, 2]] } }
    ]
}

Environment variables

| Variable | Default | Description | | ------------------ | ------- | ------------------------------- | | NEWPRINT_API_KEY | — | API key (overrides config file) |

Requirements

  • Node.js 18+