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
BlockNote Compatibility with Cloudflare Workers (V8 Runtime) #2136
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.
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
Activity
nperez0111 commentedon Oct 28, 2025
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