Socket
Book a DemoInstallSign in
Socket

@duocrafters/notion-database-zod

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@duocrafters/notion-database-zod

A Notion Database to Zod converter

0.4.1
latest
Source
npmnpm
Version published
Weekly downloads
28
-89.74%
Maintainers
1
Weekly downloads
 
Created
Source

notion-database-zod

Generate Zod schema for Notion database pages, in TypeScript.

Installation

npm i @duocrafters/notion-database-zod
# or
pnpm add @duocrafters/notion-database-zod

The package is ESM. Use Node 18+ (recommended) and "type": "module" or a TS/ESM-compatible bundler.

Quick start

Generate a page schema from a Notion database

import { generateDatabaseSchema } from '@duocrafters/notion-database-zod';

const schema = await generateDatabaseSchema(
  'YOUR_DATABASE_ID',
  { auth: process.env.NOTION_TOKEN! }, // ClientOptions for @notionhq/client
);

License

MIT

Keywords

notion

FAQs

Package last updated on 21 Aug 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.