Every React stack hands you tools. asasvirtuais hands you decisions.
That's the difference, and it's why it does one job better than everything else: building product features with a coding agent.
Why it exists
Every new project, I solved the same basic problems from scratch: where the state lives, how a form reaches the server, how lists stay fresh after a save, where the permission check goes, where each file goes. No framework solved them for me.
Then AI coding arrived and made it worse. A model has no sense of direction, so it solves those problems differently every time you ask.
So I wrote my answers down and turned them into a framework. Only afterwards did I notice what I had rebuilt: the thing that made PHP win. One unified path from the page to the form to the database. Same idea, now in React, with types, made for agents.
asasvirtuais runs on five principles. Here's each one against everything else.
1. Less code
Everything else: a feature is an endpoint (or a procedure, or a server action), a fetch, a local copy of the data, a loading flag, an error flag, a cache key and an invalidation. Then the same again for the next field.
Marking a todo as done in a typical Next.js app:
// actions.ts
'use server'
export async function setTodoDone(id: string, done: boolean) {
const user = await currentUser()
const todo = await db.todos.find(id)
if (todo.author !== user.id) throw new Error('Forbidden')
await db.todos.update(id, { done })
revalidatePath('/todos')
}
// component
const [done, setDone] = useState(todo.done)
const [pending, startTransition] = useTransition()
<input type='checkbox' checked={done} disabled={pending} onChange={() => {
setDone(!done)
startTransition(() => setTodoDone(todo.id, !done))
}} />
asasvirtuais: a feature is a form on top of a table.
<UpdateForm table='todos' schema={schema} id={todo.id}>
{toggle => (
<input type='checkbox' checked={todo.done} disabled={toggle.loading}
onChange={() => toggle.callback({ done: !todo.done })} />
)}
</UpdateForm>
Five server actions, find, list, create, update and remove, are the whole backend, and every form talks to them. Code you don't write is code your agent can't get wrong.
2. No manual state management
Everything else: you copy server data into useState, Redux slices or a query cache, then spend the rest of the project keeping the copies honest with invalidateQueries, revalidatePath, refetch-on-focus and hand-written optimistic updates.
asasvirtuais: every table has one reactive index. Operations return rows into it, and every list and detail view of that table follows. The page, a Server Component, fetches the rows it shows and hands them down. Components read them synchronously and never fetch on mount.
// app/todos/page.tsx
export default async function TodosPage() {
const todos = ok(await list({ table: 'todos', query: { done: false } }))
return (
<TodosProvider asAbove={index(todos)}>
<Todos />
</TodosProvider>
)
}
// components/todos/component.tsx
export function Todos() {
const { array } = useTodos()
return array.map(t => <TodoProvider key={t.id} id={t.id}><TodoItem /></TodoProvider>)
}
The agent guide that ships with the framework puts it in one line: cache invalidation is avoided rather than handled.
3. Stateless by design
Everything else: a server function computes something, saves it, updates two other tables and sends a notification, all in one go. A status column mirrors a relation and needs a job to stay correct. A three-step form gets a state machine or a workflow engine.
asasvirtuais:
- A server action does one thing and returns the result. An LLM call, an external API, a computation. It doesn't save. A form saves the result through the CRUD.
- A CRUD operation touches one table. That table's middleware decides who may run it, and that's all it does.
- Derived state is read, not written. Whether a project has open todos is a query, not a column someone has to keep updated.
- Simple workflows are nested forms. An inner form runs its step and writes its result into the outer form, which saves once. If a step fails, the user clicks again.
It's also stateless on the agent side. Every coding agent session starts with no memory of the last one. It doesn't need any, because the framework holds the memory.
4. Fewer decisions for the robot
Everything else: conventions are suggestions. Folder structure, naming, where auth goes, what to call the hook. The agent picks, and picks differently next session.
asasvirtuais: every decision has an answer before the code is written.
- Every table is a package with the same files:
schema,fields,forms,components,providers,hooks,middleware. - Every component is a directory, with its server actions next to it.
- Hooks are
useTodos()anduseTodo(). Forms areCreateTodo,UpdateTodo,DeleteTodo. A one-click update isToggleTodo. - Authorization lives in one middleware per table. Anything that isn't CRUD is a server action next to the component that calls it.
The agent guide even tells the agent what not to decide: build only what was asked, and ask the human about UI instead of inventing it.
Fewer choices mean the same structure every time, and less to review.
5. AI-driven feature-driven development
Feature-driven development has always meant: model the domain, then build feature by feature. asasvirtuais makes the order part of the framework, in five stages:
- Data modeling. Each feature's tables become packages, starting with the Zod schema.
- Layout. Routes, layouts and page skeletons, each page providing the tables it shows.
- Pages, forms and server actions.
- Middleware and authorization. Last, on purpose: while you prototype, the UI changes every iteration, and rules written early get rewritten every time.
- Workflows and custom features. The only place hand-written state management belongs.
A human team runs this as a four-week sprint. An agent runs the same order in hours. Either way, every feature lands in the same shape.
Side by side
| Everything else | asasvirtuais | |
|---|---|---|
| Backend | one endpoint, procedure or action per operation | five CRUD actions, one middleware per table |
| Client state |
useState, slices, query caches kept in sync by hand |
one reactive index per table |
| After a save | invalidate, revalidate, refetch | nothing |
| Loading data | components fetch on mount | pages hand rows down |
| Authorization | inside each handler | in the table's middleware |
| Multi-step flows | state machines, workflow engines | nested forms |
| File structure | a convention the agent may follow | a fixed place for every file |
| Build order | whatever comes next | five stages, authorization last |
Does it hold up?
A coding agent built a 19-table, multi-tenant production app on asasvirtuais across 240 commits, including five full-codebase refactors, each done in a day or less. The architecture never broke. The full write-up: Never Broke Architecture.
Try it
pnpm add asasvirtuais zod
cp node_modules/asasvirtuais/AGENTS.example.md AGENTS.md
Point your coding agent at that AGENTS.md and build one feature. Then build a second one and compare the diffs.
It's free. Shipping something commercial? Put "Built with asasvirtuais" somewhere in your app, or talk to us.
github.com/asasvirtuais/asasvirtuais-framework
Asas Virtuais: applied coding agents consulting. asasvirtuais.com
Top comments (0)