@openctx/provider-notion
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Notion context provider for OpenCtx

This is a context provider for OpenCtx that provides Notion results as context via the mentions and items APIs.

Usage

Add the following to your settings in any OpenCtx client:

"openctx.providers": {
    // ...other providers...
    "https://openctx.org/npm/@openctx/provider-notion": {
        "auth": "<your notion bot access token>"
    }
},

See https://developers.notion.com/docs/getting-started to get set up with a token for the Notion API.

Remember to add your integration to a page such that it can search that page and all sub pages.

Configuration

This provider configuration is a subset of the configuration for the NotionHQ JavaScript client:

  • auth :: Bearer token for authentication. Required.
  • logLevel :: Verbosity of logs the client will produce. Levels are "debug", "info", "warn" (default) and "error".
  • timeoutMs :: The number of milliseconds to wait before timing out an API call to Notion. Defaults to 60000.

Development

Readme

Keywords

none

Package Sidebar

Install

npm i @openctx/provider-notion

Weekly Downloads

3

Version

0.0.6

License

Apache-2.0

Unpacked Size

63.2 kB

Total Files

5

Last publish

Collaborators

  • mualam
  • sourcegraph-bot
  • keegan-src
  • sqs