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!