Simple Notion ORM is a schema-first TypeScript ORM for Notion's Data Sources API, built on top of @notionhq/client. Current version 0.0.15 is early and experimental, with no stable release cadence. It provides Drizzle-inspired table definitions, column builders (text, number, status, relation, people, and metadata helpers), and two page abstractions (standalone pages and database rows) with typed codecs for parsing and encoding Notion payloads. Requires Node.js >= 22 and pnpm; ESM-only. Key differentiator: turns Notion's flexible but verbose API into a typed, Drizzle-like workflow with automatic payload transformation.
npm install simple-notion-ormNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Defines a Notion table schema using Drizzle-style column builders, inserts a row, and selects all rows.
Upgrade Node.js to v22 or later.
Use import syntax or dynamic import() if in a CJS context.
Use import { text } from 'simple-notion-orm/schema'.Use { databaseId: string } as the third argument to defineTable.Change to import syntax or use dynamic import() in a CommonJS module.
Ensure Node.js >= 22 and update the package to the latest version 0.0.15.
Use text('Name').title().