Skip to content

About

SpecSpace aims to transform how software engineering teams create, understand, evolve, and use technical specifications. Its goal is to turn software documentation into a living, navigable, connected workspace where requirements, architectural decisions, diagrams, and technical solutions can be developed and maintained clearly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

SpecSpace Desktop

A local Markdown and Structurizr DSL workspace for understanding software specifications. Built with Tauri 2, React, TypeScript, Vite, CodeMirror 6, and Pele for Mermaid-syntax previews. No account, server, cloud integration, or collaboration service.

The interface uses a warm editorial reading surface and a connected-module blueprint identity. At wide sizes, Source and Preview can share the document view; compact windows let you focus on either pane with the existing controls.

Run on macOS

Prerequisites: Node.js 22.12+ (Node 24 recommended), npm, the stable Rust toolchain installed via rustup, and Apple's Command Line Tools (xcode-select --install).

npm ci
npm run tauri dev

Choose File → Open Folder… (⌘O), then select a folder containing .md, .markdown, or .dsl files. The examples folder is a ready-to-use workspace.

Use Connections to explore saved Markdown references as a directed graph. Select a node to open its document and inspect its outgoing references and backlinks; Go to editor returns to editing. Broken references lists missing Markdown destinations. The graph fits the window; use zoom controls or scrolling for detail, and All documents for full paths.

With a workspace open, use File → New Markdown Document… (⌘N) or the plus action in the explorer to create an empty Markdown file. The native dialog stays within the workspace boundary, and existing files are never overwritten.

Use File → Close All Tabs or Close Other Tabs, or right-click a tab for the same actions. Pending changes offer Save All, Discard Changes, or Cancel. A save failure keeps all tabs open; earlier successful saves remain saved.

After a normal quit, SpecSpace restores the last workspace and open Markdown and DSL tabs from their current disk contents, including tab order and the active document. Unsaved edits, undo history, and view state are not restored. Missing documents are skipped with a status notice.

Use Outline in the document toolbar to navigate headings in the active document. The nested list follows unsaved edits and distinguishes repeated heading titles; selecting an entry scrolls the current Source, Preview, or both Split panes.

Expand a rendered diagram with its expand icon. In supported flowcharts, the magnifying glass opens Find node: enter part of a component name, then click a result or use Up/Down and Enter to center it. Escape closes search first, then returns to the document. Search highlights do not alter exported images.

Wide tables in Preview retain readable columns and scroll horizontally within their own region; compact tables keep their natural width.

Connections update after saves, reloads, and workspace opening. Use Refresh connections after external file changes; Refresh workspace also updates the explorer. Neither refresh overwrites pending editor changes. Scan limits, skipped files, and stale results are shown in the view. See SPEC for exact limits and exclusions.

npm run tauri build

Creates src-tauri/target/release/bundle/macos/SpecSpace.app. This local build is not notarized for distribution. For a faster development bundle, use npm run tauri -- build --debug.

npm run dev runs only the browser UI; local filesystem operations require the desktop app.

Explore Structurizr architecture

Open an existing .dsl file, such as examples/architecture.dsl. Choose a declared view from the selector. Use the visible zoom, Fit, and Back controls, drag the canvas to pan, and search or select an element to inspect its metadata and direct relationships. Relationship buttons navigate to visible endpoints and identify endpoints outside the active view. Available child views appear in the inspector.

Source, Architecture, and Split use the current document buffer. Saving uses the original text and existing conflict checks. Invalid source stays editable, with parsing diagnostics and an explicitly stale last valid diagram. Each open architecture document retains its selection, viewport, and view history during the session.

Supported static views are System Landscape, System Context, Container, and Component. The adapter preserves declared membership, wildcard expansion, includes/excludes, direct and supported implied relationships, system/container boundaries, and nested model groups. A model without declared views receives visibly inferred default views. The pinned parser covers people, software systems, containers, components, descriptions, technologies, tags, hierarchical identifiers, and their relationships. Colors, stroke, font size, opacity, dashed/dotted borders, relationship styles, and Box, RoundedBox, Circle, Ellipse, and Cylinder element shapes are supported. Other shapes use a diagnosed box fallback.

