# paraxdev/fundacad architecture

> Architecture diagram of the GitHub repository paraxdev/fundacad, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/paraxdev/fundacad
- Repository: https://github.com/paraxdev/fundacad

## Overview

FundaCAD is a desktop parametric CAD application for designing and preparing parts for 3D printing. The principal workflow is sketching and dimensioning, building and editing solids, rebuilding a feature history, then inspecting and exporting a model. The graph also preserves documented rendering, import, optional plugins, and MCP assistance. Some domain relationships come from the README rather than sampled implementation; MCP and engine links use the source index or excerpts, so unsampled internal wiring is omitted.

Main entry points: [`src/document/store.ts`](https://github.com/paraxdev/fundacad/blob/main/src/document/store.ts) (Document and history), [`src/app/engine.ts`](https://github.com/paraxdev/fundacad/blob/main/src/app/engine.ts) (App composition), [`src/geometry/client.ts`](https://github.com/paraxdev/fundacad/blob/main/src/geometry/client.ts) (Geometry client), [`crates/fundacad-engine/src/lib.rs`](https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-engine/src/lib.rs) (Geometry worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_authoring["Design authoring"]
  node_document[("Document and history<br/>[store.ts]")]
  node_sketch["Sketching and constraints<br/>[sketchMode.ts]"]
  node_parameters["Named parameters<br/>[engine.ts]"]
  node_feature_tools["Feature tools<br/>[featureStarters.ts]"]
end

subgraph group_geometry["Geometry engine"]
  node_geometry_client["Geometry client<br/>[client.ts]"]
  node_transport["Engine transport<br/>[transport.ts]"]
  node_engine_worker["Geometry worker<br/>[lib.rs]"]
  node_feature_ops["Solid operations"]
end

subgraph group_inspection["Inspection and exchange"]
  node_import["Model import"]
  node_mesh["Mesh generation"]
  node_export["Model export"]
  node_checks["Part checks"]
  node_render["Render workspace<br/>[RenderDock.vue]"]
end

subgraph group_desktop["Desktop application"]
  node_app["CAD workspace<br/>[App.vue]"]
  node_composition["App composition<br/>[engine.ts]"]
end

subgraph group_extensions["Extensions and automation"]
  node_plugins["Optional plugins<br/>[index.ts]"]
  node_mcp_server["MCP tools<br/>[server.rs]"]
  node_mcp_link["Engine link<br/>[link.rs]"]
end

node_user(("CAD user"))
node_assistant(("AI assistant"))

node_user -->|"designs in"| node_app
node_app -->|"hosts"| node_composition
node_composition -->|"initializes"| node_document
node_user -->|"draws and constrains"| node_sketch
node_sketch -->|"defines profiles"| node_document
node_user -->|"sets design values"| node_parameters
node_parameters -->|"updates dimensions"| node_document
node_user -->|"creates features"| node_feature_tools
node_feature_tools -->|"records history"| node_document
node_document -->|"requests rebuild"| node_geometry_client
node_composition -->|"configures client"| node_geometry_client
node_geometry_client -->|"sends requests"| node_transport
node_geometry_client -.->|"exchanges geometry"| node_engine_worker
node_engine_worker -.->|"evaluates features"| node_feature_ops
node_user -->|"imports models"| node_import
node_user -->|"inspects printability"| node_checks
node_user -->|"renders model"| node_render
node_user -->|"exports model"| node_export
node_user -->|"adds capabilities"| node_plugins
node_composition -.->|"loads plugins"| node_plugins
node_assistant -->|"requests CAD tools"| node_mcp_server
node_mcp_server -->|"dispatches requests"| node_mcp_link
node_mcp_link -->|"queries model"| node_engine_worker

click node_app "https://github.com/paraxdev/fundacad/blob/main/src/App.vue"
click node_composition "https://github.com/paraxdev/fundacad/blob/main/src/app/engine.ts"
click node_document "https://github.com/paraxdev/fundacad/blob/main/src/document/store.ts"
click node_sketch "https://github.com/paraxdev/fundacad/blob/main/src/sketch/sketchMode.ts"
click node_parameters "https://github.com/paraxdev/fundacad/blob/main/src/params/engine.ts"
click node_feature_tools "https://github.com/paraxdev/fundacad/blob/main/src/features/featureStarters.ts"
click node_geometry_client "https://github.com/paraxdev/fundacad/blob/main/src/geometry/client.ts"
click node_transport "https://github.com/paraxdev/fundacad/blob/main/src/geometry/transport.ts"
click node_engine_worker "https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-engine/src/lib.rs"
click node_feature_ops "https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/features"
click node_import "https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/import"
click node_mesh "https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/mesh"
click node_export "https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/export"
click node_checks "https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/printcheck"
click node_render "https://github.com/paraxdev/fundacad/blob/main/src/components/shell/RenderDock.vue"
click node_plugins "https://github.com/paraxdev/fundacad/blob/main/src/plugins/index.ts"
click node_mcp_server "https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-mcp/src/server.rs"
click node_mcp_link "https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-mcp/src/link.rs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_document,node_sketch,node_parameters,node_feature_tools,node_user toneBlue
class node_geometry_client,node_transport,node_engine_worker,node_feature_ops toneAmber
class node_import,node_mesh,node_export,node_checks,node_render toneMint
class node_app,node_composition toneRose
class node_plugins,node_mcp_server,node_mcp_link,node_assistant toneIndigo
```

## Components

### Design authoring

- [Document and history](https://github.com/paraxdev/fundacad/blob/main/src/document/store.ts): `src/document/store.ts`
- [Sketching and constraints](https://github.com/paraxdev/fundacad/blob/main/src/sketch/sketchMode.ts): `src/sketch/sketchMode.ts`
- [Named parameters](https://github.com/paraxdev/fundacad/blob/main/src/params/engine.ts): `src/params/engine.ts`
- [Feature tools](https://github.com/paraxdev/fundacad/blob/main/src/features/featureStarters.ts): `src/features/featureStarters.ts`

### Geometry engine

- [Geometry client](https://github.com/paraxdev/fundacad/blob/main/src/geometry/client.ts): `src/geometry/client.ts`
- [Engine transport](https://github.com/paraxdev/fundacad/blob/main/src/geometry/transport.ts): `src/geometry/transport.ts`
- [Geometry worker](https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-engine/src/lib.rs): `crates/fundacad-engine/src/lib.rs`
- [Solid operations](https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/features): `crates/fundacad-geom/src/features`

### Inspection and exchange

- [Model import](https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/import): `crates/fundacad-geom/src/import`
- [Mesh generation](https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/mesh): `crates/fundacad-geom/src/mesh`
- [Model export](https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/export): `crates/fundacad-geom/src/export`
- [Part checks](https://github.com/paraxdev/fundacad/tree/main/crates/fundacad-geom/src/printcheck): `crates/fundacad-geom/src/printcheck`
- [Render workspace](https://github.com/paraxdev/fundacad/blob/main/src/components/shell/RenderDock.vue): `src/components/shell/RenderDock.vue`

### Desktop application

- [CAD workspace](https://github.com/paraxdev/fundacad/blob/main/src/App.vue): `src/App.vue`
- [App composition](https://github.com/paraxdev/fundacad/blob/main/src/app/engine.ts): `src/app/engine.ts`

### Extensions and automation

- [Optional plugins](https://github.com/paraxdev/fundacad/blob/main/src/plugins/index.ts): `src/plugins/index.ts`
- [MCP tools](https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-mcp/src/server.rs): `crates/fundacad-mcp/src/server.rs`
- [Engine link](https://github.com/paraxdev/fundacad/blob/main/crates/fundacad-mcp/src/link.rs): `crates/fundacad-mcp/src/link.rs`

### Other components

- **CAD user**
- **AI assistant**

## Connections

- CAD user → CAD workspace: designs in (evidence: `README.md`)
- CAD workspace → App composition: hosts (evidence: `src/App.vue`)
- App composition → Document and history: initializes (evidence: `src/app/engine.ts`)
- CAD user → Sketching and constraints: draws and constrains (evidence: `README.md`)
- Sketching and constraints → Document and history: defines profiles (evidence: `README.md`)
- CAD user → Named parameters: sets design values (evidence: `README.md`)
- Named parameters → Document and history: updates dimensions (evidence: `src/params/engine.ts`)
- CAD user → Feature tools: creates features (evidence: `README.md`)
- Feature tools → Document and history: records history (evidence: `README.md`)
- Document and history → Geometry client: requests rebuild (evidence: `src/document/store.ts`)
- App composition → Geometry client: configures client (evidence: `src/app/engine.ts`)
- Geometry client → Engine transport: sends requests (evidence: `src/geometry/client.ts`)
- Geometry client → Geometry worker: exchanges geometry
- Geometry worker → Solid operations: evaluates features
- CAD user → Model import: imports models (evidence: `README.md`)
- CAD user → Part checks: inspects printability (evidence: `README.md`)
- CAD user → Render workspace: renders model (evidence: `README.md`)
- CAD user → Model export: exports model (evidence: `README.md`)
- CAD user → Optional plugins: adds capabilities (evidence: `README.md`)
- App composition → Optional plugins: loads plugins
- AI assistant → MCP tools: requests CAD tools (evidence: `README.md`)
- MCP tools → Engine link: dispatches requests (evidence: `crates/fundacad-mcp/src/server.rs`)
- Engine link → Geometry worker: queries model (evidence: `crates/fundacad-mcp/src/link.rs`)
