FEATURES:
The agent sees & operates UI. Annotate what agent can access (links, inputs, buttons), so agent sees it and can assist user with UI operations or even automate it with scripting.
~>neui.Use{ Desc:"submit the form" } <button>Submit</button>
or expose context data for the agent: <div class="card">
~neui.Data{Text: "the product shown in the card", Object: product}
...
</div>
Dynamic tools, right in the markupSame way as you render a button to the user, you give the agent a tool. No endpoints or lifecycle management needed.
~(if user.IsAdmin() {
~neui.Tool[Refund, Receipt]{
Name: "refund",
Desc: "Refund the order",
Handler: orders.Refund,
}
})
Work environmentIsolated file workspaces and sandboxed scripting ("code mode") out of the box.
Agentic apps
When a user needs something your UI doesn't have, agent builds it on demand.
Complete chat experience
Thread list, history, message edits, full-text search, a message queue and automatic compaction.
Batteries included
MCP connector, web search and .xlsx tools, rich building blocks library for generative apps.
COMPARED TO COPILOT KIT:
- Agent thread runs on the server, so browser can't rewrite the history/tools to use your LLM backend + less traffic and faster tool-loops
- System prompt and provided tool list do not change during operation - it caches and stays hot (because it's usually the same for all your users!)
- Pull-based, targeted UI sync; agent monitors only parts of UI that are relevant to the task (compared to full state attached to any user message)
- Neui is already a harness with its own sandbox - just bring your model.
- For generative UI agent writes a small app on specialized micro framework; agent doesn't need to answer each click or load user input/API responses into context
- CON: Is not stack-agnostic, like AG-UI stuff
TRY IT:
The repo has a demo app with all of this:
git clone https://github.com/doors-dev/neui && cd neui
DEEPSEEK_API_KEY=... go run ./examples/business-systems/backoffice
Then open http://localhost:8095. Claude, GPT, Gemini, DeepSeek and any OpenAI-compatible provider will work.STATUS:
Both doors and neui are Apache-2.0. I released the first version about 3 weeks ago, so it's early and I am still optimizing some system instructions. Neui itself took me 3 months, on top of the 2 years I spent on the framework underneath (it's awesome, btw), which made it possible.