2026-11-27 16:13 UTC

Neui packages a server-side AI agent into Go web apps

state: seedheat: mediumuncertainty: mediumrelevance: mediumagent-native-web go-framework ai-agentsdoors-dev

What is this?

Neui is an open-source Go web framework and AI-agent stack from doors-dev, built on the Doors framework; its GitHub repository and the project’s Show HN post describe it as Apache-2.0 licensed. Announced on Show HN on Nov. 27, 2026, the project says developers can mark which page elements and data an agent may use, expose server-side tools subject to user permissions, and let the agent build task-specific apps in a sandboxed workspace. The repository documents chat, file and spreadsheet handling, scripting, web search, and MCP connectors, and says users can bring supported models or OpenAI-compatible providers. The post says the first version had been released about three weeks earlier, so this is an early project, not a newly verified production deployment. Evidence is primarily the project’s own repository and author post; web results add no independent validation.

Why it matters

Neui explores a consequential design direction: making an agent part of the web app’s runtime, with access scoped where developers define the UI and its permissions, rather than bolting a chat interface onto a separate agent stack. If the design works as described, users could ask for workflows or screens the app did not explicitly ship, while generated apps operate through existing authorized tools. Its Go-and-Doors constraint and early status limit its reach today; security, reliability, and claimed efficiency benefits remain to be independently evaluated.

Current assessment

New: doors-dev presents Neui as an available Apache-2.0 Go module for Doors apps, with a demo and provider integrations described in the repository. The core proposition is server-side agent execution: developers annotate UI elements and context the agent may read or operate, and register tools in the app with user- and screen-dependent permissions. The agent can also write sandboxed task-specific apps using declared components and functions. The project claims server-held conversation state and tools prevent browser-side rewriting, and that prompt caching and scripts reduce token costs and model turns; the repository estimates input costs 6–14 times lower than some copilots, but supplies no independent measurements here. The Show HN author says the first release was about three weeks old and that system instructions were still being optimized. No supplied evidence establishes adoption, comparative security, or production performance. Track implementation maturity and independent testing, especially permission enforcement and sandbox boundaries; the supported implication is a potentially simpler agent integration path for Go teams, not a general-purpose or stack-agnostic framework.

Measured heat

now 0 pts/hpeak 5 pts/hcomments 0/hpeers p34momentum: steady2 platformsage 23h
points/hour across evidence · reading as of 2026-11-28 02:25:52.099640+11:00 · deterministic, not a model opinion

How the heat travelled

11-26 16:21 (minted)⭐ origin echo-reconstructedThe Neui repository presents a Go web framework and built-in agent stack, where developers expose permitted UI elements and tools for an age
doors-dev on github (echo) · attributed from hn.story.50656688 · published time unknown
—
11-26 16:09first on hacker news · published · lag ?Show HN: Neui – Go web apps with a built-in AI agent
derstruct
—
11-26 16:09amplified on hacker news 👑hn.story.50656688
derstruct
peak 1 · 0 comments · 104% of case engagement
11-26 16:20our radar first saw it · lag ?discovery anchor: hn.story.50656688—
pace: p18 vs 1456 stories at the 12h mark (now 23h old) — behind agent-alley-social-experiment (0.5x)

Evidence (2) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnShow HN: Neui – Go web apps with a built-in AI agent
Retrieved article excerpt

Open article · Retrieved 2026-11-26T16:21:19.341740+00:00

# Neui: an AI agent built into your Go web app

