Skip to main content
Home

Built and signed on GitHub Actions

Import Notion pages into your Eleventy project

This package works with Node.js, Deno, Bun
This package works with Node.js
This package works with Deno
This package works with Bun
JSR Score
100%
Published
3 months ago (0.0.5)
type alias BuilderOptions

Options passed to the page builder class. Configures the underlying Notion client. Structural options and formatting options are passed to individual methods.

Properties

The integration secret for your Notion workspace. This must be set up as described in https://developers.notion.com/docs/create-a-notion-integration. In a nutshell:

  1. Head to https://www.notion.com/my-integrations.
  2. Add a new integration.
  3. Give it a name, and select "internal" for the integration type.
  4. Recommended: reduce the permissions to be read-only.

Now you should be able to reveal and copy your "Internal Integration Secret". This secret should not be committed to your version control software; that means, do not set this option to a string directly. Instead, configure a secret or environment variable and use that, for example, integrationSecret: process.env.MY_NOTION_SECRET.

By default (i.e. if you do not pass this option at all) the plugin looks for an environment variable by the name of NOTION_INTEGRATION_SECRET. If your environment specifies this variable already, and you don't want that to be used, set this option explicitly using an environment variable under a different name, as described above.

optional
notionClientOptions: Omit<Record<string, unknown>, "auth">

An object of properties to pass down to the underlying Notion client. Notably, the auth option must not be supplied; it is read from the integrationSecret option. Also, this package specifies its own custom fetch option, in order to work with Notion's rate limits of ~3 requests per second. It is recommended not to overwrite that.

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@vrugtehagel/eleventy-from-notion

Import symbol

import { type BuilderOptions } from "@vrugtehagel/eleventy-from-notion";
or

Import directly with a jsr specifier

import { type BuilderOptions } from "jsr:@vrugtehagel/eleventy-from-notion";

Add Package

pnpm i jsr:@vrugtehagel/eleventy-from-notion
or (using pnpm 10.8 or older)
pnpm dlx jsr add @vrugtehagel/eleventy-from-notion

Import symbol

import { type BuilderOptions } from "@vrugtehagel/eleventy-from-notion";

Add Package

yarn add jsr:@vrugtehagel/eleventy-from-notion
or (using Yarn 4.8 or older)
yarn dlx jsr add @vrugtehagel/eleventy-from-notion

Import symbol

import { type BuilderOptions } from "@vrugtehagel/eleventy-from-notion";

Add Package

vlt install jsr:@vrugtehagel/eleventy-from-notion

Import symbol

import { type BuilderOptions } from "@vrugtehagel/eleventy-from-notion";

Add Package

npx jsr add @vrugtehagel/eleventy-from-notion

Import symbol

import { type BuilderOptions } from "@vrugtehagel/eleventy-from-notion";

Add Package

bunx jsr add @vrugtehagel/eleventy-from-notion

Import symbol

import { type BuilderOptions } from "@vrugtehagel/eleventy-from-notion";