{"id":36832125,"url":"https://github.com/defensestation/blocknote-code","last_synced_at":"2026-01-12T14:15:26.410Z","repository":{"id":235899324,"uuid":"791506218","full_name":"defensestation/blocknote-code","owner":"defensestation","description":"Code block plugin for blocknote.","archived":false,"fork":false,"pushed_at":"2025-07-29T19:12:26.000Z","size":7759,"stargazers_count":30,"open_issues_count":4,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-09-08T16:51:44.975Z","etag":null,"topics":["blocknote","code","code-editor"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defensestation.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"code_of_conduct.md","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,"zenodo":null}},"created_at":"2024-04-24T20:54:38.000Z","updated_at":"2025-08-10T06:46:56.000Z","dependencies_parsed_at":"2024-12-07T18:18:36.467Z","dependency_job_id":"d1a98d93-60f4-4913-98f8-d5cade69c97b","html_url":"https://github.com/defensestation/blocknote-code","commit_stats":null,"previous_names":["defensestation/blocknote-code"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/defensestation/blocknote-code","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defensestation%2Fblocknote-code","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defensestation%2Fblocknote-code/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defensestation%2Fblocknote-code/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defensestation%2Fblocknote-code/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defensestation","download_url":"https://codeload.github.com/defensestation/blocknote-code/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defensestation%2Fblocknote-code/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28340386,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T12:22:26.515Z","status":"ssl_error","status_checked_at":"2026-01-12T12:22:10.856Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["blocknote","code","code-editor"],"created_at":"2026-01-12T14:14:40.847Z","updated_at":"2026-01-12T14:15:26.399Z","avatar_url":"https://github.com/defensestation.png","language":"TypeScript","funding_links":[],"categories":["Tools"],"sub_categories":["Plugins"],"readme":"# Code block for Blocknote\n\n![Stability Badge](https://img.shields.io/badge/stability-stable-green.svg)\n![](https://badgen.net/badge/Version/v1.0.0/blue)\n\nCode block for [Blocknote](https://www.blocknotejs.org/).\n\n![](assets/demo.gif)\n\n## Demo\n\n[A demo is worth a thousand words](https://codesandbox.io/p/devbox/blocknote-code-kk2y4j?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clvebdczr00072v6e9ufjvm7r%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clvebdczq00022v6exqxznz0z%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clvebdczq00042v6euh7qtl9x%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clvebdczq00062v6es5j51tw3%2522%257D%255D%252C%2522sizes%2522%253A%255B100%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clvebdczq00022v6exqxznz0z%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvebdczp00012v6e7uf9tnwh%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%257D%255D%252C%2522id%2522%253A%2522clvebdczq00022v6exqxznz0z%2522%252C%2522activeTabId%2522%253A%2522clvebdczp00012v6e7uf9tnwh%2522%257D%252C%2522clvebdczq00062v6es5j51tw3%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvebdczq00052v6eczn2qkhm%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_PORT%2522%252C%2522taskId%2522%253A%2522dev%2522%252C%2522port%2522%253A5173%252C%2522path%2522%253A%2522%252F%2522%257D%255D%252C%2522id%2522%253A%2522clvebdczq00062v6es5j51tw3%2522%252C%2522activeTabId%2522%253A%2522clvebdczq00052v6eczn2qkhm%2522%257D%252C%2522clvebdczq00042v6euh7qtl9x%2522%253A%257B%2522id%2522%253A%2522clvebdczq00042v6euh7qtl9x%2522%252C%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clvebdczq00032v6e4v1zufb8%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%255D%252C%2522activeTabId%2522%253A%2522clvebdczq00032v6e4v1zufb8%2522%257D%257D%252C%2522showDevtools%2522%253Atrue%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D)\n\n## Installation\n\n### Install via YARN\n\nGet the package\n\n```shell\n$ yarn add @defensestation/blocknote-code\n```\n\n\n\n## Usage\n\nInclude module at your application\n\n```javascript\nimport { CodeBlock, insertCode } from \"@defensestation/blocknote-code\";\n```\n\nCreate schema with code block.\n```javascript\nconst schema = BlockNoteSchema.create({\n   blockSpecs: {\n    ...defaultBlockSpecs,\n    procode: CodeBlock,\n  },\n});\n```\n\nAdd slash menu item.\n```javascript\n\u003cBlockNoteView\n    editor={editor}\n    slashMenu={false}\n  \u003e\n    \u003cSuggestionMenuController\n      triggerCharacter={\"/\"}\n      getItems={async (query) =\u003e\n        filterSuggestionItems(\n          [...getDefaultReactSlashMenuItems(editor), insertCode()],\n          query\n        )\n      }\n    /\u003e\n  \u003c/BlockNoteView\u003e\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefensestation%2Fblocknote-code","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefensestation%2Fblocknote-code","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefensestation%2Fblocknote-code/lists"}