gioser

tawasuyu/nakui

> Excel-style reactive engine, on solid principles — exact Decimal, topological cascade, WAL, time-travel — in Rust, with a Llimphi UI.

Rust 82Markdown 14JSON 12TOML 101471 Definiciones

⎇ mainHistoria

README.md

nakui

Excel-style reactive engine, on solid principles — exact Decimal, topological cascade, WAL, time-travel — in Rust, with a Llimphi UI.

nakui is a spreadsheet with a head: exact Decimal (not f64), topological-order cascade, WAL before applying, atomic invariants, and time-travel via immutable history. Three views over the same token graph — matrix (classic Excel), graph (dependency DAG) and form (single record) — guided by the schema's view_hint. Long-term it is a DAG token engine, foundation for verticals (Fintech, IAM, Logistics, MedTech).

<p align="center"> <img src="docs/nakui_showreel.gif" alt="nakui showreel — a live spreadsheet with computed formulas, an ERP dashboard of stat cards and charts, and a dependency graph view" width="900"> <br> <sub>one shell, three views — live spreadsheet (yupay formulas) · ERP dashboard · dependency graph</sub> </p>

Run

cargo run --release -p nakui-ui-llimphi        # the ERP/sheet/graph shell
cargo run --release -p nakui-sheet-llimphi     # the matrix (spreadsheet) view
cargo run --release -p nakui-explorer-llimphi  # the token-graph / event-log explorer

Install

cargo build --release
# binaries land in target/release/

Crates

CrateRole
nakui-coreEngine: tokens, schema, DAG, cascade, WAL; Rhai executor + optional SurrealDB.
nakui-backendGUI-agnostic backend: MemoryStore + EventLog + executors, WAL/snapshot recovery.
nakui-sheetMatrix view: ranges, cells, formulas, pivot engine.
nakui-sheet-nakuicorenakui-sheet ↔ nakui-core event-log bridge.
nakui-sheet-llimphiMatrix (spreadsheet) UI on Llimphi.
nakui-ui-llimphiUI shell — view selector, sidebar, the four meta-views.
nakui-explorer-llimphiToken-graph / event-log explorer.
yupay-coreExcel-style formula engine: lex / parse / eval, bilingual (es/qu/en).
yupay-fnsFunction catalog (SUMA, BUSCARV, SI…) over yupay-core.

Production modules live in 01_yachay/nakui/modules/ — crm, inventory, sales, treasury: Nickel schema (schema.ncl) + Rhai morphisms, executed by the nakui-core executor kernel.

How dependencies work

nakui is a full app: its UI integrates the meta-runtime, panels and content-addressed sources. Llimphi and every foundational dependency are pulled as git dependencies from the tawasuyu monorepo — the suite's source of truth. The engine crates (nakui-core, nakui-sheet, yupay-core, yupay-fns) are pure compute; only the *-llimphi crates pull the GPU UI stack.

Considerations

License

MIT. Builds on Llimphi and the tawasuyu suite.