A beautiful, interactive Django web application that calculates fascinating statistics about your life journey. Discover how many heartbeats you've lived, how many sunsets you've seen, and unlock achievements along the way!
- Calculate your exact age in years, months, days, hours, minutes, and seconds
- Real-time live counters that update every second
- Countdown to your next birthday
- Milestone tracking (10,000 days, 100,000 hours, etc.)
Calculate your pet's age in human years with species-specific multipliers:
- ๐ Dogs
- ๐ Cats
- ๐ฐ Rabbits
- ๐น Hamsters
- ๐ฆ Parrots
Unlock achievements based on your life milestones:
- ๐ Adult Unlocked (18 years)
- ๐พ Coming of Age (21 years)
- ๐ช The Thirty Club (30 years)
- ๐ 10,000 Days
- ๐ 20,000 Days
- โฐ 100K Hours
- Life Stages Timeline (Baby, Child, Teen, Adult, Elder)
- Heartbeat Animation Chart
- Time Distribution Pie Chart (Sleep, Work, Leisure)
- Milestone Progress Chart
- ๐ธ Download as Image - Share your stats on social media (Instagram, Twitter, Facebook)
- ๐ URL Sharing - Share direct links:
?d=1995-06-15 - ๐ฅ Comparison Mode - Compare stats with friends/family
- ๐จ๏ธ Print-Friendly - Professional printouts with QR codes
- ๐ Confetti Animations - Celebrate milestones with style
- Heartbeats counter
- Breaths taken
- Steps walked
- Words spoken
- Hours slept
- Meals eaten
- And much more!
- Python 3.8+
- pip (Python package manager)
- Clone the repository
git clone https://github.com/webKing021/Life-In-Numbers-Django.git
cd Life-In-Numbers-Django- Create a virtual environment
python -m venv venv- Activate virtual environment
Windows:
venv\Scripts\activatemacOS/Linux:
source venv/bin/activate- Install dependencies
pip install django- Navigate to project directory
cd LifeInNumbers- Run migrations
python manage.py migrate- Start the development server
python manage.py runserver- Open your browser
http://127.0.0.1:8000/
Life-In-Numbers-Django/
โโโ LifeInNumbers/
โ โโโ LifeInNumbers/ # Project settings
โ โ โโโ settings.py
โ โ โโโ urls.py
โ โ โโโ wsgi.py
โ โโโ stats/ # Main app
โ โ โโโ calculations.py # Age calculation logic
โ โ โโโ views.py # View handlers
โ โ โโโ urls.py # URL routing
โ โ โโโ static/
โ โ โโโ images/
โ โโโ templates/
โ โ โโโ index.html # Main page
โ โ โโโ partials/
โ โ โโโ stats_display.html
โ โ โโโ pet_stats_display.html
โ โโโ manage.py
โโโ .gitignore
โโโ README.md
- Backend: Django 5.0
- Frontend: HTML5, TailwindCSS, JavaScript
- Charts: Chart.js
- Icons: Phosphor Icons
- Animations: Canvas Confetti
- Image Export: html2canvas
- QR Codes: QRCode.js
All calculations are done in real-time. No user data is stored, ensuring 100% privacy.
Fully responsive design that works perfectly on phones, tablets, and desktops.
Pure calculations with no external API calls. Lightning-fast performance.
Meta tags, Open Graph, and Twitter Cards ready for social sharing.
POST /calculate/
Content-Type: application/x-www-form-urlencoded
birth_date=1995-06-15
calculation_type=human # or 'pet'
pet_type=dog # required if calculation_type='pet'
Response (JSON):
{
"age": {
"age_years": 29,
"age_days": 10585,
"age_hours": 254040
},
"cosmic": {
"heartbeats": 1089072000,
"breaths": 254040000
},
"achievements": [
{
"id": "adult",
"title": "Adult Unlocked!",
"icon": "๐",
"color": "blue"
}
]
}GET /?d=1995-06-15
Auto-calculates stats on page load.
- Personal: Track your life milestones
- Pet Owners: Calculate pet age in human years
- Parents: Track baby's growth
- Educators: Teach time concepts
- Social Media: Create shareable content
- Birthdays: Unique gift calculator
The app generates beautiful, shareable images perfect for:
- Instagram Stories (1080x1920)
- Twitter/X posts
- Facebook sharing
- WhatsApp status
- LinkedIn posts
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
webKing021
- GitHub: @webKing021
- Chart.js for beautiful visualizations
- Phosphor Icons for clean iconography
- TailwindCSS for rapid styling
- Django community for excellent documentation
If you find this project useful, please give it a โญ๏ธ on GitHub!
For questions or feedback, please open an issue on GitHub.
Made with โค๏ธ by webKing021 aka Krutarth Raychura.