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

@rusintez/notion

v1.0.0

Published

Simple CLI wrapper for Notion API - supports multiple workspaces

Readme

@rusintez/notion

Simple CLI wrapper for Notion API. Supports multiple workspaces. Markdown I/O by default.

Install

npm install -g @rusintez/notion

Or run directly with npx:

npx @rusintez/notion --help

Setup

Create a Notion integration at https://www.notion.so/my-integrations and grab the token:

notion config add work ntn_xxx
notion config add personal ntn_yyy
notion config default work

Or use env var for one-off commands:

NOTION_TOKEN=ntn_xxx notion me

Important: Share pages/databases with your integration in Notion (page menu → Connections → Add your integration).

Usage

Config Management

notion config list              # List all workspaces
notion config add <name> <tok>  # Add/update workspace
notion config remove <name>     # Remove workspace
notion config default <name>    # Set default workspace

Search

notion search "meeting notes"           # Search all pages & databases
notion search "project" -t page         # Pages only
notion search "tracker" -t database     # Databases only
notion search "budget" -n 10            # Limit results

Databases

notion databases                        # List accessible databases (alias: dbs)
notion database <id>                    # Query a database (alias: db)
notion db <id> -n 100                   # Limit results
notion db <id> -s "Status"              # Sort by property
notion db <id> -s "Created" --asc       # Sort ascending

Pages

notion pages                            # Recently edited pages
notion pages -n 50                      # More results
notion page <id>                        # Page with full content (markdown)
notion page <id> --no-content           # Properties only, skip blocks

Create & Update

# Create page in a database
notion create-page -d <database-id> --title "New task"
notion create-page -d <database-id> --title "Bug" -p '{"Status":{"select":{"name":"Open"}}}'

# Update page
notion update-page <page-id> --title "Updated title"
notion update-page <page-id> -p '{"Status":{"select":{"name":"Done"}}}'
notion update-page <page-id> --archive

# Append content to a page
notion append <page-id> "Some paragraph text"
notion append <page-id> "- Bullet one\n- Bullet two\n- [ ] Todo item"

Output Formats

notion pages                # Markdown table (default) - readable
notion pages -f json        # JSON - best for parsing/scripting
notion pages -f minimal     # Minimal - one item per line, tab-separated

Multi-workspace

notion -w work pages              # Use 'work' workspace
notion -w personal search "notes" # Use 'personal' workspace

Output

  • Markdown (default): Tables for lists, formatted objects for details
  • JSON (-f json): Machine-readable, ideal for scripting
  • Minimal (-f minimal): Tab-separated, one item per line
  • Errors go to stderr with exit code 1

Sync (Local Data Cache)

Sync Notion data to local JSON files for offline access, searching, and integration with other tools.

notion sync                     # Incremental sync all workspaces
notion sync --full              # Full sync (re-fetch all, detect deletions)
notion sync -w work             # Sync specific workspace only
notion sync -c pages,databases  # Sync specific collections only

Data is stored at ~/.local/share/notion/{workspace}/{collection}/{id}.json

Synced Collections

  • databases - Databases with schema and properties
  • pages - All pages with properties and extracted title
  • users - Workspace members

Sync Management

notion sync-status              # Show sync status for all workspaces
notion sync-status myworkspace  # Status for specific workspace
notion sync-reset myworkspace   # Reset state (next sync = full)

Config Location

~/.config/notion-cli/config.json

License

MIT