webda.io module
This module is part of Webda Application Framework that allows you to quickly develop applications with all modern prerequisites: Security, Extensibility, GraphQL, REST, CloudNative https://webda.io


Summary
Webda is a TypeScript framework for building applications around your domain. You write the Models (data,
validation, permissions, actions); Webda exposes them on every configured transport — REST, GraphQL, gRPC, MCP — and
gives you the features every application needs: dependency injection, authentication, authorization, logging,
monitoring, configuration, multi-database abstraction and realtime events.
It is articulated around four domains:
- Models define your data and how it is accessed: permissions, actions and relations to other models. Testing your
models tests most of your application.
- Services hold the behaviour that does not belong to a model: authentication, stores, queues, pub/sub, mailers.
They are injected where you need them and follow the
resolve → init → stop lifecycle.
- Deployments run the same application as Kubernetes workloads, Lambda functions behind API Gateway, or Docker/OCI
images. Each deployment overrides only the configuration it needs.
- Integrations reach your application over REST, GraphQL, gRPC or MCP. Operations give every entry point one
normalized way to call your application, with the same permissions and validation.
Even if the framework can do all the steps of deployment, it can also be decoupled to fit inside your classic CI
workflow using GitHub Actions, Bazel, Jenkins, ...
Quickstart
Webda requires Node.js 22 or later.
npm create @webda my-app
cd my-app
npm run debug # build, then dev server with the interactive debug console on http://localhost:18080
The command asks for the store (memory, file, mongodb, postgres) and the transports (rest, graphql,
grpc, mcp). To skip the questions:
npm create @webda my-app -- --store postgres --transports rest,graphql --yes
Other scripts of the generated application:
npm run serve # build, then HTTP server on http://localhost:18080
npm run build # compile and generate webda.module.json
npm test # build, then run the tests
The CLI comes from two packages: webda (from @webda/core) runs the application, webdac (from @webda/compiler)
builds it.
Your first model
import type { IOperationContext } from "@webda/core";
import { UuidModel } from "@webda/models";
/**
* A task to do
*/
export class Task extends UuidModel {
/**
* What needs to be done
* @minLength 1
* @maxLength 200
*/
title!: string;
done!: boolean;
async canAct(_context: IOperationContext, _action: string): Promise<boolean | string> {
// Permissions are deny-by-default: restrict this before going to production
return true;
}
}
After npm run build, the model is available on every transport (POST /tasks, GET /tasks/{uuid}, ...) and in
code, without ever touching a store:
const task = await Task.create({ title: "Write the docs", done: false });
const { results } = await Task.query("done = FALSE ORDER BY title LIMIT 20");
Working with a coding agent
Generated applications include AGENTS.md, CLAUDE.md and skills in .agents/skills/ describing the Webda patterns.
In an existing v4 project, Claude Code users can install the same skills:
/plugin marketplace add loopingz/webda.io
/plugin install webda@webda
Documentation
The sample application is a reference application using most of the framework.
Configuration resolution