[Go Reference](https://pkg.go.dev/neui.dev)

[neui-demo-alt-10fps](https://private-user-images.githubusercontent.com/85024896/720274613-461d6346-e5a8-476e-9267-5493d1459ee5.gif?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3OTU3MTAzNzgsIm5iZiI6MTc5NTcxMDA3OCwicGF0aCI6Ii84NTAyNDg5Ni83MjAyNzQ2MTMtNDYxZDYzNDYtZTVhOC00NzZlLTkyNjctNTQ5M2QxNDU5ZWU1LmdpZj9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjExMjYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYxMTI2VDE2MjExOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxM2U0YWVhZWZiZDcwNjhmMzY0NzY1M2ZiNGM1NTdlYTZlZWMxMWFmMTgzZGM0YzZjZmEwY2RiZDkwZjg0NWMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JnJlc3BvbnNlLWNvbnRlbnQtdHlwZT1pbWFnZSUyRmdpZiJ9.HeBObymPdBHIwQHDYAZb8XSJiA8PHGJWplX3Vj1HHVc)

Neui is an AI agent and a web framework built as one stack. The framework, [Doors](https://github.com/doors-dev/doors) (Apache-2.0), lets Go teams build modern interactive apps with no separate frontend and no API layer. Neui adds the agent: it runs inside the user's session, sees the parts of the page you let it see, operates the UI like a user, and brings its own work environment for the jobs a chat alone cannot do.

Every feature you build for users is instantly usable by the agent, with a work environment powerful enough to automate the work your users do by hand.

## Contents

- [What you get](https://github.com/doors-dev/neui#what-you-get)
- [Runtime](https://github.com/doors-dev/neui#runtime)
- [Agentic Apps](https://github.com/doors-dev/neui#agentic-apps)
- [Chat](https://github.com/doors-dev/neui#chat)
- [Work environment](https://github.com/doors-dev/neui#work-environment)
- [Compared with CopilotKit and Vercel AI SDK](https://github.com/doors-dev/neui#compared-with-copilotkit-and-vercel-ai-sdk)
- [Getting started](https://github.com/doors-dev/neui#getting-started)

## What you get

### The agent operates your UI

Developers mark which parts of the page the agent may see and use, right in the existing markup. The agent then clicks, types and reads like a user, and the app's own logic runs. There is no per-action code to write and no state to mirror.

### Capability-based tools with reactive permissions

A tool is one Go function that runs on the server, with no endpoint or permission code to write. Developers decide what the agent can see and do right where they build the UI, so its access is scoped to each user and updates with the screen.

### An agent work environment

The agent gets its own file workspace, scripts that run bulk UI work in one step, spreadsheets, web search, MCP connectors, background tasks, and automatic handling of long conversations. One script can call every tool and work across the whole UI in a single step.

### Agentic apps

When a user needs functionality your UI doesn't have, the agent builds it on the spot, anything from a single screen to a specialized app. It runs in the page with the user's permissions, and the agent stays in the loop to make the decisions.

### Fully-featured chat

Your users get the chat experience they already know from chat apps, with nothing to build or purchase.

### Cheaper to run

The conversation is prompt-cache friendly, so input costs an estimated 6 to 14 times less than in copilots that rebuild the prompt for every screen, depending on the provider's cache pricing. Built-in scripts do bulk work without extra model turns or context bloat.

### The browser can't steer the agent

The conversation, instructions and tools live on the server, and the browser sends only the user's new message. A tampered browser can't add tools, rewrite history or change what the agent is told.

## Runtime

Every open page runs on the server, integrated with the agent harness. You mark in the page template what the agent may see and use.

**Works the real UI.** The agent reads, fills and clicks the elements you mark, as the user would, and your handlers run as usual. There's no state to mirror and no action to re-implement.

```
~>neui.Use{
    Desc: "Customer's email",
    // RW: the agent reads the value in the user's browser or writes its own.
    Rights: neui.RW,
} <input type="email" name="email">
```

**Tools in the template.** Register agent tools right in the page template, based on the UI context and the user's permissions.

```
~(if user.IsAdmin() {
    ~neui.Tool[Refund, Receipt]{
        Name: "refund",
        Desc: "Refund the order",
        Handler: orders.Refund,
    }
})
```

**Persistent tools.** Go functions registered for the whole app or for one session are available in every chat. The built-in work environment works the same way.

```
crm := neui.NewModule("crm", "Customer records of the signed-in user")
crm.Tool("find", "Find a customer by name or email", customers.Find)
```

**Page context.** Attach data to a part of the page to tell the agent what it shows, such as the records in a view or hints on how to use it.

```
~neui.Data{
    Text: "Open orders of this customer",
    Object: orders,
}
```

**App events.** Your app can tell the agent when something happens, such as a payment arriving. An idle agent reacts right away, and a busy one picks it up on its next turn.

```
neui.Instance(ctx).Emit(ctx, "payment_received", map[string]string{"invoice": id}, nil)
```

**Stays in sync without token waste.** The framework tracks tools, data and elements as the page changes, and the agent reads them only when it needs to.

## Agentic Apps

An agentic app is a program the agent writes and runs for the user in an island, a region of the page. You declare the island in the page template and give it the components and Go functions its apps may use.

```
~neui.Island{
	Name:     "workbench",
	Desc:     "Apps for the user's invoice work",
	Template: func(slot gox.Comp) gox.Elem { return <section>~(slot)</section> },
	Library: func(l neui.Library) error {
		l.Tool("overdue", "Overdue invoices, one page at a time", invoices.Overdue)
		l.Tool("remind", "Send a payment reminder", invoices.Remind)
		return nekit.IslandRegisterAll(l)
	},
}
```

- **The agent writes a program.** It builds an app for the user's request from your component library and the tools you declare, and runs it right away.
- **The model is called only for decisions.** The app handles user actions itself and calls the agent only when a decision is needed. The UI stays responsive, no tokens are spent on routine steps, and the agent is still in the loop.
- **Data stays out of the context.** The agent works with data through the app's script, without loading it into its context. Data costs no tokens, and text inside it can't steer the agent.
- **App changes on the fly.** The user can ask for an extra column, another step or a different check, and the agent updates the running app without losing their work.
- **Runs with the user's permissions.** The app is sandboxed and can do only what the signed-in user can, through the components and functions you declared, with no endpoints to build.

**Widgets included.** `neui.dev/nekit` includes a general-purpose widget set built to cover any business flow, from data entry to review and reporting. It takes your theme from CSS variables, and your own components work alongside it.

- **Layout.** Columns, rows and grids that compose widgets into typical layouts.
- **Form.** Declarative forms for any purpose: every field type, groups, repeatable lists and multi-step flows, with live validation.
- **Table.** A full-featured data table with paging, sorting, search, row selection and row actions.
- **Markdown cards.** A universal output block for text, tables, images and file downloads, plain or as a card, info, success, warning or danger.

**Compared with declarative generative UI.** In A2UI and similar formats the model describes the screen, and every user action is another model turn. That suits a one-off screen such as a confirmation. An agentic app is cheaper and faster as soon as the user does more than a few things.

## Chat

Neui ships a complete chat experience out of the box. Use it as is, configure its theme and features, or fork it to build something of your own.

- **Controls users already know.** Stop a run, edit and resend a message, queue the next one while the agent works, or duplicate a thread to try another path.
- **Persistence out of the box.** History, the thread list and search are built in. Use the included storages or plug in your own.
- **Runs on the server.** The conversation, the running answer and the agent's tools live on the server, and the browser only displays them. Nothing sensitive reaches the client, and a reload or a second tab picks up where the user left off.
- **Files both ways.** Users attach files to a message, and the agent returns finished files as downloads in its answer.
- **Long conversations keep working.** Older turns are summarized in the background when the context fills up, without interrupting the user.
- **Task management and more.** Background jobs show in the chat and can be cancelled, the agent can ask questions with ready answers, and your app can notify the agent when something happens.

## Work environment

Besides the chat and the page, the agent has a workspace on the server for real work.

- **Filesystem.** Each chat gets its own sandboxed filesystem, where the agent reads uploads, unpacks archives and builds new files for the user to download.
- **Scripts for bulk work.** The agent writes one script that calls its tools and works across the page, so updating 300 invoices takes a single model call.
- **Spreadsheets.** The agent reads large .xlsx files and turns raw exports into finished reports with totals, charts and highlighting.
- **Web and connectors.** The agent reads web pages, searches through a service you connect, and uses the tools of your MCP servers.
- **Background tasks.** Long operations run in the background, and the agent picks up each result when it arrives, so the user keeps chatting.
- **Contained and configurable.** Resources are capped, and you choose which tools each app or user gets.

## Compared with CopilotKit and Vercel AI SDK

The usual alternatives are CopilotKit (plus paid Intelligence), Vercel AI SDK with Sandbox, assistant-ui, OpenAI ChatKit, LangGraph with Agent Server, browser agents and WebMCP. For a Go team each of them means bolting on a React island, CopilotKit and a Node runtime: a second stack.

Each row was checked against neui's code and the competitors' current docs and source. Competitor cells describe the default open-source path.

| Capability | Neui | CopilotKit | Vercel AI SDK |
| --- | --- | --- | --- |
| Agent operates the UI | **Yes.** Developers mark, right in the UI template, which elements the agent may see and use; no per-action code is needed. | **Partial.** One hand-written frontend tool per action | **No.** Fully hand-wired: each UI action needs a tool on the server and a handler in the browser |
| Agent work environment | **Built in.** Its own files and scripts; one script can call every tool and work across the whole UI in a single step | **No.** One tool call per action; sandbox only through a third-party service; files need own wiring | **Partial.** Code can call your tools, with Claude only; paid cloud sandbox; files need own wiring |
| Agentic apps | **Agent-written app.** Built from your components, it runs on the server, handles clicks and data itself, and calls the model only when a step needs judgment | **Model per click, or a free-form page.** The model fills your components and each click starts a new agent run. Or it writes its own web page, reaching your data through functions the developer registers | **Model picks a tool, you pre-wire the screen.** The model calls one of your tools and your component shows the result. Clicks run code you wrote in advance; the
derstruct10
🟧 echo.github ⭐The Neui repository presents a Go web framework and built-in agent stack, where developers expose permitted UI elements and tools for an agedoors-dev——

Interpretation history

Decision trace