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

notion-db-notification-sender-slack

v0.1.4

Published

notion-db-notification slack sender package

Downloads

37

Readme

notion-db-notification

CI npm version
This cli tool is that notify created or updated page of notion database.

When you run the CLI tool, it will notify you of changes since the last time you ran it.

Usage

Install

npm install -g notion-db-notification-cli

Setup

Create config file:

scheme: 'v0'
notion:
  token: 'notion_token' # your notion token
  interval: 1000
store:
  type: 'file'
  path: 'path' # path of cli tool's state file
senders:
  - type: 'slack'
    token: 'slack_token' # your slack token, required scope is chat:write
channels:
  - name: 'name' # channel name
    slack_id: 'slack_id' # your slack channel id
sources:
  - database: 'database_id' # your notion database id
    channel: 'channel_name' # channel name

Store providers

File provider

File provider is read/write local store state file.

store:
  type: 'file'
  path: 'path' # path of cli tool's state file
GitHub provider

GitHub provider is read/write github repository store state file. (using Contents API)

# using your personal access token
store:
  type: 'github'
  path: 'path' # path of cli tool's state file
  owner: 'owner' # owner name of github repository
  repository: 'repository' # repository name of github repository
  token: 'token' # github token
# using your github app token
store:
  type: 'github'
  path: 'path' # path of cli tool's state file
  owner: 'owner' # owner name of github repository
  repository: 'repository' # repository name of github repository
  applicationId: 1 # github app id
  installationId: 1 # github app's installation id
  privateKey: 'privateKey' # github app's private key

Initialization

notion-db-notification {config_yml_file_to_path} -i

This command is to add database state if not managed. So, recommend to execute this command every execution.

Running

notion-db-notification {config_yml_file_to_path}

if you want to dry-run: you can use -d option
notion-db-notification {config_yml_file_to_path} -d

Advanced

Secure token

if you avoid to write token to config file, you can use environment variable.

notion:
  token: 'env:NOTION_TOKEN' # environment variable name is NOTION_TOKEN
  interval: 1000
senders:
  - type: 'slack'
    token: 'env:SLACK_TOKEN' # environment variable name is SLACK_TOKEN
store:
  type: 'github'
  token: 'env:GITHUB_TOKEN' # environment variable name is GITHUB_TOKEN
store:
  type: 'github'
  privateKey: 'env:GITHUB_APP_PRIVATE_KEY' # environment variable name is GITHUB_APP_PRIVATE_KEY

Ratelimit for Notion API

Notion API has Rate limits.
ref: https://developers.notion.com/reference/request-limits#rate-limits

So, this tool can be set interval milli seconds for api call.

notion:
  token: 'notion_token' # your notion token
  interval: 1000 # recommend range of 500~1500

Recipe

Notify empty title page

config file:

sources:
  - database: 'database_id' # your notion database id
    channel: 'channel_name' # channel name
    filter: 'page.properties["YOUR_TITLE_PROPERTY_NAME"].title.length == 0' # replace YOUR_TITLE_PROPERTY_NAME

Development

  • install: npm install
  • add package:
    • npm init -w packages/xxx
    • add manually reference at package.json
    • change properties at new package.json
    • add reference root tsconfig.json
    • npm run reference
    • add npm run copy:xxx command
    • change .github/bump.yml
  • publish: npm publish --access public --workspaces

License

This repository is under MIT License

including libraries: