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

From text to a living graph

01

Text

Write the model in plain .appling files. The text is the canonical source.

02

Graph

Parsed and linked across files and modules, every element by its qualified name.

03

Validated

Layer rules, exports and migrations are checked on every build.

04

Visualize and generate

Explore the model in the inspector, follow what agents change on the canvas, and generate a Django, Ash, Go or Rust project, all from the same source.

Example

The graph

The same sales module, as text and as the graph Appling builds from it.

sales.applingvalid
module sales {
  export Order

  enum OrderStatus {
    draft
    placed
  }

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

  action PlaceOrder on Order {
    requires { reference != "" }
  }

  machine OrderFlow on Order.status {
    transition draft -> placed via PlaceOrder
  }
}
Linked model
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
Try it

Inspect the model, right here

The read only inspector on the sample sales and CRM model, running in your browser. The model grows as a tree from its modules. Unfold a bud and select a node: the inspector shows what it does, who may run it and where it is used. Nothing leaves this page.

Appling Inspect · examplesOpen full screen →

Loads the model canvas and the sample model. Read only: nothing is edited or generated.

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.

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 Install the CLI, the AI package and an empty folder for the model.
  2. 02 Connect your AI agent to the Appling MCP server. It 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$ npm i -D @appling/cli @appling/ai && mkdir models# connect your AI agent, here Claude Code$ claude mcp add appling -- npx appling-mcp models# in Claude Code: derive the model from your code> /mcp__appling__derive_model# check the result$ npx appling check models