Booting the JSUI runtime…

JSUI: game UI in React Native, rendered everywhere

JSUI is an open-source (MIT), embeddable UI runtime for games. Write ordinary React Native (import { View, Text } from 'react-native'), then ship it inside your engine through a small C API: Godot 4, your own C or C++ renderer, or the browser via WebAssembly. JavaScript runs on QuickJS, Yoga lays out the views and Skia paints them. This whole site is rendered by JSUI's WebAssembly build into one canvas, with no DOM and no CSS in the UI.

Source code, documentation and issues: github.com/orktes/jsui. A summary for AI assistants: llms.txt.

Runs in

Features

Get started

npx @orktes/jsui-cli skill install        # add the JSUI agent skill to your project
npm install --save-dev @orktes/jsui-cli   # the CLI, @orktes/jsui-react and the headless runtime
npx jsui dev src/app.jsx                  # dev server with hot updates
npx jsui build src/app.jsx -o dist/bundle.js
npx jsui screenshot src/app.jsx -o shot.png

npm packages: @orktes/jsui-react (the React Native API), @orktes/jsui-cli (build, dev server, headless tools and the agent skill) and @orktes/jsui-web (the browser host and its WebAssembly modules).

On this site