{"id":49591307,"url":"https://github.com/ganfay/split-core","last_synced_at":"2026-05-04T01:01:47.369Z","repository":{"id":350713770,"uuid":"1207889230","full_name":"ganfay/split-core","owner":"ganfay","description":"SplitCore — High-performance Telegram bot for tracking shared group expenses. Built with Go 1.26.2, PostgreSQL, and Clean Architecture. Split bills, track debts, and manage shared finances effortlessly.","archived":false,"fork":false,"pushed_at":"2026-04-27T14:05:59.000Z","size":31502,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-04-27T16:07:13.887Z","etag":null,"topics":["backend","clean-architecture","docker","expense-tracker","golang","postgresql","solid","telegam-bot"],"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/ganfay.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-11T14:41:26.000Z","updated_at":"2026-04-27T14:04:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ganfay/split-core","commit_stats":null,"previous_names":["ganfay/new-project","ganfay/splitcore","ganfay/split-core"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ganfay/split-core","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganfay%2Fsplit-core","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganfay%2Fsplit-core/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganfay%2Fsplit-core/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganfay%2Fsplit-core/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganfay","download_url":"https://codeload.github.com/ganfay/split-core/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganfay%2Fsplit-core/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32590466,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"ssl_error","status_checked_at":"2026-05-03T22:09:10.534Z","response_time":103,"last_error":"SSL_read: 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":["backend","clean-architecture","docker","expense-tracker","golang","postgresql","solid","telegam-bot"],"created_at":"2026-05-04T01:01:02.268Z","updated_at":"2026-05-04T01:01:47.334Z","avatar_url":"https://github.com/ganfay.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🚀 SplitCore — Telegram Expense Organizer\n\n[![SplitCore CI](https://github.com/GanFay/SplitCore/actions/workflows/ci.yml/badge.svg)](https://github.com/GanFay/SplitCore/actions/workflows/ci.yml)\n\n**SplitCore** is a Telegram bot designed to automate shared expense tracking for groups of friends, travelers, or event organizers. No more messy Excel sheets or \"who owes whom\" arguments.\n\n## 🔥 The Core Idea\nUsers create \"Funds\" (events), invite friends via unique deep-links, and record their expenses. The bot automatically calculates the balance: who overpaid and who needs to settle their debt using a greedy matching algorithm to minimize transactions.\n\n![SplitCore Demo.gif](demo2.gif)\n\n\n![SplitCore Demo.mp4](demo.mp4)\n\n## 🛠 Tech Stack\n* **Language:** Go (Golang) 1.26.2\n* **Framework:**[telebot.v4](https://github.com/tucnak/telebot) (Telegram Bot API)\n* **Database:** PostgreSQL\n* **Driver:** [pgx/v5](https://github.com/jackc/pgx) (Connection Pool)\n* **State Management:** Redis 8.6.2 via [go-redis/v9](https://github.com/redis/go-redis) for persistent FSM.\n* **Infrastructure:** Docker, Docker Compose, Makefile.\n* **Migrations:** [golang-migrate](https://github.com/golang-migrate/migrate).\n\n## 🏗 Architecture (Clean Architecture)\nThe project is built with a strict separation of concerns, ensuring high testability and scalability:\n- `cmd/bot/` — Entry point, initialization, and Dependency Injection.\n- `internal/domain/` — Business entities, Data models, and Core interfaces.\n- `internal/repository/` — Database access layer (PostgreSQL implementation).\n- `internal/usecase/` — Core business logic, math calculations, and data processing.\n- `internal/delivery/telegram/` — Bot-specific UI logic (handlers, menus, router).\n- `internal/pkg/` — Internal utilities (e.g., deep-link generators).\n\n## 📍 Roadmap\n**MVP (Completed) ✅**\n- [x] Clean Architecture setup and Dependency Injection.\n- [x] PostgreSQL integration with migrations.\n- [x] FSM for user input handling and seamless UX.\n- [x] Fund creation and unique Deep-Link generation.\n- [x] Expense logging and history tracking.\n- [x] Advanced debt calculation algorithm (Settle Up).\n- [x] Move FSM states from in-memory to Redis for persistence and horizontal scaling.\n- [x] Graceful shutdown implementation.\n- [x] Table-Driven Unit Tests for the settlement math module.\n- [x] CI/CD Pipeline (GitHub Actions + golangci-lint).\n\n**V1.1.0\n- [x] Virtual Users (Add members without Telegram accounts).\n\n**Enhancements (Future) 🚀**\n- [ ] Deploy to VPS (DigitalOcean).\n- [ ] Multi-currency support.\n\n## 🚀 Getting Started (Dev)\n\n### Required Docker, docker compose.\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/GanFay/SplitCore.git\n   ```\n2. Set up environment variables in a `.env` file (Bot token, DB credentials).\n3. Start the database and application using Makefile:\n   ```bash\n   make services-run\n   ```\n4. Run migrations (if executing locally):\n   ```bash\n   make migrate-up\n   ```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganfay%2Fsplit-core","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganfay%2Fsplit-core","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganfay%2Fsplit-core/lists"}