GitHubGitHub Stars
  1. M0

    M0 — Discovery

    Complete

    Market scan of both CAD camps. Kernel decision: OpenCascade (OCCT) via JNI first, with WASM as a later option from the same codebase — no rewrite needed. License clearing: Apache 2.0 for kSTEP's own code, dynamically linked against LGPL OCCT and PlaneGCS; the GPL-3.0 SolveSpace solver deliberately avoided. STEP profile: AP242, with the V1 scope narrowed to product structure and metadata. EXPRESS parsing via an existing BSD-2 ANTLR4 grammar instead of hand-rolling — the real work is the semantic layer and Kotlin codegen. The DSL hello world defined as a semantic round-trip — a product block, validation, Part 21 export — deliberately not a geometry demo. V1 target users defined: PLM and interop tooling developers, digital-twin pipelines, and LLM agents themselves.

  2. M1

    M1 — Headless MVP

    Complete

    The semantic core is done: an EXPRESS parser and a Kotlin code generator for the AP242 product-structure entities, WHERE-rule validation with structured errors, and a STEP Part 21 reader/writer wired into a kstep export CLI command (via a *.kstep.kts scripting host, the same pattern as kUML). Verified against a real excerpt of the official AP242 schema, not just a hand-written fixture — see the GitHub repository for the exact scope. The core has since grown deeper: the code generator resolves transitive TYPE alias chains, ENUMERATION types (as Kotlin enum classes) and closed SELECT types (as sealed interfaces) and emits only the types that are reachable; DERIVE attributes become computed properties of the generated types; and the AP242 excerpt now covers sixteen entities, including product_definition_occurrence and the name, description and id attribute entities. Known limits: EXTENSIBLE and BASED_ON enumerations and SELECTs are rejected with a specific reason rather than approximated, and the schema is a vendored excerpt, not the full AP242 — product_definition_occurrence is partial, and product_definition_or_reference and the attribute select types list only the modelled members. Interop evidence (2026-10-22, last updated for v0.2.0): the Part 21 files kstep export writes are read by FreeCAD 1.x and by an independent reader built on OpenCascade's typed STEP model, which resolves the product structure with 0 failures and 0 warnings. Since v0.2.0, kstep export also merges the geometry of registered shapes into the same file (--require-geometry exits with code 1 and writes no file unless geometry was merged), and place(...) writes assemblies with placed components, so FreeCAD shows the hierarchy and the position of each part. Limits: one shape per product definition, rigid-body placements only; geometry export needs the native OpenCascade bridge, which the release zip does not contain. This proves reading with two OpenCascade-based implementations; other CAD/PLM systems, full AP242 schema conformance and a lossless write-back round trip remain unverified.

  3. M2

    M2 — AI Layer

    In progress

    An MCP server now exposes the DSL's entity builders and STEP export as LLM tool-calling tools, with structured validation feedback for an agent to act on — mirroring what kUML already ships. Validation now reaches beyond single entities: a reverse-reference index lets WHERE rules use USEDIN and SIZEOF, INVERSE attributes are evaluated, and the UNIQUE rule UR2 and the acyclic-usage rule WR1 of assembly links are checked. An Ap242ModelValidator reports these findings (opt-in on Part 21 import, and as the validate_model MCP tool), and the MCP server refuses to build a cyclic assembly. Since v0.1.1, kstep export --validate runs this model-level validation before the file is written: findings give exit code 1 and no file, and if no verdict can be reached (size or depth limits, an unsupported construct) it fails closed with KSTEP-S-005. Known limits: the flag is opt-in and off by default, so without it a cyclic structure built directly in the DSL can still be exported; QUERY and general EXPRESS functions are unsupported; and the acyclic check is bounded in depth and size. Still ahead: an actual LLM benchmark comparing raw STEP, CadQuery, and the kSTEP DSL as generation targets.

  4. M3

    M3 — Geometry & Desktop Viewer

    Started

    A first step beyond the semantic core, and it has real substance: a hand-written JNI bridge to OpenCascade (OCCT) builds real B-Rep solids and exports them as genuine STEP files, with a parametric feature-history layer on top (change one feature's value, rebuild, measure the new result). Since v0.2.0 the operations cover union, difference and intersection, cylinders, holes, revolve and chamfer, next to boxes, extrusions and fillets. A sketch DSL describes 2D profiles with points, lines, arcs and circles and PlaneGCS constraints (horizontal/vertical, distance, length, coincident, point-on-line, parallel, perpendicular); degrees of freedom are analysed first, so redundant or contradictory constraints are named before the solver runs. Edges are selected geometrically — parallel to a direction, by type, at the maximum of a direction, longest — instead of by index, and a selected edge is followed through later operations via OCCT's modification history. kstep import reads STEP files with geometry back, including files written by FreeCAD, and reports product structure, volume, faces, bounding box and placed occurrences (--validate checks the AP242 entities, --render draws the result); references to external files are rejected, not loaded. Geometry and product structure share one STEP file, assemblies carry placements, and the Compose Desktop viewer is interactive — drag to orbit, scroll to zoom, shift-drag or a middle-button drag to pan, composing several placed shapes into one shaded scene with per-part material colors and smooth per-vertex shading on curved surfaces — alongside a headless SVG/PNG/text/glTF renderer that also exports self-contained, validator-clean .glb files (the headless SVG/PNG exports stay flat-shaded, a documented format limitation, not a bug; since v0.3.0, render, preview and GLB draw every instance of a placed assembly at its position). This is a foundation, not a finished capability. Since v0.3.0, circle and arc radii can be solver unknowns, with radius, diameter, equal-radius, tangent and angle constraints; a sketch is a re-solving step of the feature history; several separate outer contours in one sketch become several bodies; the edges generated by extrude, revolve, fillet, chamfer, boolean and hole operations can be named and followed through later changes; feature histories support undo/redo; mirror, scale and shell are available together with face and vertex selection and nearest(point); and STEP export and import carry colours and layers (kstep import runs in a supervised worker process that turns timeouts and out-of-memory errors into structured errors). Still open: PMI, a pocket or hole from a face, draft and thickening (planned as Q2), naming of the inner wall of a shell, and transparency, edge colours and instance colours in the export. Geometry, sketches (without the solver the error is KSTEP-S-009) and kstep import need a system-installed OpenCascade — Linux x86-64, and since v0.1.1 macOS arm64 via Homebrew — and a self-built native bridge; the release zip contains none. The macOS support is for development and self-builds only: the library is unsigned, and Intel Macs and Windows are not supported. Interoperability is verified only with OpenCascade-based readers (OpenCascade's typed reader and FreeCAD); other CAD/PLM systems are unchecked.

  5. M4

    M4 — Ecosystem

    Planned

    A Gradle plugin and a JetBrains IDE plugin are what's left here — documentation embedding shipped ahead of schedule: kstep asciidoc pre-renders kstep blocks into AsciiDoc documents (see the About page's Tooling section), alongside obsidian-kstep for Markdown/Obsidian notes.

kSTEP is ambitious and honest about it: a multi-year, part-time open-source project still early in its build. A working semantic core exists and is self-verified. The latest pre-release is v0.3.0(2026-10-24; see What's New). It carries a platform-independent, JVM-only CLI zip (with a SHA-256 checksum) without native bridges, so geometry, sketches and kstep import need a self-build with a system OpenCascade. There is no Maven Central release and no Homebrew package, and the playground shows pre-rendered examples only, not a live editor. What exists are cleared decisions, real code, a public repository and a plan — built in the open, milestone by milestone.