{"id":50915338,"url":"https://github.com/suslmk-lee/sobi-master","last_synced_at":"2026-06-16T14:02:38.534Z","repository":{"id":363768733,"uuid":"1264800193","full_name":"suslmk-lee/sobi-master","owner":"suslmk-lee","description":"sobi-master — family budget desktop app. Import card/bank CSV statements and auto-classify recurring charges by merchant+amount fingerprint to see whose expense each one is (Go + Wails + React + Supabase)","archived":false,"fork":false,"pushed_at":"2026-06-10T08:12:21.000Z","size":377,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-10T10:09:49.077Z","etag":null,"topics":["desktop-app","golang","household-budget","personal-finance","react","supabase","typescript","wails"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/suslmk-lee.png","metadata":{"files":{"readme":"README.ko.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-10T07:34:09.000Z","updated_at":"2026-06-10T08:12:26.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/suslmk-lee/sobi-master","commit_stats":null,"previous_names":["suslmk-lee/sobi-master"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/suslmk-lee/sobi-master","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suslmk-lee%2Fsobi-master","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suslmk-lee%2Fsobi-master/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suslmk-lee%2Fsobi-master/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suslmk-lee%2Fsobi-master/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/suslmk-lee","download_url":"https://codeload.github.com/suslmk-lee/sobi-master/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/suslmk-lee%2Fsobi-master/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34408788,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-16T02:00:06.860Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["desktop-app","golang","household-budget","personal-finance","react","supabase","typescript","wails"],"created_at":"2026-06-16T14:02:37.586Z","updated_at":"2026-06-16T14:02:38.524Z","avatar_url":"https://github.com/suslmk-lee.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 소비마스터 (sobi-master)\n\n[English](README.md) | **한국어**\n\n가족 가계부 데스크톱 앱 (Go + Wails v2 + React/TS + Supabase/Postgres).\n\n카드사/은행 CSV 내역을 가져오거나 수동으로 등록하고, 한 번 분류해 두면\n\"가맹점명 + 금액 구간\" 핑거프린트 규칙으로 다음 달부터 자동 분류된다.\n예: LG유플러스 자동결제 3건(금액만 다름)을 각각 아빠/아이/인터넷으로\n한 번 라벨링하면 이후 매달 자동으로 누구 요금인지 구분된다.\n\n## 기능\n\n- **대시보드** — 월별 수입/지출/이체 요약과 전월 대비 증감, 6개월 추이 차트,\n  일별 지출 + 누적선, 카테고리/구성원 도넛 차트, 지출 TOP 가맹점, 카드 실적 위젯\n- **거래내역** — 수동 등록(현금, 회비, 경조사), 월 필터, 미분류만 보기, 모달 수정\n- **카드** — 카드사·결제일·실적기간·실적한도 등록, 현재 실적기간 달성 여부 추적,\n  카드별 가맹점/카테고리 지출 분석, 칩 색상 지정\n- **가져오기** — 카드사/은행 CSV 내역, 컬럼 자동 인식(이용일/가맹점/금액/입금/출금),\n  EUC-KR 인코딩 지원, 중복 건너뛰기\n- **자동 분류** — 분류를 확정할 때마다 핑거프린트 규칙(가맹점 + 금액 ±8%)을 학습,\n  설정 탭에서 규칙 관리/삭제\n\n## 실행\n\n```sh\nwails dev      # 개발 모드 (핫 리로드)\nwails build    # 배포 빌드 → build/bin/sobi.app (Windows 에서 빌드하면 .exe)\n```\n\n## 설정 파일 (config.json) — 필수\n\n앱이 Supabase 에 접속하려면 설정 파일이 있어야 한다. 파일이 없으면\n첫 실행 때 빈 템플릿이 자동 생성되므로 그 파일을 열어 채우면 된다.\n\n### 경로\n\n| OS      | 경로                                                  |\n|---------|-------------------------------------------------------|\n| macOS   | `~/Library/Application Support/sobi/config.json`       |\n| Windows | `%AppData%\\sobi\\config.json` (보통 `C:\\Users\\\u003c사용자명\u003e\\AppData\\Roaming\\sobi\\config.json`) |\n| Linux   | `~/.config/sobi/config.json`                            |\n\n### 내용\n\n```json\n{\n  \"database_url\": \"postgresql://postgres.xxxxxxxxxxxx:비밀번호@aws-1-ap-southeast-1.pooler.supabase.com:5432/postgres\"\n}\n```\n\n- `database_url` 은 Supabase 대시보드 → 상단 **Connect** 버튼 → **Session pooler** URI 를 복사해서 넣는다.\n  (Direct connection 은 IPv6 전용이라 일반 가정망에서는 Session pooler 권장.\n  Transaction pooler(6543 포트)를 넣어도 앱이 자동으로 호환 모드로 동작한다.)\n- `[YOUR-PASSWORD]` 부분을 실제 DB 비밀번호로 바꾼다.\n  비밀번호에 `* : @ / !` 같은 특수문자가 있어도 그대로 붙여넣으면 된다 (앱이 자동 인코딩).\n- Windows 메모장으로 저장해도 된다 (UTF-8 BOM 허용).\n\n같은 `database_url` 을 다른 PC 의 config.json 에 넣으면 같은 가계부를 공유한다.\n\n### 데이터 이전\n\n앱이 접속했을 때 Supabase 가 비어 있고, 같은 폴더에 이전 버전의 로컬 DB\n(`sobi.db`)가 있으면 모든 데이터를 자동으로 Supabase 로 옮긴다. (로컬 파일은 백업용으로 남는다)\n\n## 로그 파일 (sobi.log)\n\nDB 연결 실패, 등록/수정 오류 등 모든 백엔드 오류가 기록된다.\n문제가 생기면 이 파일을 먼저 확인한다. (직접 만들 필요 없음 — 앱이 자동 생성)\n\n| OS      | 경로                                              |\n|---------|----------------------------------------------------|\n| macOS   | `~/Library/Application Support/sobi/sobi.log`       |\n| Windows | `%AppData%\\sobi\\sobi.log`                            |\n| Linux   | `~/.config/sobi/sobi.log`                            |\n\n연결에 실패해도 앱은 종료되지 않고 화면 상단에 오류 배너가 뜨며,\n설정을 고친 뒤 \"다시 연결\" 버튼을 누르면 재시작 없이 복구된다.\n\n## 구조\n\n- `app.go` — Wails 바인딩 (프론트엔드에서 호출하는 API, 연결 재시도/로깅)\n- `internal/store` — Supabase(Postgres) 스키마/쿼리, 설정/로그 경로, SQLite 마이그레이션\n- `internal/classifier` — 자동 분류 규칙 학습/매칭 (금액 허용오차 ±8%)\n- `internal/importer` — 카드사/은행 CSV 파서 (헤더 키워드 자동 인식, EUC-KR 지원)\n- `frontend/src/pages` — 대시보드 / 거래내역(수동 등록 포함) / 카드 / 가져오기 / 설정\n\n## 테스트\n\nDB 테스트는 Postgres 가 필요하다 (없으면 자동 건너뜀):\n\n```sh\ndocker run -d --rm --name sobi-test-pg -e POSTGRES_PASSWORD=test -e POSTGRES_DB=sobi -p 55432:5432 postgres:16-alpine\nTEST_DATABASE_URL='postgres://postgres:test@localhost:55432/sobi?sslmode=disable' go test ./...\ndocker stop sobi-test-pg\n```\n\n## 개념\n\n- **귀속자(member)**: 돈이 누구를 위해 쓰였는가 (아빠/엄마/아이/공동)\n- **카테고리(category)**: 용도. kind 가 수입/지출/이체를 구분 (급여·통신비·대출상환·회비·투자이체 등)\n- **결제수단(payment method)**: 어느 카드/현금/계좌로 나갔는가. 카드는 카드 탭에서 결제일/실적기간/실적한도 관리\n- **규칙(rule)**: 분류를 확정할 때마다 자동 학습. 설정 탭에서 확인/삭제\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuslmk-lee%2Fsobi-master","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsuslmk-lee%2Fsobi-master","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsuslmk-lee%2Fsobi-master/lists"}