Sankhya (संख्या, "number") is a calm, lightweight, offline spreadsheet for macOS. It's built with Tauri 2, React and TypeScript.
It covers the parts of Excel that matter day to day, without the ribbon. That means formulas, formatting, multiple sheets, sort and filter, conditional formatting, dropdowns and validation, charts, version history, Excel import/export and print to PDF.
- Grid: a virtualised canvas grid (10,000 rows × 702 columns) with Excel-style keyboard navigation, a fill handle, and resize/autofit. Copy and paste works with Excel and Numbers.
- Formulas: about 60 essential functions via HyperFormula, with autocomplete, signature hints and cross-sheet references.
- Formatting: fonts (Inter, Source Serif 4, JetBrains Mono), fills, borders, alignment, wrap and merge, and number formats (₹, %, dates, times).
- Sheets: rename, colour, hide, duplicate, reorder, an overview of all sheets, per-sheet zoom and gridlines, insert/delete rows and columns.
- Data tools: sort and filter, conditional formatting (rules, data bars, colour scales), dropdown lists, checkboxes and validation.
- Charts: bar, line and pie charts (Chart.js) that float on the sheet.
- Files: a native
.Sankhyaformat (gzipped JSON) with autosave and version history (automatic snapshots plus named versions). Import/export.xlsx(ExcelJS) and print to PDF. - Power features: find and replace across all sheets, a ⌘K command palette and a ⌘/ shortcut sheet.
- Locale: Indian digit grouping (1,24,580.00), ₹ (INR) and DD/MM/YYYY dates.
- Appearance: light and dark themes (Auto follows macOS).
Workbooks are stored in ~/Documents/Sankhya.
npm install
npm run tauri dev # run the desktop app with hot reloadnpm run dev runs the frontend alone in a browser at http://localhost:1420. It falls back to in-browser storage.
| Command | What it does |
|---|---|
npm run tauri dev |
Run the desktop app in development |
npm run tauri build |
Build Sankhya.app into src-tauri/target/release/bundle/macos/ |
npm test |
Run the unit tests (Vitest) |
npm run typecheck |
Type-check the frontend |
cd src-tauri && cargo test |
Run the Rust tests |
To install a build, quit Sankhya first, then:
ditto src-tauri/target/release/bundle/macos/Sankhya.app /Applications/Sankhya.appsrc/
brand/ Sutra logo (geometry + component) and exported SVG assets
theme/ Slate Teal palette, design tokens, ThemeProvider
model/ workbook types, store (zustand + immer), commands, sort/filter, CF, validation, charts
engine/ HyperFormula adapter, function catalogue, number formatting
grid/ canvas grid renderer, axis, chart layer
ui/ app shell, toolbar, formula bar, sheet tabs, panels, home screen, palette
io/ .Sankhya format, storage, session/autosave, xlsx, print
src-tauri/ Rust shell: file storage, atomic saves, versions, native menus and dialogs
scripts/ brand asset export (export-brand.ts) and SVG → PNG rasteriser (render-svg.swift)
To regenerate the brand assets and app icons:
node scripts/export-brand.ts
swift scripts/render-svg.swift src/brand/assets/app-icon-macos.svg src/brand/assets/app-icon-1024.png 1024
npx tauri icon src/brand/assets/app-icon-1024.pngThe design decisions and milestone history are in PLAN.md.
Sankhya is free software, licensed under the GNU General Public License v3.0 or later (see LICENSE). You may use, study, share and modify it. If you distribute it or a modified version, you must do so under the same licence and with its source code.
Sankhya uses HyperFormula under its GPL-v3 licence (licenseKey: "gpl-v3" in src/engine/engine.ts). All other dependencies (MIT, Apache-2.0, ISC and SIL OFL fonts) are GPL-3.0-compatible.