frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: MUP – Stop making LLMs rebuild UI from scratch every time

1•Ricky_Tsou•1h ago
We posted MUP here 4 days ago as a protocol spec. Since then we built a basic agentic system on top of it to demonstrate the idea in action.

The problem: every time an LLM needs a chart, it generates chart code. Need a canvas? Generate canvas code. Need an editor? Generate editor code. Every conversation starts from zero. Nothing is reusable. The LLM burns tokens on boilerplate, and the result is fragile — one wrong CSS line and it breaks. Worse, the AI can't see or react to what the user does with the generated UI.

MUP is the opposite approach. A MUP is a pre-built .html file with declared functions. You build a chart MUP once, and every LLM can use it forever — by calling `renderChart(data)`, not by writing 200 lines of Chart.js setup. The LLM doesn't generate UIs. It operates them.

This changes what the LLM spends its intelligence on. Instead of fighting with CSS and rebuilding the same components over and over, it focuses on behavior — reading user interactions, deciding what to do, orchestrating between panels.

How the protocol works:

A MUP is a standard HTML file with a JSON manifest in a `<script type="application/mup-manifest">` tag. The manifest declares the MUP's name, description, and functions with JSON Schema inputs. That's it — the LLM never sees the HTML or CSS, only these declarations.

The host loads the MUP in an iframe, injects a tiny SDK (`mup.*`), and the MUP registers its function handlers. From there, two things can happen: (1) the LLM calls a function — the host routes it to the MUP, the UI updates, and the result goes back to the LLM. (2) The user interacts with the UI — the MUP calls `mup.notifyInteraction()`, which feeds a message into the LLM's context so it can react.

That's the entire protocol. No RPC framework, no streaming protocol, no handshake negotiation. A MUP declares what it can do; a host decides what to allow. ~400 lines of spec.

What's new since our post 4 days ago:

We built mup-agent, a local Node.js agent to show this working end-to-end. The agent loop runs on pi-agent-core, with pi-ai handling multi-provider LLM calls. Each MUP's declared functions are automatically registered as agent tools. When the LLM calls a tool, the agent routes it to the right MUP via WebSocket; when the user interacts with a MUP, the interaction is fed back into the agent loop. The browser is just a rendering surface — chat on the left, a grid of MUP iframes on the right.

You activate a pixel art canvas and a chart. You draw something. The LLM notices, analyzes it, and populates the chart — no prompt needed. The MUPs are reusable UI; the LLM is pure behavior.

  git clone https://github.com/Ricky610329/mup.git
  cd mup/mup-agent && npm install
  echo "ANTHROPIC_API_KEY=sk-ant-..." > .env
  npm start
16 built-in MUPs: chess, pixel art, drum machine, slides, kanban, file workspace, camera, voice, and more. Works with Anthropic, OpenAI, Google, Groq, xAI.

Spec (~400 lines): https://github.com/Ricky610329/mup/blob/main/spec/MUP-Spec.m... Design philosophy: https://github.com/Ricky610329/mup/blob/main/spec/MUP-Philos... Repo: https://github.com/Ricky610329/mup

Why Self-Hosting AI Models Is a Bad Idea [video]

https://www.youtube.com/watch?v=pWtDTkfNaUU
1•el_hacker•1m ago•0 comments

Officer reportedly leaks location of French aircraft carrier with Strava run

https://www.bbc.co.uk/news/articles/cd9vdel17wqo
1•chrisjj•5m ago•1 comments

Tech Companies Are Blaming Layoffs on AI. What's Going On?

https://singularityhub.com/2026/03/19/tech-companies-are-blaming-massive-layoffs-on-ai-whats-real...
2•Brajeshwar•5m ago•0 comments

Mole (macOS App)

https://github.com/tw93/mole
1•rpgbr•7m ago•0 comments

To AI and Back

https://rolisz.ro/2026/to-ai-and-back-part-1/
1•speckx•7m ago•0 comments

Waymo crosses 170M autonomous miles with zero serious crashes

https://www.techbuzz.ai/articles/waymo-crosses-170m-autonomous-miles-with-zero-serious-crashes
2•gmays•7m ago•0 comments

A 'Frozen' Dictionary for Python

https://lwn.net/Articles/1047238/
1•PaulHoule•9m ago•0 comments

