{"id":51150035,"url":"https://github.com/eagle-head/timekeeper-countdown","last_synced_at":"2026-06-26T05:04:46.913Z","repository":{"id":255548099,"uuid":"853078008","full_name":"eagle-head/timekeeper-countdown","owner":"eagle-head","description":"Lightweight countdown engine that powers the Timekeeper packages. Pure TypeScript.","archived":false,"fork":false,"pushed_at":"2026-03-04T20:58:59.000Z","size":870,"stargazers_count":18,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-06-14T03:13:12.146Z","etag":null,"topics":["countdown","javascript","timer","typescript"],"latest_commit_sha":null,"homepage":"https://eagle-head.github.io/timekeeper-countdown/","language":"TypeScript","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/eagle-head.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":"docs/roadmap.md","authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-06T00:24:03.000Z","updated_at":"2026-03-04T20:59:04.000Z","dependencies_parsed_at":"2025-07-24T17:16:55.789Z","dependency_job_id":"748ed6a7-969d-42d1-b2b5-29e5165ee74e","html_url":"https://github.com/eagle-head/timekeeper-countdown","commit_stats":null,"previous_names":["eagle-head/timekeeper-countdown"],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/eagle-head/timekeeper-countdown","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagle-head%2Ftimekeeper-countdown","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagle-head%2Ftimekeeper-countdown/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagle-head%2Ftimekeeper-countdown/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagle-head%2Ftimekeeper-countdown/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eagle-head","download_url":"https://codeload.github.com/eagle-head/timekeeper-countdown/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eagle-head%2Ftimekeeper-countdown/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34803682,"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-26T02:00:06.560Z","response_time":106,"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":["countdown","javascript","timer","typescript"],"created_at":"2026-06-26T05:04:42.485Z","updated_at":"2026-06-26T05:04:46.867Z","avatar_url":"https://github.com/eagle-head.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Timekeeper Countdown ⏳\n\n[![npm](https://img.shields.io/npm/v/@timekeeper-countdown/react?label=react\u0026color=blue)](https://www.npmjs.com/package/@timekeeper-countdown/react)\n[![npm](https://img.shields.io/npm/v/@timekeeper-countdown/core?label=core\u0026color=blue)](https://www.npmjs.com/package/@timekeeper-countdown/core)\n[![CI](https://github.com/eagle-head/timekeeper-countdown/actions/workflows/ci.yml/badge.svg)](https://github.com/eagle-head/timekeeper-countdown/actions/workflows/ci.yml)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nWelcome to the monorepo for **Timekeeper Countdown**. The current public release ships the React hook package; the shared countdown engine lives alongside it and powers the hook as well as future adapters.\n\n## Why Timekeeper?\n\nMost countdown libraries either lock you into a framework or sacrifice precision for simplicity. Timekeeper ships a **zero-dependency engine** that any framework can wrap, plus a React hook that uses it today.\n\n- **Wall-clock precision** — tracks elapsed time via `performance.now`, not tick counting. Pausing and resuming never drifts.\n- **Snapshot-driven API** — every tick delivers an immutable snapshot with pre-calculated `parts` (hours, minutes, seconds) and boolean helpers (`isRunning`, `isPaused`). No manual math.\n- **Testable by design** — `@timekeeper-countdown/core/testing-utils` ships a fake time provider so you can unit-test countdown logic without `setTimeout` hacks.\n- **Framework-agnostic core** — the engine has zero runtime dependencies. React today, Angular/Vue/Svelte adapters coming.\n\n## Packages\n\n| Package | Description | Status |\n| --- | --- | --- |\n| `@timekeeper-countdown/react` | React hook (`useCountdown`) that exposes the snapshot-driven timer API. | Stable / Published |\n| `@timekeeper-countdown/core` | Countdown engine, formatting helpers, testing utilities. Powers the React hook and future framework adapters. | Stable / Published |\n\nPlanned adapters (Angular, Vue, Svelte, vanilla) will reuse the same engine; documentation and APIs will expand as each becomes available.\n\n## Docs\n\nThe `docs/` folder contains the [VitePress](https://vitepress.dev/)-powered documentation site. Run the dev server locally:\n\n```bash\nnpm run docs:dev\n```\n\nOr build for production with `npm run docs:build`. The site is deployed to GitHub Pages via CI.\n\nUseful entry points:\n\n- `docs/getting-started.md` – install \u0026 render your first React timer.\n- `docs/react-integration.md` – hook API and usage patterns.\n- `docs/roadmap.md` – status and plans for additional adapters.\n\n## Development\n\nInstall dependencies once at the workspace root:\n\n```bash\nnpm install\n```\n\nKey scripts:\n\n```bash\nnpm run build        # Build all packages with tsup\nnpm run test         # Run Vitest across workspaces\nnpm run lint         # Lint via ESLint 9\nnpm run typecheck    # TypeScript --noEmit for every workspace\n```\n\nEach package also exposes the same scripts via `npm run \u003cscript\u003e --workspace \u003cname\u003e` for focused work (e.g., `@timekeeper-countdown/react`).\n\n### Package Builds\n\nBoth packages ship ESM bundles built through `tsup`. The React package publishes the hook, exports TypeScript definitions, and declares `react` / `react-dom` as peer dependencies. The core package provides the engine and shared utilities.\n\n### Tests\n\nVitest powers the unit test suites in both packages. React tests use `@testing-library/react` with fake timers supplied by the testing utilities. When iterating on a single package, use `npm run test --workspace @timekeeper-countdown/react` (or `core`).\n\n## Contributing\n\nWe welcome contributions! Please read our [Contributing Guide](CONTRIBUTING.md) to get started.\n\nBy participating in this project, you agree to abide by our [Code of Conduct](CODE_OF_CONDUCT.md).\n\n## License\n\nMIT © [Eduardo Kohn](https://www.linkedin.com/in/eduardo-kohn-56817b195/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagle-head%2Ftimekeeper-countdown","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feagle-head%2Ftimekeeper-countdown","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feagle-head%2Ftimekeeper-countdown/lists"}