ReactBridge — React/Next.js Bridge's icon

ReactBridge — React/Next.js Bridge 1.0.1 Scripts 4.0 Community

Submitted by user zed; MIT; 2026-04-02

A GDScript Autoload singleton enabling bidirectional, event-driven communication between a Godot 4 WebAssembly game and a React / Next.js parent window via postMessage.

Works alongside the react-godot-bridge npm package (npmjs.com/package/react-godot-bridge).

USAGE:
• Receive from React:
ReactBridge.on_react_event.connect(_on_event)

• Send to React:
ReactBridge.emit_to_react("player_died", { "score": 1500 })

FEATURES:
- Bidirectional postMessage transport
- JSON envelope protocol with secret key validation
- Origin restriction for production security
- Decoupled signal bus — scenes connect to signals, no browser awareness needed

INSTALL:
Enable the plugin in Project → Plugins, then add ReactBridge as an Autoload in Project Settings.


View files Download Submit an issue Recent Edits