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

@parke.dev/pi-notion

v0.1.0

Published

Notion page search, reading and append tools for the Pi coding agent

Readme

@parke.dev/pi-notion

Notion pages and databases: read, search and append, as a Pi extension.

pi install npm:@parke.dev/pi-notion      # once published

What it does

Run notion_status first — it reports what is reachable, which credential is in use, and what this package deliberately will not do.

Credentials

For most interactive coding-agent users, the simplest setup is Notion's official hosted MCP server at https://mcp.notion.com/mcp: it supports browser OAuth and needs no copied integration token. Use that through pi-mcp-adapter instead of this extension when OAuth is the priority; loading both creates duplicate tool surfaces.

This REST extension remains useful for its smaller curated tool surface and explicit write confirmations. Its cleanest setup is interactive and keeps the secret out of the model conversation:

/notion-login

The command uses a masked prompt, validates the credential with the provider, then stores it with 0600 permissions.

$NOTION_TOKEN (or $NOTION_API_KEY), else ~/.pi/agent/integration-auth.json — written by /notion-login, 0600, beside Pi's own auth.json.

An integration only sees pages that have been shared with it. A page you can see in the browser and the tool cannot is almost always this, not a bug.

Blocks are reduced, and say when they are

Notion has around thirty block types. This renders about eight and labels the rest unsupported rather than dropping them, because a page that silently omits blocks looks complete when it is not.

Writes ask first

Every write calls Pi's ctx.ui.confirm and shows you the full text before anything leaves your machine.

| Where you are | What happens | | ------------------------------------- | -------------------------------------------------------------------------------------- | | A Pi TUI session | a confirmation dialog | | A host app speaking Pi's RPC protocol | the request arrives as extension_ui_request; the app renders it however it likes | | pi -p (non-interactive) | refused, because nobody can be asked. Pass yes: true if you have already decided |

That last row matters: in print mode ctx.ui.confirm returns false without prompting, so a naive implementation would report "you declined" when nobody was ever asked. This one tells you which happened.

notion_connect has no yes escape hatch, deliberately. A flag that skips confirmation on a credential-storing tool is one injected instruction away from an attacker's token being used for all your writes.

What it deliberately will not do

Published in describe().refuses, and a test asserts each is genuinely absent from the source — so the list cannot become a lie. Run notion_status to see it.

Using it from your own code

src/ has no Pi dependency, so a UI can render its view models without going through a tool call:

import { NOTION_DESCRIPTION } from "@parke.dev/pi-notion";

NOTION_DESCRIPTION declares every segment, every field on a row, and every refusal — so a UI can render a panel for this provider with no provider-specific code, and a conformance test fails the build if it stops being true.

Status words, never colour alone

Every status is a word a reader can read. Colour is decoration on top. A red dot says nothing to a screen reader, and nothing to someone who cannot distinguish it from the green one.