Skip to content

jdan/notion-script-blocks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

script-blocks

"Script" "Blocks" in Notion

Usage

As a heads up, this barely works at all.

Get started by duplicating my public "script blocks" template. There, you'll find that script blocks have an incredibly specific format (subject to change).

> (gear icon) script name
  ## script
  --
  [code block]
  ## input
  --
  [at least one line of text]
  --
  ## ouput
  [empty line - this is where the output will go]
  [empty line (yes, another one!)]

Then in Notion, do the following:

git clone https://github.com/jdan/notion-script-blocks.git
npm i
NOTION_SECRET=[your token here] NOTION_PAGE=[your id here] node main.js

Hackerz

eval is dangerous. eval on a node server is even more dangerous. Don't share your pages with the internet.

a code block with the script

About

script blocks in notion

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published