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

@helpnest/notion

v0.1.2

Published

Migrate Notion pages to HelpNest

Readme

@helpnest/notion

Migrate your Notion pages and databases into HelpNest — the open-source customer help center.

Converts Notion databases → HelpNest Collections and Notion pages → HelpNest Articles. Supports incremental/resumable migrations via a local state file.

Installation

npm install -g @helpnest/notion
# or run directly
npx @helpnest/notion <command>

Prerequisites

  1. Notion integration token — Create one at notion.so/my-integrations, then share the relevant pages/databases with your integration.
  2. HelpNest API key — Generate one from your HelpNest dashboard under Settings → API Keys.

Setup

cp .env.example .env
# Edit .env with your credentials

Commands

list-databases

List all Notion databases your integration can access:

npx @helpnest/notion list-databases --notion-key secret_xxx

Use the database IDs from this output with the --database flag.

migrate

Migrate Notion content into HelpNest:

# Migrate a specific database
npx @helpnest/notion migrate \
  --notion-key secret_xxx \
  --helpnest-url https://help.yourcompany.com \
  --helpnest-key hn_live_xxx \
  --workspace your-workspace-slug \
  --database your-notion-database-id

# Migrate all accessible pages
npx @helpnest/notion migrate \
  --notion-key secret_xxx \
  --helpnest-url https://help.yourcompany.com \
  --helpnest-key hn_live_xxx \
  --workspace your-workspace-slug

# Dry run — preview without writing
npx @helpnest/notion migrate ... --dry-run

# Resumable — saves progress to a state file
npx @helpnest/notion migrate ... --state ./migration-state.json

Flags:

| Flag | Description | |------|-------------| | --notion-key | Notion integration token (or NOTION_API_KEY env var) | | --helpnest-url | Your HelpNest base URL | | --helpnest-key | HelpNest API key | | --workspace | HelpNest workspace slug | | --database <id> | Migrate a specific Notion database (omit for all pages) | | --dry-run | Preview without creating anything | | --state <file> | State file for resumable migrations (default: ./notion-migration-state.json) | | --collections-only | Create collections only, skip article content |

How it works

  1. Collections — Each Notion database becomes a HelpNest Collection. The database title and any emoji icon are preserved.
  2. Articles — Each Notion page becomes a HelpNest Article. Content is converted from Notion blocks to Markdown using notion-to-md.
  3. State file — A JSON file tracks which Notion items have been migrated. Re-running the command skips already-migrated items, making it safe to resume interrupted migrations.

What gets migrated

| Notion | HelpNest | |--------|----------| | Database | Collection | | Page | Article | | Page title | Article title | | Page content (blocks → Markdown) | Article body | | Page emoji icon | Collection emoji | | First 160 chars of content | Article excerpt |

What doesn't migrate

  • Notion sub-pages nested inside pages (only database-backed pages are migrated)
  • Notion properties beyond the title (e.g., tags, status, custom fields)
  • Inline databases or synced blocks
  • File/media attachments (converted to placeholder links)

Contributing

PRs welcome! See CONTRIBUTING.md.

License

MIT © HelpNest Contributors