{"id":18952583,"url":"https://github.com/jdan/notion-script-blocks","last_synced_at":"2026-03-29T12:30:21.350Z","repository":{"id":145189769,"uuid":"417622039","full_name":"jdan/notion-script-blocks","owner":"jdan","description":"script blocks in notion","archived":false,"fork":false,"pushed_at":"2021-10-15T20:26:59.000Z","size":5,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-01T02:41:33.206Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jdan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-10-15T20:07:56.000Z","updated_at":"2022-04-09T08:27:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"65dc7b0f-4e85-4e36-af58-2fa9440970ff","html_url":"https://github.com/jdan/notion-script-blocks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnotion-script-blocks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnotion-script-blocks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnotion-script-blocks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jdan%2Fnotion-script-blocks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jdan","download_url":"https://codeload.github.com/jdan/notion-script-blocks/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239952598,"owners_count":19723922,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-08T13:34:02.184Z","updated_at":"2026-03-29T12:30:19.273Z","avatar_url":"https://github.com/jdan.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## script-blocks\n\n\"Script\" \"Blocks\" in [Notion](https://notion.so)\n\n\u003cimg alt=\"\" width=\"600\" src=\"https://user-images.githubusercontent.com/287268/137547890-88e955b0-e998-41f2-ad09-bdec2d5a7a15.gif\"\u003e\n\n### Usage\n\nAs a heads up, this barely works at all.\n\nGet started by duplicating [my public \"script blocks\" template](https://jdan.notion.site/Script-blocks-template-cb43702f8d0e4113bce926529bd12d71). There, you'll find that script blocks have an incredibly specific format (subject to change).\n\n\u003cimg alt=\"\" width=\"600\" src=\"https://user-images.githubusercontent.com/287268/137548463-bb371acf-0f2c-4634-8689-69af5bcea64a.png\"\u003e\n\n```\n\u003e (gear icon) script name\n  ## script\n  --\n  [code block]\n  ## input\n  --\n  [at least one line of text]\n  --\n  ## ouput\n  [empty line - this is where the output will go]\n  [empty line (yes, another one!)]\n```\n\nThen in Notion, do the following:\n\n- [Create a new Notion integration](https://developers.notion.com/docs/getting-started#step-1-create-an-integration)\n- Create a new page and note its ID from the address bar\n  - `https://www.notion.so/[username]/[your page ID!]`\n- [Share that page with your new integration](https://developers.notion.com/docs/getting-started#step-2-share-a-database-with-your-integration)\n- Run the script\n\n```sh\ngit clone https://github.com/jdan/notion-script-blocks.git\nnpm i\nNOTION_SECRET=[your token here] NOTION_PAGE=[your id here] node main.js\n```\n\n### Hackerz \n\n`eval` is dangerous. `eval` on a node server is even more dangerous. Don't share your pages with the internet.\n\n\u003cimg alt=\"a code block with the script \" width=\"600\" src=\"https://user-images.githubusercontent.com/287268/137547928-c1fc44fe-4eb7-47c6-bf33-fdc222d2b65c.png\"\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdan%2Fnotion-script-blocks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjdan%2Fnotion-script-blocks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjdan%2Fnotion-script-blocks/lists"}