Sudo

Realtime website generator

Open Sudo

Sudo streams and renders interfaces generated just-in-time.

user intent -> app will be created on the fly. right now it’s 3 months with a team of ~3. soon ~1 and 1 minute.

Jan 2026 (in 2025 the pages were at /generate/<slug>)
  1. URL how-gears-…
  2. Prompt How Gears … in the browser
  3. POST /api/completion
  4. Model { html } one typed object
const result = streamObject({
  model: google(
    MODEL_CONFIG.model),
  mode: 'json',
  system: systemPrompt,
  prompt,
  schema: htmlSchema,
});
The model's JSON streams back as plain text; an iframe, rewritten with every chunk; nothing saved
  1. fixJson closes " then }
  2. JSON.parse { html }
  3. doc.write, doc.close the HTML parser closes the open tags a page, already colored, under the veil
doc.open();
doc.write(html);
doc.close();
As the HTML grows, all of it blurred, under a fading white veil
  1. Blurred 24 - length/350 px from the first character
  2. Clear 8,400 characters or when the stream ends
CSS in the head, as the schema asks; the script usually last, the model's habit
  1. <style> colors, layout
  2. <body> panels
  3. <script> cut off, it waits
  4. </script> it runs the canvas draws