Project Overview
LifeCountDown, published in the app as Life Counter, is a React Native and Expo app that turns the time you have left into a daily countdown. You enter your age, then either choose a target age or take a short lifestyle quiz that Gemini uses to estimate one. The app shows the days, months, and years remaining with an animated hourglass. A web version is available.
Problem / Context
Most people think about the time they have in abstract terms. Life Counter makes it concrete and personal with a countdown you see every day, and pairs it with small daily habits: a check-in, a short note, and letters to your future self.
Key Features
- Onboarding with an age picker and two ways to set a target age: choose it yourself, or answer six lifestyle questions and optional health conditions and let Gemini estimate a target age with a confidence score and personal feedback.
- A dashboard with an animated hourglass, a live countdown to midnight, and month, year, and life progress.
- Daily check-ins with a mood, a 1–5 rating, and an intention, shown on a monthly calendar with streaks.
- Time capsules: letters to your future self that unlock after a chosen period, with an animated opening.
- A community tab with daily quotes and historical figures compared by the age they died.
- A daily reminder notification that opens the check-in screen, and three Android home-screen widgets for life, year, and today progress.
- Full Chinese and English interfaces.
Tech Stack
The app uses React Native 0.81, Expo SDK 54, and TypeScript, with React Navigation, Reanimated, and react-native-svg for the hourglass. React Native Web serves the browser version.
Architecture
Personal data stays on the device. Age, target age, check-ins, and capsules are stored in AsyncStorage as a single user record, and no account is required. Firestore provides shared content, such as quotes and historical figures, that the app can read but not change.
The lifestyle quiz sends the answers to Gemini 2.5 Flash, which returns a target age, a confidence score, and feedback; the app falls back to a default estimate if the request fails. A GitHub Actions workflow runs every Monday to generate seven new bilingual quotes with Gemini and add them to Firestore.
Technical Challenges
One React Native codebase still has platform-specific features. Home-screen widgets and scheduled notifications need an Android development or production build and do not run in Expo Go or the browser. Each widget is written both as an Android widget and as an in-app preview, and the two share one set of layout constants so they stay in sync.
Engineering Decisions / Trade-offs
- Keep personal data on the device instead of requiring an account.
- Offer a manual target age alongside the AI estimate, and fall back to a default when the AI request fails.
- Refresh content with a scheduled Gemini job instead of editing quotes by hand.
- Use one animated hourglass component everywhere, with props for fill level and animation.
- Use Expo for one codebase across Android, iOS, and the web.
Screenshots

Results
The web version is published on Vercel and opens to onboarding. Notifications and home-screen widgets run on Android through a development build, and an Android production build is configured with EAS for Google Play. The weekly quote job runs on GitHub Actions.