Unresolved includes, scripts/plugins, remote themes/images, unsupported views, and skipped syntax generate incomplete-coverage diagnostics. Dynamic, Deployment, filtered, custom, and image views are outside this increment's supported coverage. All runtime code is bundled locally. Source text remains authoritative, and inferred views and presentation state are transient. Persistent layout, sidecars, include resolution, and visual model editing are deferred. Parser provenance and update instructions are recorded with the vendored source. C4 Hero parser provenance

Set up Rust for local builds

macOS desktop builds need Apple's Command Line Tools and the stable Rust toolchain. Install the Command Line Tools once if needed:

xcode-select --install

Install Rust with rustup, then open a new terminal. If the current shell does not recognize cargo, load rustup's environment and select stable:

curl --proto '=https' --tlsv1.2 https://sh.rustup.rs -sSf | sh
source "$HOME/.cargo/env"
rustup default stable

Install the project dependencies and build the local macOS app bundle:

npm ci
npm run tauri build

The bundle is written to src-tauri/target/release/bundle/macos/SpecSpace.app. For a debug build, run npm run tauri -- build --debug.

Project documentation

Start with PROJECT_STATUS.md to resume development and AGENTS.md for project conventions.

Checks

npm test
npm run build
npm run format:check
cargo test --manifest-path src-tauri/Cargo.toml
cargo fmt --manifest-path src-tauri/Cargo.toml -- --check
git diff --check

Prepare a GitHub release

The Prepare macOS release workflow builds Apple Silicon (arm64) and Intel (x86_64) ZIP archives and checksum files, then creates a draft release. It does not publish, Developer ID sign, or notarize the application. macOS may block these downloads. No Apple credentials or personal access token are required; the release job uses GitHub's repository token.

  1. Select an unused version, such as 0.2.0 or 0.2.0-rc.1. Keep package.json, both root version fields in package-lock.json, src-tauri/tauri.conf.json, src-tauri/Cargo.toml, and the local spec-space package entry in src-tauri/Cargo.lock consistent. Regenerate lockfiles with the package managers and review their changes. Do not change dependency versions merely to prepare a release.

  2. Run the checks above and npm run test:release (Python 3.11+). Review and commit the intended source, including the workflow and its helper scripts. Push that commit. Uncommitted local files are not included in a release build.

  3. Create and push a version tag pointing to that commit. For example, after choosing 0.2.0 and preparing its matching commit:

    git tag -a v0.2.0 -m "SpecSpace 0.2.0"
    git push origin v0.2.0
  4. Watch Actions → Prepare macOS release. The workflow validates the existing tag and versions, runs frontend/Rust checks on both macOS runners, builds the apps, verifies executable architecture and packaged version, extracts the ZIPs to check executable preservation, and uploads assets only after both builds succeed.

  5. Wait for the workflow to finish successfully, then open Releases and review the draft. Download the ZIP for the intended Mac and its .sha256 file into the same directory. Run, for example, shasum -a 256 -c SpecSpace-v0.2.0-macos-arm64.zip.sha256, extract the archive, and test the app on the intended architecture. Automated checks do not establish successful native launch on every supported Mac.

  6. Edit the release notes and publish manually when ready. Versions containing a prerelease suffix are marked as prereleases. The workflow never publishes a draft or modifies an already published release.

To retry, rerun the failed workflow or use Actions → Prepare macOS release → Run workflow with the existing tag. The workflow must be present on the default branch for the manual control to appear. It builds the tag's commit, not the selected branch's current application source; the tagged commit must include the release helpers. Existing draft notes and unrelated assets are preserved. Only assets carrying this workflow's ownership label for the same source commit can be replaced. An unowned filename collision fails with an explanation; inspect it manually instead of deleting unrelated content. Do not move release tags.

Do not publish or edit draft assets while a run is uploading. Draft state is checked before each mutation, but GitHub does not offer an atomic draft-only upload condition. A failed upload can leave an incomplete draft; rerun before publishing. A published version requires a new version/tag for changed binaries.

Hosted macOS runner availability and account usage limits apply. The workflow uses macos-15 and macos-15-intel; see GitHub's runner reference. Local workflow validation is recorded in plan 018; the first actual hosted run remains a separate verification step after pushing. For workflow edits, run actionlint .github/workflows/release.yml, format the YAML with Prettier, and check the Python helpers with Black.

About

SpecSpace aims to transform how software engineering teams create, understand, evolve, and use technical specifications. Its goal is to turn software documentation into a living, navigable, connected workspace where requirements, architectural decisions, diagrams, and technical solutions can be developed and maintained clearly.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages