Skip to content

BlockNote Compatibility with Cloudflare Workers (V8 Runtime) #2136

Closed

Description

@tm0h

Description

We're attempting to use BlockNote in a Cloudflare Worker environment (using Hono.js framework) with real-time collaboration powered by y-partyserver. The core blocker is that JSDOM is not available in the Cloudflare Worker V8 runtime, which causes multiple BlockNote features to fail when executed server-side.

Root Cause

Cloudflare Workers V8 runtime does not support JSDOM, which are required by several BlockNote utilities. This affects any server-side BlockNote operations in edge computing environments.

Current Setup

  • Framework: Hono.js
  • Runtime: Cloudflare Workers (V8)
  • Collaboration: y-partyserver package

Issues Affected

1. Block Parsing from Collaboration Data

Problem: Converting Yjs collaboration data to JSON format (for persistence or synchronization) requires BlockNote's block parsing utilities, which depend on JSDOM.

2. Markdown to Blocks Conversion

Problem: BlockNote's markdown-to-blocks conversion feature relies on JSDOM manipulation functions not available in V8.

Additional Context

This is an increasingly common use case as more developers deploy to edge computing platforms like Cloudflare Workers. Having V8-compatible utilities would make BlockNote accessible to serverless and edge computing environments, expanding its applicability beyond browser-only contexts.

Activity

  1. nperez0111 commented on Oct 28, 2025

    @nperez0111
    Contributor

    Unfortunately, at this time we need JSDOM (or other DOM parsing libraries) to have the editor run on the server side.

    At this point the only recommendation I can make is to consider using a node server for this, perhaps by using Cloudflare containers or other container runtimes

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