Skip to content

Type to search extensions

SysML v2

v0.53.1

SysML v2 language support for Zed via the Spec42 language server.

Updated 2 months ago
242 downloads 42 stars Repository ↗

Spec42

Spec42 is open, local-first tooling for SysML v2 and KerML: edit textual models with live feedback, understand structure and behavior beyond the source, and keep the same analysis engine in the editor, CI, and assistant workflows.

SysML v2 VS Code Extension License Install from Marketplace Download Releases

Spec42 SysML v2 editor with the diagram view and Feature Inspector

Why Spec42

User documentation — getting started, features, project setup and troubleshooting, with a version selector for published releases.

One analysis engine backs the editor, the CLI, GitHub Actions, generators and assistant integrations, so what you see while modeling is what CI checks. The language server, standard library and Elan8 domain libraries ship with Spec42: it works offline, and your models stay in your own repositories.

What you get

  • An editor for SysML v2 and KerML — diagnostics, highlighting, navigation, rename and formatting, with completion and quick fixes that add missing imports for you.
  • Views of the model, not just the text — diagrams and the Feature Inspector show resolved typing, inheritance, relationships and values. The Views panel has title-bar actions to fit the drawing, open its definition, and export SVG, PNG or view JSON.
  • Validation for automation — spec42 check uses the same engine, with text, JSON, SARIF and JUnit output.
  • Generators — sandboxed WebAssembly plugins read the same analysis as the editor.
  • Libraries — the OMG SysML libraries and searchable Elan8 domain libraries are bundled, and you can add your own.
  • Assistant support — Copilot Language Model Tools in VS Code, and CLI helpers for other AI hosts.

Where Spec42 fits

Surface Role
VS Code Primary modeling environment: edit, navigate, diagram, inspect.
CLI check, model-export, generate, diagram, doctor and library management.
GitHub Action Repeatable model validation with optional SARIF upload.
LM Tools Validation and model context for AI-assisted workflows.
Zed Lightweight editor support with the same server family.

Views

View What it is for
General View Structure and relationships across the exposed model.
Interconnection View Parts, ports, connectors, and architecture wiring.
Action Flow View Control and data flow through actions.
State Transition View States and transitions for lifecycle behavior.
Sequence View Lifelines and messages for interaction-oriented models.
Browser View Hierarchical membership browsing.
Grid View Tabular arrangement of exposed elements and relationships.
Geometry View Spatial items (partial while authored geometry and 3D catch up).

Examples

Example Best for
examples/office Smallest first read: parts, ports, connections, simple behavior.
examples/timer Recommended first substantial model.
examples/intersection Controllers and state machines.
examples/webshop Software architecture, requirements, and views.
examples/drone Broader system decomposition and mission behavior.

Get started

  1. Install Spec42 – SysML v2 Editor & Diagrams from the VS Code Marketplace.
  2. Open a .sysml / .kerml file, or try the bundled timer example from the Spec42 sidebar.
  3. Follow the full walkthrough in Getting Started.

To start a clean multi-file workspace from the CLI, run:

spec42 init my-model

The target must be new or empty; init never overwrites existing files and validates the generated workspace before reporting success.

CLI and CI users can download platform archives from GitHub Releases. Setup details for Actions, assistants, and troubleshooting live in the docs linked below.

Documentation

License

MIT. See LICENSE. The embedded SysML standard library is subject to separate licensing; see THIRD_PARTY_NOTICES.md.