Skip to content
aimen08Public

About

A notepad calculator for Windows, inspired by Soulver. Built with Rust and GPUI.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

Repository files navigation

Tallypad icon

Tallypad

A notepad calculator for Windows. Type maths in plain text and see the answers as you type.
Inspired by Soulver, built with Rust and GPUI.

Download for Windows · Website · Releases

CI Latest release Built with Rust About 66 MB of RAM Windows MIT license

Tallypad

Inspired by Soulver. Soulver is a great notepad calculator for Mac and iPhone. Tallypad is an independent open-source project that brings the same idea to Windows. It isn't affiliated with or endorsed by Soulver's makers.

Native Rust, small footprint

Tallypad is written entirely in Rust. It renders on the GPU with GPUI, the framework behind the Zed editor. There's no Electron, no web view and no runtime to install.

Tallypad 0.1.0
Memory at idle ~66 MB working set
Download one 9.6 MB .exe, no installer
Startup opens instantly; rates and updates load in the background

Measured on Windows 11 with the release build and the welcome sheet open, after 15 seconds idle: working set 66 MB, private bytes 83 MB.

Features

Examples
Plain-text maths Lunch: $18 + 15% tip · $20 for taxi + $9 for coffee · // comments · # headings
Variables hourly rate = $45 then hourly rate * 38 (names can be several words; type hou and press Tab to autocomplete)
References sum, total, average of the lines above · prev · line 3
Percentages 20% of $340 · $80 - 25% · 10% off $250 · 5% on 200 · 15 as % of 60
Units 5 km in miles · 72 °F to °C · 60 km/h * 45 min · 3 m * 4 m · 2 GB in MB
Live currencies €250 in USD · $25/h * 8 h · 35+ currencies with live rates, cached for offline use
Functions sqrt, cbrt, abs, round, floor, ceil, sin/cos/tan (with deg), log, ln, exp, 5!
Ask Claude ? 3 pizzas at €14 shared by 7 · ? split rent 3 ways · ? combien de secondes dans une semaine
Graphs Ctrl+G charts the block you're in · plot sin(x) * 2 from -pi to pi
Number formats 5k, 2M, 1,500, 0xFF · 255 in hex / binary / octal / sci

Ask Claude (optional)

Start a line with ? and ask in plain words, in any language. When you leave the line, Tallypad sends the question and the lines above it to Claude, which replies with a Tallypad formula (€14 * 3 / 7, rent / 3). Tallypad evaluates that formula itself, so the answer counts toward totals and updates when your variables change. Answers that aren't numbers (a date, a name) are shown as text.

  • Pick Claude Opus 5.5, Sonnet 5.5 or Haiku 5.5 from the ✦ pill in the footer or the AI menu.
  • It uses your own Anthropic API key (AI → Set API Key…), stored in Windows Credential Manager. ANTHROPIC_API_KEY works too.
  • Answers are cached in %APPDATA%\Tallypad\ai-answers.json, so a question is only sent once. Ctrl+Enter asks again, or turns any line into a ? line and asks. Lines the calculator can't make sense of say so instead of showing a wrong answer.
  • Nothing is sent unless a line starts with ?.

Graphs

Ctrl+G opens a graph panel. It charts the values in the block the cursor is in, or draws a function from a line like plot x^2 from -3 to 3 (x is the variable; the range defaults to -10 to 10).

It also has:

  • A command palette (Ctrl+K) with fuzzy search over every command.
  • A custom title bar with File / Edit / View / Help menus. Windows still handles window snapping and Snap Layouts.
  • A current-line highlight that runs across both columns and slides when you move between lines, so it's clear which answer belongs to the line you're on.
  • Click any answer to copy it. Click the footer total to copy the total.
  • Self-updating. When a new release is out, an Update pill appears in the footer. One click downloads it and restarts the app.
  • Variable autocomplete. Start typing a variable's name and a popup suggests matching variables with their values. Tab or Enter inserts one, ↑/↓ pick, Esc closes.
  • Autosave. Your sheet is saved as you type (the default one lives in %APPDATA%\Tallypad\sheet.txt). Tallypad reopens the last sheet you had open, with the cursor where you left it.

Command palette Keyboard shortcuts

Keyboard shortcuts

Action Keys
Command palette Ctrl+K (or Ctrl+Shift+P)
New / Open / Save / Save as Ctrl+N · Ctrl+O · Ctrl+S · Ctrl+Shift+S
Copy sheet with results Ctrl+Shift+C
Undo / Redo Ctrl+Z · Ctrl+Y
Zoom in / out / reset Ctrl+= · Ctrl+- · Ctrl+0
Refresh exchange rates Ctrl+R
Show graph Ctrl+G
Ask Claude about the current line Ctrl+Enter
All shortcuts F1

Install

Download Tallypad.exe and run it. There's no installer. The binary isn't code-signed yet, so the first time you run it SmartScreen may ask you to confirm (More info → Run anyway).

Build from source

Requires Rust (stable) and the MSVC build tools.

git clone https://github.com/aimen08/tallypad
cd tallypad
cargo run --release

If your checkout lives in a very deep folder, set CARGO_TARGET_DIR to a short path (e.g. C:\t) to avoid Windows path-length limits.

Run the tests with cargo test. To regenerate the icon, run python assets/make_icon.py (needs Pillow).

Releasing

  1. Bump version in Cargo.toml (and assets/tallypad.rc).
  2. Commit, then tag and push: git tag v0.2.0 && git push origin v0.2.0.
  3. The Release workflow tests, builds and publishes Tallypad.exe, a zip and checksums. Running apps pick up the update automatically.

How it works

  • src/engine/: lexer → token classifier (variables, units, keywords; unknown words are dropped) → Pratt parser → values with dimensions and display units.
  • src/editor.rs: a custom GPUI element. It handles multi-line editing, IME input, selection, scrolling, the results column and the animated highlight.
  • src/workspace.rs: the title bar, menus, command palette, shortcuts/about sheets and footer.
  • src/commands.rs: a single table that generates the key bindings, menus, palette entries and shortcut sheet.
  • src/rates.rs / src/updater.rs: live exchange rates and GitHub Releases self-update.
  • src/ai.rs: ? lines: the Messages API request, answer cache and API key storage.

Credits

License

MIT

About

A notepad calculator for Windows, inspired by Soulver. Built with Rust and GPUI.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages