Akan.js 3.2

Release note · Nov 15, 2026

Akan.js 3.2: agents on the server, closed by default

3.2 moves the agent from the page into the server, and closes whatever nobody decided to open. It also draws your app as a map for people and for coding agents, teaches the editor the names Akan derives, and makes every page lighter. This post walks through seven changes in plain words, then lists what to check when you upgrade from 3.1.

What's new

Seven changes worth knowing

01

An agent that runs on your server

The agent no longer needs an open screen to work.

Until 3.2 the agent lived in the page and worked the screen a person had open. agentService.loop runs one inside your server instead, over the same tools your app publishes at /mcp, as one account. It can do only what that account may do, so a scheduled job, a webhook or a chat in another channel can each hand work to an agent.

You name the tools a run may use and group the rest into toolkits it opens when a task needs them. A run can call other MCP servers, use the screen a member has open, or stop to ask the person a question and pick up when they answer. Text it reads from someone else counts as untrusted: after that, a write runs only if your code approves it.

The agent works inside the server
A scheduled job and a member each hand work to an agent that runs inside the server and calls the app's own tools.
In a service
for await (const event of this.agentService.loop({  account,  allow: ["orderListInSelf", "refundOrder"],  messages: [{ role: "user", text: "Refund my last order." }],})) {  if (event.type === "text") reply += event.delta;}

MCP Agent chat

02

Your whole app on one map

Models, endpoints and pages, drawn from the source and linked back to it.

The Akan Graph describes an app straight from its source, with no server running: models, scalars, slices, endpoints with their guards, services, jobs, routes and layouts. A coding agent asks for it with the get_graph tool, and with a git revision it gets only what changed since then. It reads a map instead of opening files one by one.

For people there is Akan Studio. akan start serves it at /_akan/studio: the ERD, request paths, a map of your changes and a map of the framework, each linked to its source, plus the running server's services and jobs.

One map, read from the source
The source is read into one map of models, endpoints and pages, with the links between them drawn.
Terminal
akan start myappakan studio myapp --open

Agent context tools akan studio

03

An editor that knows Akan's names

Go to definition works on names you never wrote.

Akan derives many names from your models: fetch.initMemoInPublic, st.do.setNameOnMemo, this.memoService.listByName. An editor used to see generated code and stop there. The new @akanjs/language package resolves each name to the model, slice or field it came from, and ships a language server any editor can run.

The VS Code and Cursor extension builds on it. It opens a module's files side by side, runs akan verify and workflows from the editor, and opens Studio.

VS Marketplace Open VSX

04

Closed unless you open it

An endpoint nobody decided on answers 403.

An endpoint, a slice query or a realtime room that declares no guard used to be open to anyone. In 3.2 it is refused, and a deployed server stops at boot and names each one. Write [Public] where anonymous access is the intent, and the decision stays visible in the code.

The same rule runs through the release. The in-page agent asks before every write, not only before a removal. A session token is sent only to your own origin. akan start listens on this machine alone. A production error page shows a code, never a stack trace. Each change names the setting that brings the old behaviour back.

No guard, no entry
A caller passes the door marked Public and reaches the endpoint, while the door with no guard stays locked.
lib/story/story.signal.ts
export class StoryEndpoint extends endpoint(srv.story, ({ query }) => ({  featuredStory: query(cnst.Story, { guards: [Public] }).exec(async function () {    return await this.storyService.getFeaturedStory();  }),})) {}

Guards on endpoints Auth

05

Every page starts lighter

72 KB less framework code on every server-rendered page.

That is 22 KB less over the wire once compressed, with nothing to change in your code. The browser also learns sooner what a page needs: its scripts are announced in the page head, a link starts loading its page when the pointer reaches it, and each font family preloads a single face.

To keep it that way, the build records how much JavaScript each route loads. akan build --check-budget fails when a route grows past its record, so a heavy import is caught in the pull request that adds it.

Terminal
akan build myapp --check-budget

akan build

06

Realtime that holds under load

One busy client can no longer use up a server.

Live data now has limits. A socket holds at most 256 rooms, one caller 2,000 per process, and one model 50,000 live rooms. A subscribe past a limit gets a clear 429 answer instead of slowing everyone else down.

Recovery got attention too. After a Redis outage a room resyncs once Redis is back, a socket that went away keeps at most 100 queued messages, and with Redis each room and model gets a channel of its own.

Realtime

07

Desktop on Linux, and a fix for Android 12

External views reach Linux, and apps launch again on Android 12.

A desktop app can now show an external view, another site inside the app, on Linux under both Wayland and X11, and send key presses to it. A Linux AppImage relaunches itself, and the crash at launch on Android 12 and 12L is fixed.

Native builds follow the closed-by-default rule as well. They ship a content security policy, open only https, mailto and tel links outside the app, and check a downloaded desktop update again before installing it.

Native setup Desktop release

Fixed along the way

  • A dev page keeps its styles when a stylesheet change arrives together with a page rebuild.
  • A page that renders a string of 1,024 characters or more renders and hydrates correctly.
  • A page cut off by a visitor who left, or one that streamed an error, is no longer cached.
  • A crafted forwarded header can no longer stall the server while it reads the client address.
  • akan verify and akan build reuse the typecheck cache, so a second run is quicker.
  • create-akan-workspace no longer hangs when akan is not on the PATH.

Upgrading from 3.1

3.2 keeps the requirements of 3.1: Bun 1.4.4 or newer and React 19.3.1. Update the workspace, verify each app and library, and refresh the agent guide. Many defaults became narrower, so go through the list below before you deploy.

Terminal
akan updateakan verify <app-or-lib>akan agent install
  1. 1

    Give every endpoint a guard

    An endpoint, slice query or pubsub room with no guards answers 403, and a deployed server stops at boot and names each one. Add [Public] where anonymous access is intended. AKAN_UNGUARDED_ENDPOINTS=open answers them as before while you fix them.

    Details
  2. 2

    Update the CLI with the workspace

    A CLI whose major.minor differs from the workspace's akanjs refuses every command that writes: run akan update. A script that tested for exit code 1 should test for non-zero, since a usage error is 2 and a failed check is 3.

    Details
  3. 3

    Check errors with Err.is

    Every Err is one class from akanjs/common, and err.code is always set. Between a page bundle and the framework, test with Err.is rather than instanceof. Err.NotFound.is also requires status 404.

    Details
  4. 4

    Re-tune log alerts

    A failure under 500 logs at warn, and a declared error, a 429 or a read of a missing id logs at debug. Alerts and --level error filters see fewer lines than before.

    Details
  5. 5

    Prune old indexes once

    A boot keeps an index the release no longer declares and warns about it. After every instance runs 3.2, run akan migrate <app> prune-indexes once.

    Details
  6. 6

    Transactions keep to themselves

    Work outside an open this.transaction() no longer sees its uncommitted rows, on SQLite too, and a loader no longer shares a batch with it. SqliteDatabase.getMeta and listMeta return promises, so await them.

  7. 7

    Realtime and request limits

    A subscribe past the room limits gets a 429 frame coded liveRoomLimit. An idle connection closes after 120 s, and a body is capped at 128 MiB for an upload and 16 MiB otherwise: AKAN_IDLE_TIMEOUT, AKAN_MAX_UPLOAD_BODY and AKAN_MAX_REQUEST_BODY change them.

    Details
  8. 8

    akan start listens on this machine

    akan start binds 127.0.0.1, and the dev server answers only localhost, *.localhost and IP hosts. AKAN_LISTEN_HOST=* and AKAN_ALLOWED_HOSTS open it to other devices on your network.

  9. 9

    Agent writes ask first

    In-page agent tools that write, such as submit, create, update, send and export, confirm before they run: pass { confirm: false } to one that should not. A FetchClient sends its token only to its own origin: use clone({ origin, jwt }) for another.

    Details
  10. 10

    Switches and library copies

    Field.Switch is the primary color when on; variant="accent" brings the old look back. If you copied shared or util with akan install-library, compare your copy with the refreshed one.

    Details

The changelog has every option, env variable and deprecated name. Once you are on 3.2, the 3.3 post lists what to check next.

Read the full changelog Read what changed in 3.3

Released under the MIT License

Connect your AI to these docs

MCPhttps://akanjs.com/mcp
Copyright © 2026 Akan.js All rights reserved.System managed bybassman