{"id":46695262,"url":"https://github.com/ronganbai/smart_ledger","last_synced_at":"2026-03-09T05:02:35.955Z","repository":{"id":342727304,"uuid":"1174131306","full_name":"RonganBai/Smart_ledger","owner":"RonganBai","description":"Flutter personal finance tracker with offline-first storage and Supabase cloud sync","archived":false,"fork":false,"pushed_at":"2026-03-08T19:54:23.000Z","size":17480,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-08T19:59:23.733Z","etag":null,"topics":["dart","flutter","ledger","mobile-app","personal-finance","sqlite","supabase"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/RonganBai.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.en.md","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-03-06T05:17:49.000Z","updated_at":"2026-03-08T19:49:20.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/RonganBai/Smart_ledger","commit_stats":null,"previous_names":["ronganbai/ledger","ronganbai/smart_ledger"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/RonganBai/Smart_ledger","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonganBai%2FSmart_ledger","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonganBai%2FSmart_ledger/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonganBai%2FSmart_ledger/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonganBai%2FSmart_ledger/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RonganBai","download_url":"https://codeload.github.com/RonganBai/Smart_ledger/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RonganBai%2FSmart_ledger/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30283703,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T02:57:19.223Z","status":"ssl_error","status_checked_at":"2026-03-09T02:56:26.373Z","response_time":61,"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":["dart","flutter","ledger","mobile-app","personal-finance","sqlite","supabase"],"created_at":"2026-03-09T05:02:34.668Z","updated_at":"2026-03-09T05:02:35.940Z","avatar_url":"https://github.com/RonganBai.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Ledger App\n\n[English](README.en.md) | [中文](README.zh-CN.md)\n[Demo](#demo)\n\nA multi-platform ledger app built with Flutter, supporting offline local bookkeeping, cloud sync, reporting, recurring transactions, and external bill import.\n\n## Features\n\n- Multi-account ledger management (`income`, `expense`, `pending`)\n- Offline-first local storage with Drift\n- Supabase authentication and cloud bill synchronization\n- Reports and deep analysis (trends, category ratio, history summary)\n- External bill import (WeChat Pay / Alipay / PNC)\n- Recurring transaction management\n- Chinese/English language switching, theme switching, custom background image, and pet overlay UI\n\n## Tech Stack\n\n- `Flutter` / `Dart`\n- `drift` + `sqlite` (local data)\n- `supabase_flutter` (auth + cloud sync)\n- `fl_chart` (charts)\n- `shared_preferences` (persistent settings)\n- `image_picker` / `file_picker` (image \u0026 file import)\n\n## Project Structure\n\n```text\nlib/\n  app/                 # App-level config (theme, settings, app shell)\n  data/db/             # Drift database and table definitions\n  features/\n    auth/              # Login / password reset\n    ledger/            # Ledger home and transaction flows\n    reports/           # Reporting and analytics\n    import/            # External bill import\n    settings/          # Settings and preferences\n  services/            # Cloud sync, background services, logging\n  ui/pet/              # Pet overlay UI and control logic\nsupabase/\n  ledger_bills_schema.sql  # Supabase schema + RLS policies\ndocs/\n  ARCHITECTURE.en.md   # Module and data-flow notes (English)\n```\n\n## Quick Start\n\n1. Install Flutter 3.35+ and ensure `dart --version` is `\u003e= 3.11.x`.\n2. Install dependencies:\n\n```bash\nflutter pub get\n```\n\n3. Run the app:\n\n```bash\nflutter run\n```\n\n## App Download\n\n- Releases: https://github.com/RonganBai/ledger/releases\n- Latest release: https://github.com/RonganBai/ledger/releases/latest\n\n## Supabase Setup\n\n1. Create a Supabase project.\n2. Run [`supabase/ledger_bills_schema.sql`](supabase/ledger_bills_schema.sql) in the SQL editor.\n3. Replace `Supabase.initialize(url, anonKey)` in `lib/main.dart` with your project config.\n\nFor public repositories, avoid hardcoding project keys. Prefer environment variables or build-time injection.\n\n## Demo\n\nQuick preview of the core flows and pages:\n\n- Main flow animation: `docs/media/demo.gif`\n- Home page: `docs/media/home.jpg`\n- Add bill steps: `docs/media/Add Bill1.jpg`, `docs/media/Add Bill2.jpg`\n- Reports: `docs/media/report1.jpg`, `docs/media/report2.jpg`\n- Settings: `docs/media/settings.jpg`\n\n![Demo](docs/media/demo.gif)\n\n### Screenshots\n\n| Home | Add Bill |\n| --- | --- |\n| ![Home](docs/media/home.jpg) | ![Add Bill Step 1](docs/media/Add%20Bill1.jpg) |\n\n| Add Bill (Step 2) | Reports |\n| --- | --- |\n| ![Add Bill Step 2](docs/media/Add%20Bill2.jpg) | ![Report 1](docs/media/report1.jpg) |\n\n| Reports (More) | Settings |\n| --- | --- |\n| ![Report 2](docs/media/report2.jpg) | ![Settings](docs/media/settings.jpg) |\n\n## Development \u0026 Contribution\n\n- Contribution process: [`CONTRIBUTING.en.md`](CONTRIBUTING.en.md)\n- Architecture notes: [`docs/ARCHITECTURE.en.md`](docs/ARCHITECTURE.en.md)\n- PR template: `.github/PULL_REQUEST_TEMPLATE.md`\n\n## Suggested Roadmap\n\n- Improve cloud sync conflict strategy\n- Increase unit/integration test coverage\n- Make bill import rules configurable\n- Standardize release and changelog workflow\n\n## License\n\nThis project is licensed under [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronganbai%2Fsmart_ledger","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fronganbai%2Fsmart_ledger","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fronganbai%2Fsmart_ledger/lists"}