SPSS-style data and variable editors, statistical procedures, syntax execution and structured output tables.
IBM SPSS Statistics کا اوپن سورس متبادل
SPSS-style data and variable editors, statistical procedures, syntax execution and structured output tables. Combines data and variable views with metadata, missing-value handling, transformations, descriptive statistics, t-tests, ANOVA, correlations, regression and other implemented procedures.
READMEGitHub پر kobaltgit/StatCraft
Note 🔬 Academic Notice: StatCraft is an independent open-science software project. It is not affiliated with or certified by IBM SPSS Statistics. Do not use for clinical diagnostic decisions or legal compliance without independent statistical replication.
StatCraft is an experimental alternative for statistical data analysis built in 100% pure Safe Rust. Developed as an open-science computational project, it combines a clean-room mathematical engine written in pure Safe Rust with native Model Context Protocol (MCP) integration for AI-assisted empirical research.
We do not claim StatCraft is a ready-made commercial replacement. It is an open-science computational experiment. We invite researchers, statisticians, and developers to explore the calculations, test edge cases against legacy suites (SPSS, R, Stata), and help make scientific computing transparent, verifiable, and reproducible.
Statistical software must never crash mid-calculation or produce silent numerical errors. StatCraft enforces strict memory safety, layered dependencies, and a zero-panic contract:
unwrap(), expect(), panic!(), and unsafe. Potential errors (singular matrices, division by zero, insufficient sample size) are propagated through typed Result<T, StatError> rather than application crashes.EngineCommand). All commands support non-destructive Undo/Redo, serialize to standard SPSS syntax (.sps), and can be scripted headlessly.DeltaBuffer for instant Undo/Redo and zero garbage collection pauses.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) protects 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 features native Model Context Protocol (MCP) integration and a local IPC socket (port 18493) for bidirectional communication with AI assistants (Antigravity, Claude, ChatGPT, Ollama, and local LLMs).
StatCraft Bridge allows researchers to connect external AI agents directly to the local analytical engine. Instead of manually writing scripts or navigating complex dialog boxes, users can query and analyze datasets via conversational prompts:
"Inspect the loaded survey dataset. Compare the mean salary between males and females using an independent-samples t-test, check Levene's test for equality of variances, and report whether the difference is statistically significant."
The connected AI agent:
127.0.0.1:18493). Research, clinical, and proprietary datasets remain strictly on your machine..sps), sort cases, filter subsets, recode variables, and run statistical procedures programmatically.Extensions -> MCP Bridge / Copilot in StatCraft. The dialog displays connection status, live logs, and one-click setup snippets for Antigravity, Claude Desktop, and Cursor.statcraft.exe --mcp inside your client's MCP configuration.We do not claim StatCraft is a complete commercial replacement. It is an open-science computational experiment. We welcome domain expertise, empirical datasets, and rigorous scrutiny to make scientific computing transparent and reproducible:
unsafe, contributing new procedures, and expanding the MCP toolset).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
# Check website benchmark matrix and documentation parity
cargo run -p xtask -j 1 -- sync-site --check
| 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_reporting | Pivot table models, hierarchical presentation, TSV, HTML, and text rendering |
crates/statcraft_bridge | Local IPC socket server (port 18493) and Model Context Protocol (MCP) server |
crates/statcraft_i18n | Localization engine powered by Project Fluent (locales/*.ftl) |
website/ | Official web portal, interactive docs, benchmarks, and binary release downloads (statcraft-mu.vercel.app) |
xtask | CI/CD automation: file-guard, layers, design-guard, parity, sync-site |
docs/ | Architecture guides, design specs, roadmaps, and development chronicle |
DialogKit).StatCraft is an independent open-science software project built in 100% pure Safe Rust with zero legacy C/Fortran code. Implementing clean-room statistical algorithms, verifiable matrix algebra, and authentic pivot tables requires sustained research, verification, and engineering effort.
If StatCraft is helpful to your empirical research, coursework, or data workflows, you can support its continued open development:
👉 https://app.lava.top/kobaltgit
(Accepts Russian cards, CIS, and international payment options)
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).
GitHub سے آخری اپ ڈیٹ: 4 گھنٹے پہلے
GitHub کے اعداد دن میں چند بار تازہ کیے جاتے ہیں۔
لاگ اِن کریں یا اکاؤنٹ بنائیں تاکہ تبصرہ کر سکیں۔
ابھی کوئی تبصرہ نہیں۔ پہلا تبصرہ آپ کریں۔
فخر سے دکھائیں: آپ کے درجے اور ریٹنگ والا لائیو کارڈ، جو خود بخود اپ ڈیٹ ہوتا ہے۔
چھوٹا والا چاہیے؟ یہ شامل کریں: ?style=flat