Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
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

latest
Source
npmnpm
Version
0.4.1
Version published
Maintainers
1
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