Open source · MIT licensed

One model of your business application. Generated for Django, Ash, Go and Rust.

Appling is a declarative language for business applications: data, rules, behavior, APIs and pages in one validated model that people and AI share. Write it from scratch, or let an AI agent derive it from the project you already have.

Get startednpx @appling/cli initRead the docs →
entity Orderaction PlaceOrderVisualizeGenerate codesales.applingbilling.applingsingle source of truth
How it works

Model, validate, inspect, generate. Repeat.

01

Model with text

You or your agent write the model in plain .appling files. The text is the canonical source.

02

Validate

Linked across files and modules, then checked: layer rules, exports and migrations, on every build.

03

Inspect

See the model on the inspector's canvas and follow what agents change, before any code exists.

04

Generate

Generators write the Django, Ash, Go or Rust project without a single AI call. Your agent only finishes what is left.

Example

The canvas

A sales module as text, and the model on the canvas of the inspector. Unfold a bud and select a node to see what it does, who may run it and where it is used.

sales.applingvalid
module sales {
  export Order

  enum OrderStatus {
    draft
    placed
  }

  entity Order {
    reference: String unique
    status: OrderStatus state default draft
  }

  action PlaceOrder on Order does "Emails the order confirmation" {
    requires { reference != "" }
  }

  machine OrderFlow on Order.status {
    transition draft -> placed via PlaceOrder
  }
}
Appling Inspect · examplesOpen in a new tab →

The real inspector on the sample sales and CRM model, running in your browser. Read only: nothing leaves this page.

Browse full models on GitHub →
Architecture

Five layers, one model

Each concept is defined once, in the layer that owns it. References only point down the layers, and modules only see what other modules export.

L1L2L3L4L5
L5 Experience

How people reach it

page · navigation · flow · messages
L4 Interfaces

How programs reach it

interface
L3 Application

How capabilities are organized

query · projection · external · usecase
L2 Behavior

What can happen

event · action · machine · job
L1 Domain

What exists

enum · value · entity · invariant · policy
Cross cutting

Modules, access, evolution

module · role · actor · tenant · migration
In VS Code

The inspector, next to your code and your agent

The Appling extension finds the projects of your workspace and brings the inspector into VS Code. The text stays in VS Code's own editors, with diagnostics, completion and rename from the language server.

VS Code with the Appling sidebar and the model canvas in a tab: the sales module unfolded up to the Order entity, the Inspector panel listing its actions, fields and what uses it

The canvas in a tab, the panels in the sidebar

Each project opens its model canvas in a tab. The selected element shows in the Inspector panel as a native tree: its actions, fields, policies and everything that uses it.

VS Code with the model canvas on the left and sales.appling on the right, a mark in the gutter of every line that declares an element

Text and canvas side by side

Open source jumps from a node to its declaration. Gutter marks show which model lines are implemented in code, and Go to Implementation opens that code.

  • Read only nothing in the tab or the panels changes the model. You edit the text, or your agent does.
  • Agent sessions Claude Code, Codex, Gemini CLI or opencode run in VS Code terminals, wired to the model's MCP server.
  • Live changes every model change since the last commit is marked on the canvas and listed with the session that wrote it.
Install and use the extension →
Toolchain

Every tool reads the same graph

The command line, the inspector, the AI and the generators all read one validated model. Changes go through the same edit operations; the inspector only shows them.

Code generation

Generated code, so your AI writes less

Everything the model already says is written by a generator, not by an AI. Each target is an installable extension that turns the model into a draft project, and what a generator cannot write becomes a task in a registry for your agent to finish.

  • Faster: a generator writes a whole project in seconds. An agent writing the same files takes many turns.
  • Less AI consumption: generation costs no tokens. The agent spends them only on the registry tasks, the part that needs thought.
  • Same result every time: the same model gives the same code, so the agent builds on a base it does not have to reread or repair.

Another framework? Code generation runs through extensions; write your own against the same graph.

Get started

Init, model, generate

One command sets up the project and wires your coding agent to the model. Then describe what you want; the agent writes the model first and the code from it.

init sets up a project, connects Claude Code, Codex, OpenCode, Gemini CLI or Antigravity CLI and picks the stack.

check validates every .appling file and exits with 1 when it finds errors.

fmt rewrites files into canonical form. A second run changes nothing.

graph prints the semantic graph as JSON, the same graph the inspector and the AI read.

generate writes a draft project for every target in appling.config.json.

terminal
# start a project, it asks for the name, the agents and the stack$ npx @appling/cli init todo# or answer up front: Claude Code and Codex on Django$ npx @appling/cli init todo --name todo --agents claude,codex --stack django# OpenCode on Ash, the stack can also wait (--stack none)$ npx @appling/cli init shop --name shop --agents opencode --stack ash# inside the project folder, validate the model$ npx appling check models# preview the generated project$ npx appling generate --plan
Existing projects

Start from the project you already have

An AI agent reads your code, whether it is Django, Ash, Rails, Spring, Express or any other codebase with a data model, and writes the Appling model for it. It never leaves the model invalid, and asks you when the code allows two readings.

  1. 01 Init Appling in your project: it installs the CLI and the AI package and writes a folder for the model.
  2. 02 Connect your AI agent: init wires it to the Appling MCP server, which teaches the agent the language.
  3. 03 Derive the model: the agent maps your models, rules, operations, queries, routes and screens to the five layers, one validated file at a time.
  4. 04 Review it in the inspector and read what the agent could not model exactly; each place names its source file.
Read the guide →
terminal
# in your project: install the tools and connect your agent$ npx @appling/cli init --name shop --agents claude --stack none# in Claude Code: derive the model from your code> /mcp__appling__derive_model# check the result$ npx appling check models# and explore it on the canvas$ npx appling inspect