Skip to content

Support serverless runtimes for ServerBlockNoteEditor #2173

Closed

Description

@ianmacartney

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).

Additional context

Tracking it for Collaborative Document Editor Convex component here: convex/prosemirror-sync#187

Bonus
[ ] I'm a sponsor and would appreciate if you could look into this sooner than later 💖

Activity

  1. ianmacartney commented on Nov 13, 2025

    @ianmacartney
    Author

    Another idea is to expose a function to get the prosemirror schema from BlockNote extensions, similar to getSchema from @tiptap/core

  2. nperez0111 commented on Nov 13, 2025

    @nperez0111
    Contributor

    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.

  3. ianmacartney commented on Nov 13, 2025

    @ianmacartney
    Author

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions