尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证LifeClock: your life counted in seconds, from public SSA and WHO life tables. A gentle, private life-expectancy clock with share cards and desk mode. Nothing stored.
翻译准备中
取自仓库 README
正在加载完整 README。
查看完整 README ↗Live: https://theguysaccount.github.io/lifeclock/ · Screens: docs/screens
Your life, counted in seconds. Enter a birthday, sex and country, and LifeClock shows a live count of the seconds ahead of you, on average, from public life tables: the U.S. Social Security Administration's for the US, and the World Health Organization's for 184 other countries and the world. It's an average, not a prediction, and it says so.
| What | Where | When |
|---|---|---|
| Validate, test, build, drive in headless Chrome, deploy, smoke-test, IndexNow | .github/workflows/pages.yml | every push |
| Fetch WHO (and try SSA) life tables, validate, commit, redeploy | .github/workflows/refresh.yml | monthly |
| Live end-to-end test, page and table checks, keep-alive | .github/workflows/selftest.yml | weekly |
Failure handling and the keys for the domain, analytics and posters: OPERATIONS.md.
data/ssa.json, data/who.json life tables (refreshed by refresh.yml), data/countries.json names and ISO codes
pipeline/lifetables.py fetch, parse and validate the WHO and SSA tables
pipeline/reference.py the model in Python (independent of the JS; the tests compare them)
pipeline/build.py static site generator (standard library only) -> dist/
site/assets/core.js the model in the browser; app.js the UI; selftest.js the end-to-end driver
scripts/ e2e.sh, screens.sh, og.py, indexnow.py, check_live.py, keepalive.sh
tests/ Python tests (tables, model, build) and tests/js (model, parity)
Python 3.9+, Google Chrome, Node 18+ for the JS tests.
python3 pipeline/build.py && python3 -m http.server -d dist 8000 # http://localhost:8000
python3 -m unittest discover -s tests
node --test tests/js/*.test.mjs
scripts/e2e.sh
Deploy is a push to main.
Exact age is time since local midnight on the birthday, in 365.2425-day years. Remaining years come from the SSA's single-year table (US; linear between ages) or the WHO's table at ages 0, 1, 5 … 85 (linear between; past 85, the WHO value follows the SSA curve's shape). "Prefer not to say" uses the WHO both-sexes table, or the average of the SSA's two tables. The clock counts down to the moment you pressed start plus those years.
Code: MIT. Life tables: SSA (U.S. government work, public domain) and WHO (CC BY-NC-SA 3.0 IGO); the derived data/who.json and dist/data/tables.json are shared under CC BY-NC-SA 3.0 IGO.