What is Backroad?
You write a Node.js script that declares your UI by calling methods on a typed br proxy. Backroad ships a pre-built React frontend that renders your tree over a WebSocket and feeds user interactions back to your script. One Node process, no glue code.
import { run } from '@backroad/backroad';
run((br) => {
br.write({ body: '# Hello, world' });
if (br.button({ label: 'Click me' })) {
console.log('clicked!');
}
});