pear

command module
v0.0.0-...-9e91710 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: MIT Imports: 17 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

Pear

A terminal personal finance tracker.

Pretty much entirely vibecoded 👾

Preview ✨

Features

  • Tracks income and expenses
  • Built in currency selector menu
  • A year → month → ledger drill-down
  • A monthly budget setting and category/month spending charts
  • 21 built-in color themes, switchable from the command palette
  • Export to CSV, XLSX, or JSON — always dropped in ~/Downloads

Everything is stored locally — no account, no hassle.

Prerequisites

You'll need Go installed (1.21+).

That's it.

Don't have Go yet?
Arch
sudo pacman -S go
Debian / Ubuntu (and friends)
sudo apt install golang-go
macOS (Homebrew)
brew install go

Works the same on:

  • Linux
  • MacOS
  • Windows

Installation

go install github.com/ahaan-shah/pear@latest

This drops a pear binary in $(go env GOPATH)/bin (usually ~/go/bin). Make sure that's on your PATH:

# add to your shell config (~/.zshrc, ~/.bashrc, whatever you're rocking)
export PATH="$HOME/go/bin:$PATH"

Reload your shell, then just run:

pear
Building from source (if you wanna clone this repo)
git clone https://github.com/ahaan-shah/pear.git
cd pear
go build -o pear .
./pear

Quick start

First launch seeds a few sample transactions so the ledger isn't empty. From there:

Key Does what
↑ / ↓ scroll up or down
enter select choice
a / e / d add / edit / delete a transaction (ledger stage)
tab switch focus to/from the budget input (ledger stage)
alt+← / alt+→ step back / forward a stage
ctrl+p command palette — currency, themes, export, keybindings
q / ctrl+c quit

Your data lives at ~/.config/pear/ (or your OS's equivalent). Exports always land in ~/Downloads.

License

MIT — Do what you want with it.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL