Skip to main content
Internal tools. Just code. An io.display.table call next to the Users page of the demo backoffice, where it shows the All users table AwaitIO is a backoffice written just like regular API routes. Each action is an async TypeScript function, like a route handler. Instead of reading a request, every await on io asks a person in the browser and waits for the answer. There is no frontend to build. The same Node process serves the UI, so there is nothing else to host.

What you write

actions/accounts/createAccountAction.ts

What people see

The form shows what io.group asked for. It is the same action in the demo, whose db stands in for your Prisma client:
The Create account action: store and owner fields filled in for Juniper Tea, with a Continue button
Continue sends the answers to the server, which validates them and resumes the handler. Its return value is the result:
The result of Create account: the new account, its plan, the end of its trial and who got the invitation

Bring your codebase

A handler is a plain async function that runs in your own Node process, so everything your app already has works inside it. Bring along:
  • your database: the Prisma client, the ORM or the queries you already use;
  • your business logic: the services and rules your product runs on, without copying them;
  • logic shared with your API or GraphQL: the same functions your resolvers and endpoints call;
  • your internal tools: scripts, utilities, environment variables and any npm package.
AwaitIO only adds io to ask a person and ctx to know who it is.
actions/refundOrderAction.ts
Nothing has to be wrapped, exported to another service or rewritten: between two await io calls it is just your code.