Notion API library focused on retrieve database pages as a Headless CMS (like Strapi, Storyblok, Sanity ...) In addition to API calls, process some Notion content blocks for an easily rendering with whatever tech stack you want
- Simple methods for list pages metadata, retrieve page metadata with content, or recover all pages with its content
- Works with both public and private Notion content
- Example script available which shows how to export Notion content to json file
└── notion-headless-cms/
├── .eslintignore
├── .eslintrc.cjs
├── .gitignore
├── .vscode/
│ ├── extensions.json
│ └── settings.json
├── LICENSE
├── examples/
│ └── fetch-and-store.ts
├── package.json
├── pnpm-lock.yaml
├── src/
│ ├── cms.test.ts
│ ├── cms.ts
│ ├── helpers.mocks.ts
│ ├── helpers.test.ts
│ ├── helpers.ts
│ ├── main.ts
│ └── vite-env.d.ts
├── tsconfig.json
└── vite.config.ts
- Node.js v18
- ESLint + Prettier
- Typescript v5
- Vite + Vitest, for compile and testing
- Image Size, for process images block metadata and obtain type and measures
This project is licensed under the ℹ️ MIT
License. See the LICENSE file for additional info.
Free Software, Hell Yeah!