There's No Way the American West Will Have a Normal Summer

https://www.theatlantic.com/science/2026/03/west-heat-wave/686457/
1•JumpCrisscross•9m ago•0 comments

Open Gauss is a project-scoped Lean workflow orchestrator from Math Inc

https://github.com/math-inc/OpenGauss
1•wslh•10m ago•1 comments

Uv Has No Neutral Home. That Worries Me More Than OpenAI

https://drodil.medium.com/uv-has-no-neutral-home-that-worries-me-more-than-openai-2bead6344f00
2•drodil•11m ago•0 comments

Kuberna Labs – Open-source SDK for autonomous cross-chain AI agents

https://github.com/kawacukennedy/kuberna-labs
2•n3on250•11m ago•0 comments

A Satisfied Customer Review of the Yogurtia

https://brainbaking.com/post/2026/03/a-satisfied-customer-review-of-the-yogurtia/
1•Tomte•12m ago•0 comments

Nvidia NemoClaw

https://www.nvidia.com/en-us/ai/nemoclaw/
1•JumpCrisscross•14m ago•0 comments

Visual Studio Code 1.112

https://code.visualstudio.com/updates/v1_112
1•tosh•15m ago•0 comments

How (not) to waste a morning with AI Agent

https://gist.github.com/ontouchstart/c06789fa8722c62ba2d5e6a1f7d0690f
1•ontouchstart•15m ago•1 comments

Obsidian and Claude: a match made in heaven

https://blog.dmcc.io/journal/obsidian-claude-personal-assistant/
1•speckx•16m ago•0 comments

Jensen Huang Urges Engineers to Spend Tokens

https://letsdatascience.com/news/jensen-huang-urges-engineers-to-spend-tokens-43c3b809
2•_____k•16m ago•0 comments

User claims access to 10 petabytes of China's military secrets

https://netaskari.substack.com/p/chinas-massive-data-leak-of-military
3•giuliomagnifico•19m ago•0 comments

Clearview Cam Lite: Free and Real-time Cam Engine to see through fog-rain-snow

https://apps.apple.com/us/app/clearview-cam-lite/id6760249427
1•photurion•19m ago•0 comments

The Good, the Bad, and the Leaky: jemalloc, bumpalo, and mimalloc in meilisearch

https://blog.kerollmops.com/the-good-the-bad-and-the-leaky-jemalloc-bumpalo-and-mimalloc-in-meili...
3•g0xA52A2A•20m ago•0 comments

Having Kids

https://paulgraham.com/kids.html
3•Anon84•21m ago•0 comments

How to Spot a Liar: Kate White on the Techniques of Deception in Mysteries

https://crimereads.com/how-to-spot-a-liar-kate-white-on-the-techniques-of-deception-in-mysteries/
1•ohjeez•23m ago•0 comments

Moral metrics: Are corporate algorithms becoming our new moral authorities?

https://phys.org/news/2026-03-moral-metrics-corporate-algorithms-authorities.html
1•Brajeshwar•23m ago•0 comments

Show HN: VersityGW COSI Driver – Manage S3 Buckets as Kubernetes CRDs

https://github.com/isac322/versitygw-cosi-driver
1•isac322•23m ago•0 comments

Show HN: Colloquium – a Markdown-native slide tool for academics

https://github.com/natolambert/colloquium
1•natolambert•24m ago•0 comments

Show HN: Cpt-city, an archive of colour gradients

https://phillips.shef.ac.uk/pub/cpt-city/
1•jjgreen•25m ago•0 comments

When Writing Code Is No Longer the Bottleneck

https://xudong963.github.io/when-writing-code-is-no-longer-the-bottleneck/
2•xudong963•26m ago•1 comments

Is AI Em Dash Addiction Real? A Model Comparison

https://blog.mikegchambers.com/posts/llm-em-dash-obsession/
1•aspittel•26m ago•1 comments

BYD Claims Five-Minute EV Charging with New Battery Tech

https://www.autoweek.com/news/a70640835/byd-five-minute-ev-charging/
2•ohjeez•28m ago•0 comments

Super Micro Shares Plunge 25% After Co-Founder Charged in $2.5B Smuggling Plot

https://www.forbes.com/sites/tylerroush/2026/03/20/super-micro-shares-plunge-25-after-co-founder-...
8•pera•29m ago•0 comments