A modern, AI-powered interactive timeline application that visualizes your life week by week. Built during Anveshan Jun 2025 hackathon with a focus on polished UX, advanced AI features, and meaningful personal insights.
Built By Function Force Team or Shift Left Legends ( whichever team name you like more ) Aman , Pavan and Subrata
LifeWeeks An Modern AI Powered Application : The What How Why
-
Interactive Life Timeline: Visualize your entire life as a grid of weeks (inspired by the "4,000 weeks" concept)
-
Smart Event Management: Add, edit, and organize life events with intelligent categorization
-
AI-Powered Sentiment Analysis: Automatic emotional tone detection using Hugging Face models
-
Historical Context: Connect personal events with significant world events

-
Life Chapters: Organize your life into meaningful phases with AI-generated artwork

-
Export Timeline: Export your life timeline as an image or PDF

-
Anniversary Reminders: Get notified on important dates and milestones

- Narrative Generation: AI creates meaningful connections between personal and historical events
- Sentiment Analysis: Advanced emotion detection using
cardiffnlp/twitter-roberta-base-sentiment-latest - Art Generation: AI-generated prompts for life chapter artwork
- Personal Insights: Pattern recognition and life trend analysis
- Smart Categorization: Intelligent event classification
- Responsive Design: Beautiful interface that works on all devices
- Smooth Animations: Framer Motion powered interactions
- Modern Landing Page: Compelling hero sections and feature showcases
- Dark/Light Themes: Adaptive color schemes
- Toast Notifications: Real-time feedback for user actions
- Next.js 14 with App Router
- TypeScript for type safety
- Tailwind CSS for styling
- Framer Motion for animations
- Heroicons for iconography
- React Hot Toast for notifications
- Supabase for authentication and database
- Hugging Face Inference API for AI features
- Row Level Security for data protection
- Server Actions for mutations
cardiffnlp/twitter-roberta-base-sentiment-latest- Sentiment analysismicrosoft/DialoGPT-medium- Text generation- Custom fallback algorithms for reliability
- Node.js 18+ and npm
- Supabase account
- Hugging Face API key
-
Clone and install:
git clone https://github.com/p4r1ch4y/FunctionForce_LifeInWeeks.git cd FunctionForce_LifeInWeeks-main npm install -
Environment setup:
cp .env.example .env.local
Fill in your environment variables:
NEXT_PUBLIC_SUPABASE_URL=your-supabase-url NEXT_PUBLIC_SUPABASE_ANON_KEY=your-supabase-anon-key HUGGINGFACE_API_KEY=your-huggingface-api-key
-
Database setup: Run this SQL in your Supabase SQL editor:
-- Users table (extends Supabase Auth) create table public.users ( id uuid references auth.users on delete cascade, email text, birthdate date, primary key (id) ); -- Personal Events table create table public.personal_events ( id uuid default uuid_generate_v4() primary key, user_id uuid references public.users on delete cascade, date timestamp with time zone, title text, description text, category text check (category in ('Career', 'Education', 'Personal', 'Travel')), sentiment text check (sentiment in ('positive', 'negative', 'neutral')), created_at timestamp with time zone default timezone('utc'::text, now()) ); -- Enable Row Level Security alter table public.users enable row level security; alter table public.personal_events enable row level security; -- RLS Policies create policy "Users can manage their own data" on public.users for all using (auth.uid() = id); create policy "Users can manage their own events" on public.personal_events for all using (auth.uid() = user_id);
-
Run the application:
npm run dev
-
Open in browser: http://localhost:3000
- Hero section with animated timeline preview
- Feature showcase with modern cards
- Statistics section
- Call-to-action sections
- Timeline View: Interactive week grid with hover effects and detailed modals
- Event Manager: Full CRUD operations with filtering and sorting
- Life Chapters: AI-generated artwork for different life phases
- AI Insights: Pattern analysis and personalized recommendations
- Modern sign-in/sign-up forms with validation
- Password strength indicators
- Smooth animations and error handling
Uses Hugging Face's cardiffnlp/twitter-roberta-base-sentiment-latest model with fallback keyword analysis for reliability.
Connects personal events with historical context using microsoft/DialoGPT-medium to create meaningful stories.
Creates detailed prompts for AI art generation based on life events and themes.
Analyzes patterns in:
- Sentiment trends over time
- Life area focus (career, personal, etc.)
- Seasonal patterns
- Growth indicators
- Row Level Security (RLS) in Supabase
- Server-side validation with Zod schemas
- Protected API routes with authentication checks
- Input sanitization and XSS protection
- Environment variable protection
- CSRF protection via Next.js
- Uses proven, stable versions of all packages
- Excellent Windows compatibility
- Minimal setup requirements
- Compelling landing page
- Smooth animations and transitions
- Real-time AI processing
- Interactive timeline visualization
- Professional UI/UX design
- Clean, well-documented codebase
- TypeScript for better code quality
- Modular component architecture
- Clear separation of concerns
- Mobile-first approach
- Tablet-optimized layouts
- Desktop-enhanced features
- Touch-friendly interactions
npm run build
# Deploy to VercelNEXT_PUBLIC_SUPABASE_URL=your-production-supabase-url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-production-supabase-anon-key
HUGGINGFACE_API_KEY=your-huggingface-api-key- Fork the repository
- Create a feature branch:
git checkout -b feature/amazing-feature - Commit changes:
git commit -m 'Add amazing feature' - Push to branch:
git push origin feature/amazing-feature - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by the "4,000 Weeks" concept by Oliver Burkeman
- Hugging Face for providing excellent AI models
- Supabase for the amazing backend-as-a-service platform
- The open-source community for the incredible tools and libraries
Built with ❤️ for meaningful life reflection and personal growth.



