{"id":50805521,"url":"https://github.com/arnonsang/thaichuaythaiplus","last_synced_at":"2026-06-13T00:33:12.717Z","repository":{"id":362501004,"uuid":"1259371987","full_name":"arnonsang/thaichuaythaiplus","owner":"arnonsang","description":"A single-page, offline-first helper for the Thai government ไทยช่วยไทยพลัส (60/40) co-payment subsidy (1 Jun – 30 Sep 2569 / 2026)","archived":false,"fork":false,"pushed_at":"2026-06-04T12:56:09.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-04T14:18:26.490Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://arnonsang.github.io/thaichuaythaiplus/","language":"HTML","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/arnonsang.png","metadata":{"files":{"readme":"README.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-04T12:48:57.000Z","updated_at":"2026-06-04T12:56:54.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/arnonsang/thaichuaythaiplus","commit_stats":null,"previous_names":["arnonsang/thaichuaythaiplus"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/arnonsang/thaichuaythaiplus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnonsang%2Fthaichuaythaiplus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnonsang%2Fthaichuaythaiplus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnonsang%2Fthaichuaythaiplus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnonsang%2Fthaichuaythaiplus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/arnonsang","download_url":"https://codeload.github.com/arnonsang/thaichuaythaiplus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/arnonsang%2Fthaichuaythaiplus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34268187,"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-12T02:00:06.859Z","response_time":109,"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":[],"created_at":"2026-06-13T00:33:11.017Z","updated_at":"2026-06-13T00:33:12.693Z","avatar_url":"https://github.com/arnonsang.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ไทยช่วยไทยพลัส: ตัวช่วยคำนวณสิทธิ (Helper)\n\nA single-page, offline-first helper for the Thai government **ไทยช่วยไทยพลัส (60/40)**\nco-payment subsidy (1 Jun – 30 Sep 2569 / 2026). Enter a purchase amount, see how\nmuch the government pays vs. how much you pay, record it, and track your remaining\ndaily / monthly / campaign subsidy. All data stays on your device (IndexedDB).\n\n\u003e เครื่องมือช่วยคำนวณอย่างไม่เป็นทางการ: ยอดสิทธิจริงให้ยึดตามแอปเป๋าตัง\n\n## Rules implemented\n\n| Cap | Value |\n|---|---|\n| Government share | **60%** of each purchase |\n| Gov per day | **฿200** (spend ฿333.33 → gov ฿200 + you ฿133.33) |\n| Gov per month | **฿1,000** (no rollover) |\n| Gov whole campaign | **฿4,000** (Jun–Sep 2569) |\n\n`govPays = min(0.60 × amount, ฿200−todayGov, ฿1,000−monthGov, ฿4,000−totalGov)`\nOverspend beyond the daily ฿200 gov cap is 100% on you and does **not** consume\nthe monthly budget. Daily resets each day, monthly resets each new month\n(derived automatically from saved records).\n\n## Run\n\n**Just open it**: double-click `index.html`. It works fully offline from disk;\nall data is saved locally and persists across reloads.\n\n## Install as an app (optional PWA)\n\n\"Add to home screen\" requires the file to be **served over http(s)** with the\ncompanion `sw.js` (browsers won't install from `file://`). Easiest local host:\n\n```bash\npython -m http.server 8080\n# open http://localhost:8080  →  browser shows \"Install\" / use the 📲 button\n```\n\nOr deploy the folder to any static host (GitHub Pages, Netlify, Vercel) for a\nreal installable, offline PWA.\n\n## Files\n\n- `index.html`: the entire app (HTML + CSS + JS, no dependencies).\n- `sw.js`: tiny cache-first service worker, used only when hosted.\n- `README.md`: this file.\n\n## Backup\n\nUse **ส่งออก (JSON)** to download your records, and **นำเข้า** to restore them on\na new device/browser (replace or merge). Recommended before clearing browser data.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnonsang%2Fthaichuaythaiplus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Farnonsang%2Fthaichuaythaiplus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Farnonsang%2Fthaichuaythaiplus/lists"}