GitHub - kobaltgit/StatCraft: High-performance, memory-safe, and open-source statistical analysis package in 100% pure Safe Rust
High-performance, memory-safe, and open-source statistical analysis package in 100% pure Safe Rust - kobaltgit/StatCraft
High-performance, memory-safe, and open-source statistical analysis package in 100% pure Safe Rust - kobaltgit/StatCraft
StatCraft is a free, modern, open-source statistical software package built entirely in 100% pure Safe Rust. Designed as an uncompromising, clean-room alternative to proprietary statistical suites such as IBM SPSS Statistics, StatCraft combines academic precision, instantaneous launch times, and guaranteed crash immunity.
Whether you are conducting psychological research, analyzing clinical trials, teaching university statistics, or manipulating enterprise datasets, StatCraft provides an intuitive graphical interface alongside a deterministic, syntax-driven analytical engine.
Interactive workspace: Variable View metadata dictionary, syntax execution log, and canonical SPSS-style Output Viewer with structured pivot tables.
unsafe blocks, zero panics (panic!, unwrap(), expect()). Malformed datasets, empty samples, or division by zero yield explicit, typed Result<T, E> errors rather than application crashes.EngineCommand). All commands support non-destructive Undo/Redo, serialize to standard SPSS syntax (.sps), and can be scripted headlessly.--mcp flag). Enables external autonomous AI agents (Antigravity, Claude, ChatGPT, Ollama) to inspect metadata, execute batch syntax, perform mathematical computations, and stream live results into the Output Viewer.egui via ui.painter() and vector SVG icons. Strict zero-emoji and zero-unsupported Unicode symbol policy eliminates tofu squares (□) across all platforms.locales/en.ftl, locales/ru.ftl) with real-time runtime language switching.-j 1, codegen-units = 1) protect development workstations from memory exhaustion.Tip
📖 Comprehensive Feature Guide: An exhaustive reference of all available analytical procedures, data manipulations, transformation algorithms, and keyboard shortcuts is available in FEATURES.md (English) and FEATURES_RU.md (Русский).
LineIndex): $O(\log N)$ coordinate searches with zero heap allocation in uniform mode for hundreds of thousands of cases.VariableMetadata.columns).Ctrl+C / Ctrl+V) interoperable with Excel, Google Sheets, and LibreOffice with automatic row expansion.data.sort_cases with 100% reversible Undo/Redo and SPSS syntax logging.is_number_stored_as_text) with Excel-parity green corner triangle and 1-click conversion to numeric.1/A): Toolbar button for instant toggling between raw numeric codes and human-readable descriptive text labels.[ Copy Table (TSV) ] button with instant visual feedback and right-click context menus. Exports tables with clean headers and row separators specifically structured for Excel import.GET DATA, DESCRIPTIVES, T-TEST, ONEWAY).StatCraft is the world's first statistical software package natively equipped with the Model Context Protocol (MCP) and direct two-way control via autonomous AI agents (Antigravity, Claude, ChatGPT, Ollama, and local LLMs).
🔍 Why StatCraft Bridge? Zero SPSS Experience Required (Click to expand)Historically, performing rigorous statistical analysis required mastering legacy statistical GUI suites (SPSS, SAS, Stata) or writing complex code in R and Python. Researchers had to memorize arcane syntax commands (DESCRIPTIVES VARIABLES=...), navigate dozens of nested dialog boxes, or write data wrangling scripts from scratch.
With StatCraft Bridge, that barrier is completely gone: Connect your favorite AI assistant to StatCraft and describe what you want in plain human language:
The AI agent will autonomously:
127.0.0.1:18493). Your medical, corporate, or private research data never leaves your workstation..sps), sort cases, filter subsets, recode scales, handle missing values, and trigger any of StatCraft's statistical modeling procedures.Extensions -> MCP Bridge / Copilot in StatCraft. The dialog provides live server status, activity logs, and one-click configuration snippets for Antigravity, Claude Desktop, and Cursor.statcraft.exe --mcp inside your MCP client settings.StatCraft is engineered in strict compliance with the ArtCraft Layering Law. Dependencies flow strictly downwards:
L6: statcraft_app Desktop GUI (egui / eframe / DialogKit / Output Viewer)
└── L5: statcraft_syntax CommandBus, SPS syntax parser, engine transactions
├── L4: statcraft_reporting Pivot table models, TSV / HTML / Text export
└── L2: statcraft_algo Pure statistical math (Golden Oracle vs SciPy)
└── L1: statcraft_core In-memory dataset, RawTable, VariableDictionary
└── L0: statcraft_io Data codecs (CSV/TSV streaming, Excel .xlsx/.xls/.ods, SPSS .sav/.zsav)
Cross-cutting utility crates:
* statcraft_bridge Local IPC socket (18493) and Model Context Protocol (MCP) server
* statcraft_i18n Fluent localization engine with zero hardcoded strings
* xtask Developer tools: file-guard, layers, design-guard, parity, test-corpus
Clone the repository and launch the desktop application:
git clone https://github.com/kobaltgit/StatCraft.git cd StatCraft # Run StatCraft in release mode (strictly single-threaded compiler guard) cargo run --package statcraft_app --release -j 1
StatCraft enforces a strict Definition of Done (DoD). All tests and architectural linters must pass with zero warnings:
# Run all workspace unit, integration, and golden oracle tests cargo test --workspace -j 1 # Check file size limits across all crates (anti-monolith guard) cargo run -p xtask -j 1 -- file-guard # Check architectural layering rules (L0 - L6 strict downwards dependencies) cargo run -p xtask -j 1 -- layers # Check dialog UI design system compliance (DialogKit guard) cargo run -p xtask -j 1 -- design-guard # Verify SPSS feature parity status cargo run -p xtask -j 1 -- parity
| Crate / Path | Responsibility |
|---|---|
crates/statcraft_app |
Desktop user interface, docking windows, DialogKit, data grid, output viewer |
crates/statcraft_syntax |
Engine command bus, transactions, undo/redo, SPSS syntax serializer |
crates/statcraft_algo |
Pure mathematical algorithms (t-tests, ANOVA, regression, correlations, factor PCA, nonparametrics, frequencies) |
crates/statcraft_core |
In-memory DataSet, RawTable, VariableDictionary, measurement scales, metadata |
crates/statcraft_io |
Data codecs: streaming CSV/TSV, Excel workbooks (.xlsx/.xls/.ods), and SPSS files (.sav/.zsav) |
crates/statcraft_i18n |
Localization engine powered by Project Fluent (locales/*.ftl) |
xtask |
CI/CD automation: file-guard, layers, design-guard, parity |
docs/ |
Architecture guides, design specs, roadmaps, and development chronicle |
DialogKit).StatCraft is an ambitious, mathematically rigorous, clean-room statistical suite built in 100% pure Safe Rust with zero legacy C/Fortran code. Developing clean-room analytical algorithms (parametric & non-parametric tests, ANOVA, Levene, regression, syntax pipelines, and canonical pivot tables) requires immense research and mathematical verification.
If StatCraft helps your academic research, university coursework, or statistical workflows, and you would like to support its ongoing development:
This project is dual-licensed under:
You may choose either license at your option.
All brand assets and logos in assets/ are property of the StatCraft project (kobaltGIT).
Texto de github.com tal como lo publicó, leído de su página y mostrado aquí con el formato de El Autómata. El original, en github.com · Volver a la noticia de El Autómata