Modules@robinpath/notion

@robinpath/notion

0.1.1Public

Notion module for RobinPath.

@robinpath/notion

Notion module for RobinPath.

Category Functions Auth License

Why use this module?

The notion module lets you:

  • Retrieve a Notion page by ID.
  • Create a new page in a database or as a child of another page.
  • Update properties of an existing page.
  • Archive (soft-delete) a Notion page.
  • Query a Notion database with optional filters and sorts.

All functions are callable directly from RobinPath scripts with a simple, consistent API.

Installation

npm install @robinpath/notion

Quick Start

1. Set up credentials

notion.setToken "ntn_xxx"

2. Retrieve a Notion page by ID.

notion.getPage "page-id-here"

Available Functions

FunctionDescription
notion.setTokenSet the Notion integration token.
notion.getPageRetrieve a Notion page by ID.
notion.createPageCreate a new page in a database or as a child of another page.
notion.updatePageUpdate properties of an existing page.
notion.archivePageArchive (soft-delete) a Notion page.
notion.queryDatabaseQuery a Notion database with optional filters and sorts.
notion.getDatabaseRetrieve a Notion database schema.
notion.getBlocksGet child blocks of a page or block.
notion.appendBlocksAppend child blocks to a page or block.
notion.deleteBlockDelete a block by ID.
notion.searchSearch across all pages and databases the integration has access to.

Examples

Retrieve a Notion page by ID.

notion.getPage "page-id-here"

Create a new page in a database or as a child of another page.

notion.createPage "db-id" {"Name":{"title":[{"text":{"content":"New Page"}}]}}

Update properties of an existing page.

notion.updatePage "page-id" {"Status":{"select":{"name":"Done"}}}

Integration with RobinPath

import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/notion";

const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);

const result = await rp.executeScript(`
  notion.setToken "ntn_xxx"
  notion.getPage "page-id-here"
`);

Full API Reference

See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.

Related Modules

License

MIT

Versions (1)

VersionTagPublished
0.1.1latestyesterday
Install
$ robinpath install @robinpath/notion
Version0.1.1
LicenseMIT
Unpacked Size5.2 KB
Versions1
Weekly Downloads0
Total Downloads0
Stars0
Last Publishyesterday
Createdyesterday

Category

productivity