The compiler and the server runtime run in your browser.
1 2 3 4 5 6 7 8 9 10 11
<script> import { $memo, $signal } from 'brumate/signals'; let count = $signal(0); const double = $memo(count * 2); </script> <h1>A counter</h1> <button onClick=(() => count++)>Clicked {count} times</button> <p>Double: {double}</p>
The files run once the page loads.