Skip to content

About

Calculate your exact age, life stats, and milestones. A private, open-source age calculator with a live chronos dial. No accounts, no tracking.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

The Age Date mark

The Age Date

Your life, in years, days & seconds.

Calculate your exact age, life stats, and milestones.
A beautiful, private, open-source age calculator with a live chronos dial —
how old am I, how long have I lived, and what comes next. No accounts, no tracking.

Live demo GPL-3.0 license CI status GitHub stars No tracking Deploy anywhere

If this project is useful to you, a star helps more people find it. Star the repo →


The Age Date — dark theme, showing a live age and chronos dial

Why this exists

Most age calculators give you a number and a wall of ads. The Age Date is a small, carefully made instrument instead: exact calendar math, a live dial of the cycles you are already inside, the totals that make a life feel real, and a few markers ahead. Everything runs in your browser. There is no account, no backend, no analytics, and no API key.

What you get: your age in years, months, days, hours, minutes, and seconds — a live chronos dial of the year, day, hour, and minute you are currently in — life totals in months, weeks, days, hours, and seconds, plus estimates for heartbeats, breaths, steps, and full moons — a next birthday countdown with the age you will turn — upcoming milestones like 10,000 days, 500 months, a billion seconds, and round birthdays — and the classic life in weeks grid. Share a link or publish a personal page, all without a server.

It is also deliberately boring to host: one static build, no server, no environment variables required. Drop dist/ on Cloudflare Pages, Vercel, Netlify, S3, nginx — anywhere that can serve files.

Features

  • Live, calendar-exact age — years, months, days, hours, minutes, and seconds, with leap days and short months handled properly.
  • Chronos dial — four nested rings for the current year, day, hour, and minute, drawn in plain SVG. No d3, no canvas, no external chart library.
  • Life totals — months, weeks, days, hours, minutes, and seconds lived, plus playful estimates for heartbeats, breaths, steps, and full moons.
  • Next birthday — a live countdown, the age you will turn, and progress through your current orbit.
  • Milestones ahead — your next round birthday, plus day, month, hour, and second thresholds scaled to your own age, so the list is always relevant instead of pointing at the far future.
  • A life in weeks — the classic 52-squares-a-year grid, sized to a 90-year horizon (it extends itself for longer lives).
  • Share links without a server — birth dates travel in the URL hash, which browsers do not send to servers.
  • Live GitHub star count — the header and footer show the repository’s public stargazer count. A positive count is cached for an hour; zero is checked on each load so the first star appears promptly. Published personal pages skip the request.
  • Publish a personal page — open Share → Publish a personal page to download a complete, self-contained copy with your date baked in. Drop it on Cloudflare Pages, Vercel, or Netlify. No OAuth, token, or backend.
  • Dark and light themes — self-hosted variable fonts, no Google Fonts request.
  • Private by default — localStorage only. “Clear my data” removes it.
  • Accessible — semantic landmarks, keyboard-friendly controls, visible focus states, reduced-motion support, and no screen-reader spam from the ticking clock.
  • GPL-3.0 licensed — free to use, study, change, and share. If you distribute a modified version, you must share its source under the same license.

A closer look

The Age Date landing page with its chronos dial artwork

The Age Date in light theme The Age Date on a phone

Quick start

git clone https://github.com/lab1207/the-age-date.git the-age-date
cd the-age-date
npm install
npm run dev

Open http://localhost:3000. That is the whole setup. There is no .env to create, no key to request, and no service to run.

Requirements

  • Node.js 22.12+
  • npm 10+

Scripts

Command What it does
npm run dev Start the Vite dev server on port 3000
npm run build Typecheck, then build the static site into dist/
npm run preview Preview the production build locally on port 4173
npm test Run the Vitest unit suite
npm run test:watch Run tests in watch mode
npm run typecheck TypeScript only, no emit
npm run check Typecheck, test, and build in one go

Deploy anywhere

The build output is a fully static dist/ directory. There is no router, so you do not need SPA rewrites; a plain static file server is enough.

Cloudflare Pages (where this site lives)

The live site is https://the-age-date.pages.dev/. Pick one of the two setups below — enabling both means every push deploys twice.

Option A — connect the repository (no secrets)

  1. In the Cloudflare dashboard open Workers & Pages → the-age-date → Settings → Builds.
  2. Set Git repository to lab1207/the-age-date and save. If the panel warns that the project is disconnected from your Git account, reconnect the Cloudflare GitHub App and grant it access to this repository.
  3. Use framework preset None (or Vite), build command npm run build, output directory dist.
  4. Set NODE_VERSION=22 if the dashboard asks for a Node version.
  5. Deploy. Every push to main now builds and publishes automatically.

Option B — deploy from GitHub Actions

The included workflow (.github/workflows/deploy-cloudflare.yml) tests, builds, and publishes to Cloudflare Pages on every push to main. It is off by default, so it needs three one-time settings before it does anything:

Name Kind Value
CLOUDFLARE_PAGES_DEPLOY variable true — this is the switch that turns the workflow on.
CLOUDFLARE_API_TOKEN secret A Cloudflare API token with the Cloudflare Pages: Edit permission.
CLOUDFLARE_ACCOUNT_ID secret Your Cloudflare account ID (dashboard → Workers & Pages → your account → Account ID).
VITE_SITE_URL variable https://the-age-date.pages.dev — change it if you attach a custom domain.

public/_headers is copied to dist/_headers and applies the CSP, security headers, and caching rules on Cloudflare Pages.

Build environment. Cloudflare's v3 build image ships Node.js 22.16.0, and .nvmrc pins the major version to 22. If you change the Node version, set NODE_VERSION in Settings → Environment variables → Production. To point canonical and social tags at a custom domain, set VITE_SITE_URL to that domain in the same place — the build otherwise derives it from the deployment URL.

Vercel

  1. Import the repository at vercel.com/new.
  2. Vercel detects Vite. Confirm Build Command npm run build and Output Directory dist.
  3. Deploy.

vercel.json is included with immutable asset caching and security headers. No environment variables are required.

Netlify

Import the repository and deploy. netlify.toml already sets the build command, publish directory, Node version, headers, and caching.

Any static host

npm ci
npm run build

Upload the contents of dist/ to your host. It works on nginx, Apache, Caddy, S3 + CloudFront, Firebase Hosting, Surge, a Raspberry Pi, or a USB stick with a tiny web server. No redirects or rewrites are needed.

Publish a personal page

You do not need to build or fork the project to share your date. Once your dashboard is open:

  1. Choose Share → Publish a personal page.
  2. Select Download .zip. The kit is assembled in your browser; nothing is uploaded by the app.
  3. Host the ZIP or its unzipped contents:
    • Cloudflare Pages: Workers & Pages → Create → Pages → Upload assets.
    • Vercel: unzip the kit, then run npx vercel --prod inside the folder.
    • Netlify: drag the ZIP to Netlify Drop.

The kit is a complete static copy, not a redirect. It contains the app, embedded fonts, your date as the default profile, a local copy of the GPL license, security headers, and a noindex, nofollow tag. There is no build step and no network connection to the original site.

Publishing is public. Your birth date is embedded in the page and anyone with the URL can read it. The no-index tag asks search engines not to list the page, but it is not a privacy guarantee. Publish only if you are comfortable sharing that date. The app itself never uploads anything; you choose the host and control the files.

A published page hides the publish option, so a personal page cannot recursively generate another kit.

Optional: canonical URL and social previews

The build automatically infers your deployment URL on Cloudflare Pages, Vercel, and Netlify, and otherwise falls back to https://the-age-date.pages.dev. For a custom domain, or to override the inferred URL, set one optional build-time variable:

VITE_SITE_URL=https://your-domain.example

Copy .env.example to .env.local for local builds, or add the variable in your host’s build settings. If it is unset, the site still builds and runs; canonical and social URLs simply stay relative.

If you replace the bundled security headers with your own, allow https://api.github.com in connect-src so the live star count can load. The included Vercel, Netlify, and Cloudflare headers already do. Published personal-page kits do not need this exception because they skip the count request.

How the age math works

The age breakdown is calendar-exact, not a division by 365.25:

  • Months are anchored to the birth day and clamped when the target month is shorter (Jan 31 → Feb 28/29).
  • A Feb 29 birthday becomes Feb 28 in non-leap years for the purpose of “next birthday”.
  • Days borrow correctly when the current time is earlier than the birth time.
  • Total hours, minutes, and seconds use actual elapsed milliseconds.
  • Adding 1 month to Jan 31 is tested, as are leap days, birthday boundaries, and time-of-day borrowing.

If a birth time is provided, it is interpreted in your current time zone. The app does not ask for a birth city or perform historical timezone conversion. Without a birth time, the count starts at local midnight.

Two deliberate simplifications:

  • The “life in weeks” grid uses 52 squares per year and assumes a 90-year horizon by default. It is a scale, not a prediction.
  • Heartbeats, breaths, steps, and full moons are resting-average estimates, clearly labelled as such.

Privacy

The Age Date has no server component. There is nowhere for your birth date to go.

  • Stored locally: the birth date/time and theme preference live in localStorage.
  • No cookies, analytics, pixels, or third-party font requests. Fonts are bundled at build time.
  • One small outbound request: the header/footer ask GitHub’s public API for the repository’s star count. A positive count is cached in session storage for an hour; zero is checked on each load. The request carries no birth data and uses Referrer-Policy: no-referrer. Published personal pages skip it entirely and remain self-contained.
  • Share links use the URL hash (#dob=…), not query parameters. Hashes are not sent in HTTP requests, so the date does not appear in server logs or Referer headers.
  • Clear at any time: “Clear my data” in the footer removes the stored profile.
  • Publish deliberately: the personal-page kit embeds your date in its HTML. Read the warning above before hosting it.
  • No API keys. If an older version of this repository told you to set GEMINI_API_KEY, that requirement is gone.

Project structure

the-age-date/
├─ public/                 # favicon, manifest, social image, license, _headers, robots.txt
├─ src/
│  ├─ components/          # dial, forms, cards, sections, publish dialog, footer
│  ├─ hooks/               # clock tick, theme, toast, live GitHub count
│  ├─ lib/                 # date math, milestones, storage, sharing, deploy kit
│  ├─ styles/              # tokens, layout, components
│  ├─ App.tsx
│  └─ main.tsx
├─ .github/workflows/      # CI + Cloudflare Pages deploy
├─ index.html              # metadata, theme boot script, JSON-LD
├─ netlify.toml
├─ vercel.json
└─ vite.config.ts

Testing

npm test

The suite in src/lib/*.test.ts covers:

  • valid and impossible dates, including leap days
  • calendar age with month clamping and time-of-day borrowing
  • birthday rollover before/after the birth time
  • Feb 29 birthdays in non-leap years
  • cycle progress, zodiac boundaries, and birthday countdowns
  • milestone ordering and summaries

CI runs typecheck, tests, and a production build on every push and pull request.

Contributing

Issues and pull requests are welcome. Start with CONTRIBUTING.md, and please use a sample birth date in bug reports — never your real one.

The project values:

  1. Correctness over cleverness. Date math needs tests.
  2. Static over server. No backend, accounts, or tracking.
  3. Few dependencies. Prefer the platform, plain SVG, and the standard library.
  4. Care in the details. Typography, spacing, motion, and accessibility are part of the product.

License

GNU General Public License v3.0 or later © 2026 Vaibhav Hajare.

This program is free software: you can redistribute it and/or modify it under the terms of the GPL as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. It comes with no warranty. If you distribute a modified version, you must make the corresponding source available under the same license.

Acknowledgments

  • Type set in Fraunces, Manrope, and JetBrains Mono, all self-hosted via Fontsource under the SIL Open Font License.
  • Built with React and Vite.
  • Deploy-kit ZIPs are assembled in the browser with fflate, which is MIT licensed.
  • The “life in weeks” idea is a long-running internet tradition; this is a fresh, privacy-first implementation.

If The Age Date made you pause, star the repo — it helps someone else find a calmer way to measure time.

Time is yours. Spend it well.

About

Calculate your exact age, life stats, and milestones. A private, open-source age calculator with a live chronos dial. No accounts, no tracking.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages