# yb-lim/inplite architecture

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

- Interactive diagram: https://gitdiagram.com/yb-lim/inplite
- Repository: https://github.com/yb-lim/inplite

## Overview

InpLite is a Rust desktop editor for large Abaqus `.inp` models. A user opens a model; the application loads it as editable text plus on-disk bulk placeholders, then presents editing, navigation, analysis, mesh checks, and large-block viewing. Save and include-splitting preserve or externalize model data; compare and export-without-mesh are additional workflows. The graph includes the central runtime modules and README capabilities. Some app-to-feature connections are documented or inferred from imports rather than shown as calls in the excerpts.

Main entry points: [`Source/src/app.rs`](https://github.com/yb-lim/inplite/blob/main/Source/src/app.rs) (Application shell), [`Source/src/analysis.rs`](https://github.com/yb-lim/inplite/blob/main/Source/src/analysis.rs) (Structure and checks), [`Source/src/store.rs`](https://github.com/yb-lim/inplite/blob/main/Source/src/store.rs) (Mapped bulk store), [`Source/src/syntax.rs`](https://github.com/yb-lim/inplite/blob/main/Source/src/syntax.rs) (Syntax and diagnostics)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Desktop interface"]
  node_app["Application shell<br/>[app.rs]"]
  node_editor["Text editor<br/>[editor.rs]"]
  node_codeview["Code rendering<br/>[codeview.rs]"]
  node_outline["Model outline<br/>[outline.rs]"]
  node_viewer["Bulk data viewer<br/>[viewer.rs]"]
  node_panels["UI panels<br/>[panels.rs]"]
  node_actions["UI actions<br/>[actions.rs]"]
end

subgraph group_documents["Document handling"]
  node_tab["Document tab state<br/>[tab.rs]"]
  node_loader["File scanner<br/>[load.rs]"]
  node_document["Document and save<br/>[doc.rs]"]
  node_bulkstore[("Mapped bulk store<br/>[store.rs]")]
end

subgraph group_analysis["Model analysis"]
  node_analysis_engine["Structure and checks<br/>[analysis.rs]"]
  node_syntax["Syntax and diagnostics<br/>[syntax.rs]"]
  node_schema["Keyword schema<br/>[schema.rs]"]
  node_mesh["Mesh index and checks<br/>[mesh.rs]"]
end

subgraph group_features["Model tools"]
  node_compare["Model comparison<br/>[diff.rs]"]
  node_diffview["Compare view<br/>[diffview.rs]"]
  node_settings["Editor settings<br/>[settings.rs]"]
  node_shots["Model screenshots<br/>[shots.rs]"]
end

node_user(("Model editor user"))

node_user -->|"opens and edits"| node_app
node_app -->|"loads model"| node_loader
node_loader -->|"stores bulk blocks"| node_bulkstore
node_tab -->|"starts analysis"| node_analysis_engine
node_tab -->|"checks edited text"| node_syntax
node_tab -.->|"starts mesh checks"| node_mesh
node_analysis_engine -->|"parses lines"| node_syntax
node_analysis_engine -->|"checks keywords"| node_schema
node_analysis_engine -->|"resolves placeholders"| node_bulkstore
node_syntax -->|"validates keywords"| node_schema
node_syntax -->|"checks placeholders"| node_bulkstore
node_mesh -->|"reads bulk data"| node_bulkstore
node_app -.->|"presents editing"| node_editor
node_app -.->|"presents outline"| node_outline
node_app -.->|"opens data viewer"| node_viewer
node_app -.->|"saves and splits"| node_document
node_app -.->|"compares files"| node_compare
node_diffview -->|"renders comparison"| node_compare
node_editor -.->|"renders text"| node_codeview
node_outline -->|"renders analysis"| node_analysis_engine
node_viewer -->|"reads bulk data"| node_bulkstore
node_viewer -->|"gets split action"| node_outline
node_editor -.->|"navigates definitions"| node_analysis_engine
node_app -.->|"handles requests"| node_actions
node_app -.->|"uses preferences"| node_settings
node_app -.->|"shows panels"| node_panels
node_app -.->|"captures views"| node_shots

click node_app "https://github.com/yb-lim/inplite/blob/main/Source/src/app.rs"
click node_editor "https://github.com/yb-lim/inplite/blob/main/Source/src/editor.rs"
click node_codeview "https://github.com/yb-lim/inplite/blob/main/Source/src/codeview.rs"
click node_outline "https://github.com/yb-lim/inplite/blob/main/Source/src/outline.rs"
click node_viewer "https://github.com/yb-lim/inplite/blob/main/Source/src/viewer.rs"
click node_panels "https://github.com/yb-lim/inplite/blob/main/Source/src/panels.rs"
click node_actions "https://github.com/yb-lim/inplite/blob/main/Source/src/actions.rs"
click node_tab "https://github.com/yb-lim/inplite/blob/main/Source/src/tab.rs"
click node_loader "https://github.com/yb-lim/inplite/blob/main/Source/src/load.rs"
click node_document "https://github.com/yb-lim/inplite/blob/main/Source/src/doc.rs"
click node_bulkstore "https://github.com/yb-lim/inplite/blob/main/Source/src/store.rs"
click node_analysis_engine "https://github.com/yb-lim/inplite/blob/main/Source/src/analysis.rs"
click node_syntax "https://github.com/yb-lim/inplite/blob/main/Source/src/syntax.rs"
click node_schema "https://github.com/yb-lim/inplite/blob/main/Source/src/schema.rs"
click node_mesh "https://github.com/yb-lim/inplite/blob/main/Source/src/mesh.rs"
click node_compare "https://github.com/yb-lim/inplite/blob/main/Source/src/diff.rs"
click node_diffview "https://github.com/yb-lim/inplite/blob/main/Source/src/diffview.rs"
click node_settings "https://github.com/yb-lim/inplite/blob/main/Source/src/settings.rs"
click node_shots "https://github.com/yb-lim/inplite/blob/main/Source/src/shots.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_app,node_editor,node_codeview,node_outline,node_viewer,node_panels,node_actions,node_user toneBlue
class node_tab,node_loader,node_document,node_bulkstore toneAmber
class node_analysis_engine,node_syntax,node_schema,node_mesh toneMint
class node_compare,node_diffview,node_settings,node_shots toneRose
```

## Components

### Desktop interface

- [Application shell](https://github.com/yb-lim/inplite/blob/main/Source/src/app.rs): `Source/src/app.rs`
- [Text editor](https://github.com/yb-lim/inplite/blob/main/Source/src/editor.rs): `Source/src/editor.rs`
- [Code rendering](https://github.com/yb-lim/inplite/blob/main/Source/src/codeview.rs): `Source/src/codeview.rs`
- [Model outline](https://github.com/yb-lim/inplite/blob/main/Source/src/outline.rs): `Source/src/outline.rs`
- [Bulk data viewer](https://github.com/yb-lim/inplite/blob/main/Source/src/viewer.rs): `Source/src/viewer.rs`
- [UI panels](https://github.com/yb-lim/inplite/blob/main/Source/src/panels.rs): `Source/src/panels.rs`
- [UI actions](https://github.com/yb-lim/inplite/blob/main/Source/src/actions.rs): `Source/src/actions.rs`

### Document handling

- [Document tab state](https://github.com/yb-lim/inplite/blob/main/Source/src/tab.rs): `Source/src/tab.rs`
- [File scanner](https://github.com/yb-lim/inplite/blob/main/Source/src/load.rs): `Source/src/load.rs`
- [Document and save](https://github.com/yb-lim/inplite/blob/main/Source/src/doc.rs): `Source/src/doc.rs`
- [Mapped bulk store](https://github.com/yb-lim/inplite/blob/main/Source/src/store.rs): `Source/src/store.rs`

### Model analysis

- [Structure and checks](https://github.com/yb-lim/inplite/blob/main/Source/src/analysis.rs): `Source/src/analysis.rs`
- [Syntax and diagnostics](https://github.com/yb-lim/inplite/blob/main/Source/src/syntax.rs): `Source/src/syntax.rs`
- [Keyword schema](https://github.com/yb-lim/inplite/blob/main/Source/src/schema.rs): `Source/src/schema.rs`
- [Mesh index and checks](https://github.com/yb-lim/inplite/blob/main/Source/src/mesh.rs): `Source/src/mesh.rs`

### Model tools

- [Model comparison](https://github.com/yb-lim/inplite/blob/main/Source/src/diff.rs): `Source/src/diff.rs`
- [Compare view](https://github.com/yb-lim/inplite/blob/main/Source/src/diffview.rs): `Source/src/diffview.rs`
- [Editor settings](https://github.com/yb-lim/inplite/blob/main/Source/src/settings.rs): `Source/src/settings.rs`
- [Model screenshots](https://github.com/yb-lim/inplite/blob/main/Source/src/shots.rs): `Source/src/shots.rs`

### Other components

- **Model editor user**

## Connections

- Model editor user → Application shell: opens and edits (evidence: `README.md`)
- Application shell → File scanner: loads model (evidence: `Source/src/app.rs`)
- File scanner → Mapped bulk store: stores bulk blocks (evidence: `Source/src/load.rs`)
- Document tab state → Structure and checks: starts analysis (evidence: `Source/src/tab.rs`)
- Document tab state → Syntax and diagnostics: checks edited text (evidence: `Source/src/tab.rs`)
- Document tab state → Mesh index and checks: starts mesh checks (evidence: `Source/src/tab.rs`)
- Structure and checks → Syntax and diagnostics: parses lines (evidence: `Source/src/analysis.rs`)
- Structure and checks → Keyword schema: checks keywords (evidence: `Source/src/analysis.rs`)
- Structure and checks → Mapped bulk store: resolves placeholders (evidence: `Source/src/analysis.rs`)
- Syntax and diagnostics → Keyword schema: validates keywords (evidence: `Source/src/syntax.rs`)
- Syntax and diagnostics → Mapped bulk store: checks placeholders (evidence: `Source/src/syntax.rs`)
- Mesh index and checks → Mapped bulk store: reads bulk data (evidence: `Source/src/mesh.rs`)
- Application shell → Text editor: presents editing (evidence: `Source/src/app.rs`)
- Application shell → Model outline: presents outline (evidence: `Source/src/app.rs`)
- Application shell → Bulk data viewer: opens data viewer (evidence: `Source/src/app.rs`)
- Application shell → Document and save: saves and splits (evidence: `Source/src/app.rs`)
- Application shell → Model comparison: compares files (evidence: `Source/src/app.rs`)
- Compare view → Model comparison: renders comparison (evidence: `Source/src/diffview.rs`)
- Text editor → Code rendering: renders text (evidence: `Source/src/editor.rs`)
- Model outline → Structure and checks: renders analysis (evidence: `Source/src/outline.rs`)
- Bulk data viewer → Mapped bulk store: reads bulk data (evidence: `Source/src/viewer.rs`)
- Bulk data viewer → Model outline: gets split action (evidence: `Source/src/viewer.rs`)
- Text editor → Structure and checks: navigates definitions (evidence: `Source/src/editor.rs`)
- Application shell → UI actions: handles requests (evidence: `Source/src/app.rs`)
- Application shell → Editor settings: uses preferences (evidence: `Source/src/app.rs`)
- Application shell → UI panels: shows panels (evidence: `Source/src/app.rs`)
- Application shell → Model screenshots: captures views (evidence: `Source/src/app.rs`)
