# jackstanton6/seedfinderstoolkit architecture

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

- Interactive diagram: https://gitdiagram.com/jackstanton6/seedfinderstoolkit
- Repository: https://github.com/jackstanton6/seedfinderstoolkit

## Overview

Seed Finders Toolkit turns user-authored world-generation queries into large-scale seed searches, with Python CLI/GUI entry points and a Rust engine. Results can also come from single-seed checks, location/loot queries, scans, and structure-based cracking. The graph preserves the documented GPU, plugin, visualization, and data-preparation branches. Source excerpts are partial; edges use README statements or SOURCE INDEX references, and uncertain implementation links are omitted or marked unverified.

Main entry points: [`engine/src/query.rs`](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/query.rs) (Query evaluation), [`sft/gui/app.py`](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/app.py) (Desktop GUI), [`engine/src/lib.rs`](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/lib.rs) (Rust engine API), [`engine/src/world.rs`](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/world.rs) (Seeded world model)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interfaces["User interfaces"]
  node_gui["Desktop GUI<br/>[app.py]"]
  node_gui_blocks["Visual query editor<br/>[blocks.py]"]
  node_wizard["Query wizard<br/>[wizard.py]"]
  node_cli["CLI commands<br/>[__main__.py]"]
end

subgraph group_query_search["Query and search"]
  node_dsl["Query DSL<br/>[query.py]"]
  node_api["Python API<br/>[__init__.py]"]
  node_engine_api["Rust engine API<br/>[lib.rs]"]
  node_search["Seed search<br/>[search.rs]"]
  node_query_eval["Query evaluation<br/>[query.rs]"]
  node_cracking["Seed cracking<br/>[crack.rs]"]
  node_gpu["GPU acceleration<br/>[gpu.rs]"]
end

subgraph group_world_model["World generation model"]
  node_world["Seeded world model<br/>[world.rs]"]
  node_biomes["Biome climate search<br/>[biome.rs]"]
  node_structures["Structure placement<br/>[structure.rs]"]
  node_terrain["Chunk terrain<br/>[chunk.rs]"]
  node_features["Features and decoration<br/>[feature.rs]"]
  node_carvers["Terrain carvers<br/>[carver.rs]"]
  node_loot["Chest loot<br/>[loot.rs]"]
  node_density["Density functions<br/>[density.rs]"]
  node_noise["Worldgen noise<br/>[noise.rs]"]
  node_rng["Game RNG<br/>[rng.rs]"]
end

subgraph group_results_ext["Results and extensions"]
  node_plugins["Plugin system<br/>[plugins.py]"]
  node_map["Map visualization<br/>[mapview.py]"]
  node_chunkview["Chunk visualization<br/>[chunkview.py]"]
  node_worldfile["World file tools<br/>[worldfile.py]"]
end

subgraph group_setup["World data"]
  node_data_setup["Version data setup<br/>[data.py]"]
end

node_user(("Seed finder user"))
node_mojang["Mojang server data"]

node_user -->|"uses"| node_gui
node_user -->|"runs commands"| node_cli
node_gui -->|"uses editor"| node_gui_blocks
node_gui -->|"opens wizard"| node_wizard
node_gui -->|"calls"| node_api
node_cli -->|"dispatches"| node_api
node_gui_blocks -->|"uses query"| node_dsl
node_wizard -->|"builds queries"| node_gui_blocks
node_gui_blocks -->|"reads version data"| node_data_setup
node_dsl -->|"provides query form"| node_api
node_api -.->|"invokes engine"| node_engine_api
node_engine_api -->|"dispatches search"| node_search
node_engine_api -->|"dispatches checks"| node_query_eval
node_engine_api -->|"dispatches cracking"| node_cracking
node_search -->|"evaluates conditions"| node_query_eval
node_search -->|"uses acceleration"| node_gpu
node_query_eval -->|"queries seed world"| node_world
node_query_eval -->|"checks placement"| node_structures
node_query_eval -->|"checks biomes"| node_biomes
node_query_eval -->|"checks blocks"| node_terrain
node_query_eval -->|"checks loot"| node_loot
node_world -->|"compiles functions"| node_density
node_density -->|"samples noise"| node_noise
node_density -->|"uses positional RNG"| node_rng
node_world -->|"loads climate"| node_biomes
node_world -->|"loads structures"| node_structures
node_terrain -->|"applies carving"| node_carvers
node_terrain -->|"decorates chunks"| node_features
node_features -->|"uses chunk data"| node_terrain
node_cracking -->|"uses placements"| node_structures
node_cracking -->|"uses acceleration"| node_gpu
node_gui -->|"shows results"| node_map
node_gui -->|"shows chunks"| node_chunkview
node_chunkview -->|"uses map view"| node_map
node_gui -->|"loads plugins"| node_plugins
node_query_eval -.->|"supports filters"| node_plugins
node_cli -->|"dispatches exports"| node_worldfile
node_user -->|"prepares version"| node_data_setup
node_data_setup -->|"downloads server data"| node_mojang

click node_gui "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/app.py"
click node_gui_blocks "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/blocks.py"
click node_wizard "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/wizard.py"
click node_cli "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/__main__.py"
click node_dsl "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/query.py"
click node_api "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/__init__.py"
click node_engine_api "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/lib.rs"
click node_search "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/search.rs"
click node_query_eval "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/query.rs"
click node_cracking "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/crack.rs"
click node_world "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/world.rs"
click node_biomes "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/biome.rs"
click node_structures "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/structure.rs"
click node_terrain "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/chunk.rs"
click node_features "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/feature.rs"
click node_carvers "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/carver.rs"
click node_loot "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/loot.rs"
click node_density "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/density.rs"
click node_noise "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/noise.rs"
click node_rng "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/rng.rs"
click node_gpu "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/gpu.rs"
click node_plugins "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/plugins.py"
click node_map "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/mapview.py"
click node_chunkview "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/chunkview.py"
click node_worldfile "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/worldfile.py"
click node_data_setup "https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/data.py"

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_gui,node_gui_blocks,node_wizard,node_cli,node_user toneBlue
class node_dsl,node_api,node_engine_api,node_search,node_query_eval,node_cracking,node_gpu toneAmber
class node_world,node_biomes,node_structures,node_terrain,node_features,node_carvers,node_loot,node_density,node_noise,node_rng,node_mojang toneMint
class node_plugins,node_map,node_chunkview,node_worldfile toneRose
class node_data_setup toneIndigo
```

## Components

### User interfaces

- [Desktop GUI](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/app.py): `sft/gui/app.py`
- [Visual query editor](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/blocks.py): `sft/gui/blocks.py`
- [Query wizard](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/wizard.py): `sft/gui/wizard.py`
- [CLI commands](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/__main__.py): `sft/__main__.py`

### Query and search

- [Query DSL](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/query.py): `sft/query.py`
- [Python API](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/__init__.py): `sft/__init__.py`
- [Rust engine API](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/lib.rs): `engine/src/lib.rs`
- [Seed search](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/search.rs): `engine/src/search.rs`
- [Query evaluation](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/query.rs): `engine/src/query.rs`
- [Seed cracking](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/crack.rs): `engine/src/crack.rs`
- [GPU acceleration](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/gpu.rs): `engine/src/gpu.rs`

### World generation model

- [Seeded world model](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/world.rs): `engine/src/world.rs`
- [Biome climate search](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/biome.rs): `engine/src/biome.rs`
- [Structure placement](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/structure.rs): `engine/src/structure.rs`
- [Chunk terrain](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/chunk.rs): `engine/src/chunk.rs`
- [Features and decoration](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/feature.rs): `engine/src/feature.rs`
- [Terrain carvers](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/carver.rs): `engine/src/carver.rs`
- [Chest loot](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/loot.rs): `engine/src/loot.rs`
- [Density functions](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/density.rs): `engine/src/density.rs`
- [Worldgen noise](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/noise.rs): `engine/src/noise.rs`
- [Game RNG](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/engine/src/rng.rs): `engine/src/rng.rs`

### Results and extensions

- [Plugin system](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/plugins.py): `sft/plugins.py`
- [Map visualization](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/mapview.py): `sft/gui/mapview.py`
- [Chunk visualization](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/gui/chunkview.py): `sft/gui/chunkview.py`
- [World file tools](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/worldfile.py): `sft/worldfile.py`

### World data

- [Version data setup](https://github.com/jackstanton6/seedfinderstoolkit/blob/master/sft/data.py): `sft/data.py`

### Other components

- **Seed finder user**
- **Mojang server data**

## Connections

- Seed finder user → Desktop GUI: uses (evidence: `README.md`)
- Seed finder user → CLI commands: runs commands (evidence: `README.md`)
- Desktop GUI → Visual query editor: uses editor (evidence: `sft/gui/app.py`)
- Desktop GUI → Query wizard: opens wizard (evidence: `sft/gui/app.py`)
- Desktop GUI → Python API: calls (evidence: `sft/gui/app.py`)
- CLI commands → Python API: dispatches (evidence: `sft/__main__.py`)
- Visual query editor → Query DSL: uses query (evidence: `sft/gui/blocks.py`)
- Query wizard → Visual query editor: builds queries (evidence: `sft/gui/wizard.py`)
- Visual query editor → Version data setup: reads version data (evidence: `sft/gui/blocks.py`)
- Query DSL → Python API: provides query form (evidence: `sft/query.py`)
- Python API → Rust engine API: invokes engine
- Rust engine API → Seed search: dispatches search (evidence: `engine/src/lib.rs`)
- Rust engine API → Query evaluation: dispatches checks (evidence: `engine/src/lib.rs`)
- Rust engine API → Seed cracking: dispatches cracking (evidence: `engine/src/lib.rs`)
- Seed search → Query evaluation: evaluates conditions (evidence: `engine/src/search.rs`)
- Seed search → GPU acceleration: uses acceleration (evidence: `engine/src/search.rs`)
- Query evaluation → Seeded world model: queries seed world (evidence: `engine/src/query.rs`)
- Query evaluation → Structure placement: checks placement (evidence: `engine/src/query.rs`)
- Query evaluation → Biome climate search: checks biomes (evidence: `engine/src/query.rs`)
- Query evaluation → Chunk terrain: checks blocks (evidence: `engine/src/query.rs`)
- Query evaluation → Chest loot: checks loot (evidence: `engine/src/query.rs`)
- Seeded world model → Density functions: compiles functions (evidence: `engine/src/world.rs`)
- Density functions → Worldgen noise: samples noise (evidence: `engine/src/density.rs`)
- Density functions → Game RNG: uses positional RNG (evidence: `engine/src/density.rs`)
- Seeded world model → Biome climate search: loads climate (evidence: `engine/src/world.rs`)
- Seeded world model → Structure placement: loads structures (evidence: `engine/src/world.rs`)
- Chunk terrain → Terrain carvers: applies carving (evidence: `engine/src/chunk.rs`)
- Chunk terrain → Features and decoration: decorates chunks (evidence: `engine/src/chunk.rs`)
- Features and decoration → Chunk terrain: uses chunk data (evidence: `engine/src/feature.rs`)
- Seed cracking → Structure placement: uses placements (evidence: `engine/src/crack.rs`)
- Seed cracking → GPU acceleration: uses acceleration (evidence: `engine/src/crack.rs`)
- Desktop GUI → Map visualization: shows results (evidence: `sft/gui/app.py`)
- Desktop GUI → Chunk visualization: shows chunks (evidence: `sft/gui/app.py`)
- Chunk visualization → Map visualization: uses map view (evidence: `sft/gui/chunkview.py`)
- Desktop GUI → Plugin system: loads plugins (evidence: `sft/gui/app.py`)
- Query evaluation → Plugin system: supports filters (evidence: `README.md`)
- CLI commands → World file tools: dispatches exports (evidence: `sft/__main__.py`)
- Seed finder user → Version data setup: prepares version (evidence: `README.md`)
- Version data setup → Mojang server data: downloads server data (evidence: `README.md`)
