Life expiry
When I entered this AI competition, I thought I'd just generate some code and be done. I was wrong.
I built this app to solve a real daily annoyance of mine: wasting money on forgotten things.
The Problem: I was constantly finding expired milk in the fridge and forgetting when my car warranty ended.
The Solution: Life Expiry; a smart, offline-capable tracker that syncs across all my devices. But the real experiment was how I built it. I wanted to push the limits of AI-native development: I had Claude act as my Lead Architect to write the entire system prompt. I used Google AI Studio to generate the frontend (HTML/CSS) and the backend logic (Firebase/Firestore). I opened the project in Google Antigravity to let its agents handle the debugging and deployment. It supports English/Persian, 4 calendar types (Gregorian, Persian, Islamic, Chinese), and 3 stunning themes.
Oh, and it's fully installable as a PWA. If you're into AI dev tools, I'd love for you to test it out and break it! 🔗 Live App: https://ha1381di.github.io/life-expiry/
waiting for your feedbacks.
Tech stack
- Antigravity (3.1 Flash-Lite)
- Google AI Studio
Links
Prompt
Act as an expert Full-Stack Developer and UI/UX Designer. Your task is to generate the complete codebase for a Progressive Web App (PWA) called "Life Expiry" using ONLY Vanilla HTML, CSS, and JavaScript (no frameworks, no Tailwind, no React).
I need you to output the code for 6 specific files in separate code blocks: `index.html`, `css/style.css`, `js/app.js`, `manifest.json`, `service-worker.js`, and `icon.svg`. Do not use placeholders like "// rest of code here". Write every single line so the app works immediately.
### 1. ARCHITECTURE & LAYOUT
- The app uses a Tabbed Interface. On desktop, tabs are at the top. On mobile (max-width: 560px), tabs are fixed to the bottom of the screen with icons and text.
- The three tabs are: "📋 My Items", "➕ Add New", and "⚙️ Settings".
- The header contains the title "⏳ Life Expiry", a language toggle button (EN/FA), and a dropdown menu for themes.
- Everything must be responsive.
### 2. DESIGN SYSTEM & THEMES
Use CSS variables on the `:root` and `[data-theme="..."]` attributes to define 3 themes. The default is 'light'.
1. Light ("Morning Dew"): bg `#f8fafc`, card `#ffffff`, text `#0f172a`, accent `#0ea5e9`.
2. Dark ("Midnight Velvet"): bg…
28 likes · 4 comments · 7 views
Comments (3)
i like the idea, it could save money and Millions of neurons 😅
it can help a lot, glad to be here
thanks<div><br></div>
nice one<div><br></div>