Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Aliot Software ArchitectureNew to Visual Studio Code? Get it now.
Aliot Software Architecture

Aliot Software Architecture

Catalin Ilie

|
5 installs
| (0) | Free
Model swa.ml software architecture with diagrams, in-place editing, validation, CLI exports and AI tools.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Aliot Software Architecture · swa.ml

Turn software architecture into a model you can read, validate, run and edit in VS Code. swa.ml connects components, typed ports, operations, requirements, use cases, tests and diagrams in one editable model.

Three components connected through typed temperature and heating ports

Start with a model

  1. Install Aliot Software Architecture by voidaliot.
  2. Run swa.ml: New Model, or open a .swaml file.
  3. Click the circular swa.ml diagram icon or run swa.ml: Show Diagram.
  4. Choose Add in the diagram toolbar, or right-click the canvas, to create an element. Fill its fields with the suggestions offered and apply the validated draft.
  5. Select an element for Properties, or double-click its name to rename it.
package Example {
  component def Counter {
    attribute count: int = 0;
    operation increment() { count = count + 1; }
    schedule { on start increment(); }
  }
  component Demo { component counters: Counter[2]; }
  view overview: Swaml::Views::General of Demo;
}

The standard library is included. Explore ready-to-use models with swa.ml: Browse Official Examples, or open swa.ml: Open Offline Help for help inside VS Code.

See structure and behavior together

View Use it to
General Explore components, definitions, requirements and relationships.
Interconnect Inspect typed ports, member directions and the connections of a component or package.
Flow Follow operations, use cases and tests: decisions, loops, states and local data bindings.
Sequence Follow the messages of an operation, use case or test across components, and draw new ones.
Case See use cases and tests around their subject, with actors and requirement links.
Timing Compare declared contracts with an identified bounded execution trace.
Grid Filter model elements, read their documentation, select rows and export CSV.

Browser and Properties keep navigation and source locations close to the canvas. Text editing includes diagnostics, context-aware completion of names and paths, signatures, references, formatting, validated rename, optional inlay hints, auto-imports and deterministic inline suggestions.

An operation with a decision, assignments and local data binding

Write requirements in swa.ml, with Markdown

Write requirements and comments with headings, emphasis, code, tables, task lists, links and media. Read the formatted text directly in diagrams, Properties and Grid.

requirement ComfortableRoom {
  /**
   * ## Keep the room comfortable
   *
   * Use the **measured temperature** and the desired `setpoint`.
   *
   * - Exchanges use typed ports.
   * - Requirement text stays in the model.
   */
  attribute description: string =
    "The controller shall request heating below the setpoint.";
}

A source-backed requirement with a Markdown heading, table and checklist

Run use cases and tests

Write a use case or test as a script that acts through the ports of the system around its subject, then run it from the Testing view, a code lens or the diagram toolbar.

use case 'Turn on' of lamp {
  publish user.switch.pressed();
  on receive user.switch.changed(lit) {
    assert lit;
  } or after 1s {
    fail "no answer";
  }
}

Each case runs in a fresh, deterministic, bounded run and reports pass, fail at the failing statement, inconclusive or no checks. Sequence, Flow, Interconnect and Timing View then show the values, times and checks of that run, and requirement traces name the tests that verify each requirement with their last result.

Keep text and diagrams in sync

Edit your .swaml model as text or through diagrams. Every view creates elements through the same card: suggestions come from the model, and before you apply, the card says what else it will create, such as a missing port definition or connection. Drag between ports to connect them. Every graphical edit is validated before it updates your model, and invalid drafts keep your input. Use native Save, Undo and Redo for text and diagram changes.

Layouts are saved with your workspace. Adjust the editor for each workspace folder, and keep your active VS Code theme.

Automate validation and export

On desktop, run swa.ml: Copy Headless CLI Command to copy the installed tool's full path. Use it with a supported Node.js runtime:

node "<extension-folder>/out/validate.mjs" ./models --format json
node "<extension-folder>/out/cli.mjs" export --file ./models/model.swaml --view fv --out flow.svg
node "<extension-folder>/out/cli.mjs" export --file ./models/model.swaml --view grv --out inventory.csv

Validate models in your build pipeline with text, JSON, SARIF or GitHub annotations. Export diagrams as SVG and Grid tables as CSV. Explore CLI commands.

Work with an AI agent

Ask a compatible VS Code agent to explain a model, find declarations, trace requirements, run tests or check a proposed change.

Start with #swamlGuidance, inspect #swamlContext, check a proposal with #swamlValidate and run tests with #swamlRunTests. Review suggested changes before applying them. Use the AI tools.

Model in desktop or browser VS Code. Requirements describe intended behavior; a test result or simulation trace is evidence of one bounded run. Read the support details.

Help and feedback

Editor guide · Official examples · Report an issue · Aliot

Free to use under the Aliot Freeware License. The bundled language is MIT licensed.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft