Skip to content

React renderer for Zed's GPUI using Bun native FFI. Build native GPU-accelerated UIs with React, running directly on GPUI runtime

License

Notifications You must be signed in to change notification settings

fzdwx/gpui-react

Repository files navigation

gpui-react

React renderer for GPUI (Zed's GPU-accelerated UI) using Bun native FFI.

Quick Start

# not yet
bun add gpui-react react

the code:

import { createRoot } from "gpui-react";

createRoot({ width: 800, height: 600 }).render(
    <div style={{ backgroundColor: "#1e1e1e", padding: 40 }}>
        <div style={{ color: "#ffffff", fontSize: 24 }}>Hello World</div>
    </div>
);
20260110-201047.mp4

Demos

See demo/ for complete examples.

bun run build:rust && bun run copy:native  # compile native lib
bun run event-demo                         # Event handling
bun run drawing-demo                       # Drawing board
bun run canvas-demo                        # Canvas drawing

Requirements

About

React renderer for Zed's GPUI using Bun native FFI. Build native GPU-accelerated UIs with React, running directly on GPUI runtime

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •