You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support serverless runtimes for ServerBlockNoteEditor #2173
Is your feature request related to a problem? Please describe.
I'm trying to parse and manipulate data in a non-node runtime. It's in a Convex function (serverless browser-like environment, similar to deno / cloudflare worker / other v8-powered runtimes).
The ServerBlockNoteEditor tries to access things like "fs" and "events" which do not exist there. Trying to use BlockNoteEditor.create() directly used to work, until v0.38.0 introduced an import-time dependency on decode-named-character-reference which runs document.createElement at import time.
Describe the solution you'd like
Either remove the node dependencies from ServerBlockNoteEditor if they're not critical, or make a ServerlessBlockNoteEditor which is lightweight enough to be loaded in serverless environments.
Describe alternatives you've considered
Remove the import-time dependency on decode-named-character-reference (will file separately).
The easiest way to get the prosemirror schema is what you were already doing, create an instance and pull the schema out. This would not help you to have it be a separate function, since it would just do literally the same thing.
Thanks for the quick reply! Separately from getting the prosemirror schema, being able to manipulate the document in a non-node serverless environment would be great. I was falling back on prosemirror primitives as a way to get around the lack of ServerBlockNoteEditor functions. Users have asked for help on how to do server edits, e.g. as part of server-driven AI workflows.
Glad it's being tracked already
Activity
ianmacartney commentedon Nov 13, 2025
Another idea is to expose a function to get the prosemirror schema from BlockNote extensions, similar to
getSchemafrom @tiptap/corenperez0111 commentedon Nov 13, 2025
This is already tracked by: #942
The easiest way to get the prosemirror schema is what you were already doing, create an instance and pull the schema out. This would not help you to have it be a separate function, since it would just do literally the same thing.
ianmacartney commentedon Nov 13, 2025
Thanks for the quick reply! Separately from getting the prosemirror schema, being able to manipulate the document in a non-node serverless environment would be great. I was falling back on prosemirror primitives as a way to get around the lack of ServerBlockNoteEditor functions. Users have asked for help on how to do server edits, e.g. as part of server-driven AI workflows.
Glad it's being tracked already