Skip to content

About custom mind on notion, custom notion-mindmap, notion-mind-server

License

Notifications You must be signed in to change notification settings

TheOne1006/notion-mind

Repository files navigation

notion mind

  1. synchronize with your notion.
  2. notion doc -> md -> mind html
  3. custom mindmap in notion

example:

Deploy

Deploy with Vercel

on server:

cp .env.example .env
# edit .env
yarn start

usage

  1. select page to you integrations
  2. copy page id
  3. create link
    • mind page: <you site url>/markmap/<page id>
      • you can disable cache with query ?disableCache=true
    • api: <you site url>/api/page2md?pageId=<page id>

Env

# notion Integration Secret
NOTION_TOKEN=xx
# cache dir
CACHE_FILE_DIR='cache/dir'
# file top division
CACHE_FILE_DIVISION="----##==========-----info-----==========##----"
# cache enable 1 hour
CACHE_DURATION=36000000

Cache File

examples.md

----##==========-----info-----==========##----
expired: 1709084988674
timestamp: 1709048988674
----##==========-----info-----==========##----

# demo

- this is a demo page

Getting Started

run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Base On

Create Notion Token

  1. https://www.notion.so/my-integrations
  2. create integrations

example in notion

image