{"id":41708849,"url":"https://github.com/madalinpopa/gocost","last_synced_at":"2026-01-24T21:39:32.810Z","repository":{"id":298291662,"uuid":"993687424","full_name":"madalinpopa/gocost","owner":"madalinpopa","description":"Simple TUI application to manage monthly expenses","archived":false,"fork":false,"pushed_at":"2025-06-21T15:49:52.000Z","size":6744,"stargazers_count":51,"open_issues_count":2,"forks_count":3,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-21T16:31:08.511Z","etag":null,"topics":["bubbletea","budgeting","expenses","go","tui"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/madalinpopa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-31T09:54:01.000Z","updated_at":"2025-06-21T15:49:55.000Z","dependencies_parsed_at":"2025-06-10T11:12:25.069Z","dependency_job_id":"d1602fef-bcca-4bb9-b685-d59ac117d454","html_url":"https://github.com/madalinpopa/gocost","commit_stats":null,"previous_names":["madalinpopa/gocost"],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/madalinpopa/gocost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madalinpopa%2Fgocost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madalinpopa%2Fgocost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madalinpopa%2Fgocost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madalinpopa%2Fgocost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madalinpopa","download_url":"https://codeload.github.com/madalinpopa/gocost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madalinpopa%2Fgocost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28737538,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-24T21:19:41.845Z","status":"ssl_error","status_checked_at":"2026-01-24T21:13:38.675Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["bubbletea","budgeting","expenses","go","tui"],"created_at":"2026-01-24T21:39:32.321Z","updated_at":"2026-01-24T21:39:32.794Z","avatar_url":"https://github.com/madalinpopa.png","language":"Go","funding_links":[],"categories":["\u003ca name=\"financial\"\u003e\u003c/a\u003eFinancial tools"],"sub_categories":[],"readme":"# gocost\n[![Go Reference](https://pkg.go.dev/badge/github.com/madalinpopa/gocost.svg)](https://pkg.go.dev/github.com/madalinpopa/gocost)\n\n### Go cost your life... before it costs you\n\n`gocost` is a simple, fast, and keyboard-driven Terminal User Interface (TUI) application for managing your monthly expenses. Built with Go and the Bubble Tea framework, it provides a streamlined way to track where your money is going without ever leaving the terminal.\n\n![gocost demo](./assets/demo.png)\n\n## What is gocost?\n\n**gocost** is an app for tracking your essential monthly bills and recurring costs—like rent, utilities, and subscriptions—to give you a clear picture of your total cost of living each month.\n\n### What it is:\n- A tool for monitoring your main monthly payment obligations\n- Focused on tracking your essential \"cost centers\"\n- Designed to show whether your bills have been paid\n- Perfect for understanding your baseline monthly expenses\n\n### What it's not:\n- Not a detailed expense tracker for every purchase\n- Not meant for tracking daily spending like coffee, meals, or shopping\n- Not a budgeting app for discretionary spending\n\nInstead of tracking every single transaction, gocost focuses on the big picture—helping you monitor the recurring costs that make up your monthly financial foundation.\n\n## Features\n\n- 📊 Monthly expense tracking with categories and groups\n- 💰 Income management\n- 📁 Category organization with groups\n- 🔍 Category filtering by name or group\n- 💾 Local JSON data persistence\n- ⌨️ Keyboard-driven interface\n- 🎨 Adaptive colors for light/dark terminals\n\n### Keyboard Shortcuts\n\n#### Global Navigation\n- `q` / `Esc` - Go back/Quit\n- `h` / `l` - Navigate between months\n- `r` - Reset to current month (only shown when viewing a different month)\n- `t` - Toggle expense status (only shown when navigate within month expenses)\n- `i` - Manage income\n- `c` - Manage categories\n- `g` - Manage category groups\n\n#### List Navigation\n- `j` / `down` - Move down\n- `k` / `up` - Move up\n- `Enter` - Select/Edit\n- `/` - Filter items (in category view)\n- `c` - Clear filter (when filtered)\n- `a` / `n` - Add new item\n- `e` - Edit item\n- `d` - Delete item\n- `m` - Move category (in category view)\n- `p` - Populate categories from previous month (when current month is empty)\n\n#### Form Navigation\n- `Tab` / `Shift+Tab` - Navigate between fields\n- `Enter` - Save\n- `Esc` - Cancel\n\n#### Category Filtering\n- `/` - Start filtering categories (in category view)\n- `Enter` - Apply filter (while typing)\n- `c` - Clear current filter\n- `Esc` - Cancel filter input\n\nThe filter searches both category names and group names (case-insensitive). When a filter is active, you can still perform all normal operations (edit, delete, move) on the filtered results.\n\n## Project Structure\n\n```\ngocost/\n├── cmd/\n│   └── gocost/\n│       └── main.go              # Entry point: Initializes and injects dependencies\n├── internal/\n│   ├── app/                     # UI Controller: Manages views and dispatches messages\n│   │   ├── app.go\n│   │   ├── messages.go\n│   │   └── status.go\n│   ├── config/                  # Configuration management\n│   │   └── config.go\n│   ├── data/                    # Data Layer: Implements repository interfaces\n│   │   └── json_repository.go\n│   ├── domain/                  # Core models and repository interfaces\n│   │   ├── category.go\n│   │   ├── group.go\n│   │   ├── income.go\n│   │   └── monthly.go\n│   ├── service/                 # Business Logic Layer\n│   │   ├── category.go\n│   │   ├── group.go\n│   │   └── income.go\n│   └── ui/                      # UI Views/Components\n│       ├── overview.go\n│       ├── category.go\n│       └── ...\n├── go.mod\n├── go.sum\n└── README.md\n```\n\n## Dependencies\n\n- [Bubble Tea](https://github.com/charmbracelet/bubbletea) - TUI framework\n- [Lipgloss](https://github.com/charmbracelet/lipgloss) - Style definitions\n- [Viper](https://github.com/spf13/viper) - Configuration management\n- [UUID](https://github.com/google/uuid) - Unique ID generation\n- [Decimal](https://github.com/shopspring/decimal) - Precise decimal arithmetic\n\n## Installation\n\n### Download from GitHub Releases\n\nDownload the latest pre-built binary from the [GitHub Releases page](https://github.com/madalinpopa/gocost/releases):\n\n1. Go to the [releases page](https://github.com/madalinpopa/gocost/releases)\n2. Download the latest release for your platform\n3. Extract and run the binary\n\n### From source\n\n```bash\ngo install github.com/madalinpopa/gocost/cmd/gocost@v1.5.0\n```\n\n### Build locally\n\n```bash\ngit clone https://github.com/madalinpopa/gocost.git\ncd gocost\ngo build -o gocost ./cmd/gocost\n```\n\n## Development Setup\n\n1. **Clone the repository**\n   ```bash\n   git clone https://github.com/madalinpopa/gocost.git\n   cd gocost\n   ```\n\n2. **Install dependencies**\n   ```bash\n   go mod download\n   ```\n\n3. **Run the application**\n   ```bash\n   go run ./cmd/gocost\n   ```\n\n4. **Run tests**\n   ```bash\n   go test ./...\n   ```\n\n5. **Build for development**\n   ```bash\n   go build -o gocost ./cmd/gocost\n   ./gocost\n   ```\n\n## Data Storage\n\nThe application stores data in your home directory:\n- Config: `~/.gocost/config.json`\n- Data: `~/.gocost/expenses_data.json`\n\nCurrency symbol can be updated in `config.json`.\n\n## Contributing\n\n1. **Fork the repository**\n\n2. **Create a feature branch**\n   ```bash\n   git checkout -b feature/your-feature-name\n   ```\n\n3. **Make your changes**\n   - Follow Go best practices\n   - Add tests for new functionality\n   - Update documentation as needed\n\n4. **Run tests and ensure they pass**\n   ```bash\n   go test ./...\n   ```\n\n5. **Commit your changes**\n   ```bash\n   git commit -m \"Add your descriptive commit message\"\n   ```\n\n6. **Push to your fork**\n   ```bash\n   git push origin feature/your-feature-name\n   ```\n\n7. **Create a Pull Request**\n   - Describe your changes\n   - Reference any related issues\n   - Ensure all checks pass\n\n### Code Style\n\n- Use `gofmt` for formatting\n- Follow [Effective Go](https://golang.org/doc/effective_go) guidelines\n- Keep functions small and focused\n- Add comments for exported functions\n\n## License\n\nMIT License\n\n## Author\n\nMadalin Popa\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadalinpopa%2Fgocost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadalinpopa%2Fgocost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadalinpopa%2Fgocost/lists"}