Page 1 of 7
System Requirements Document (SRD) for amber-python
1. Introduction
The amber-python project is a comprehensive Python-based application designed to promote digital wellness by helping users reduce excessive phone and app usage. This "Smart Detox - Personalized Digital Wellness Guide" serves as a Screen Time Detox Assistant, offering personalized insights, gamified engagement, and AI-driven recommendations to build healthier digital habits.
This document outlines the system requirements for the full production-ready application, ensuring all features are implemented and functional. The application will cater to users globally, with a focus on intuitive design and impactful features.
Page 2 of 7
2. System Overview
The amber-python application is a digital wellness tool that tracks app usage, provides actionable insights, and encourages users to adopt healthier digital habits. It combines data analytics, AI-driven insights, and gamification to create an engaging and effective experience. The app will be built using Python and Streamlit for a clean, modern UI, and will simulate realistic app usage data for functionality.
Key highlights of the system:
- Tracks daily and weekly screen time.
- Detects excessive usage patterns and addiction zones.
- Offers personalized suggestions and AI-driven insights.
- Includes gamified elements like streaks, badges, and leaderboards.
- Provides focus tools like timers, app limits, and Pomodoro sessions.
The application will be fully functional, beginner-friendly, and optimized for local deployment.
Page 3 of 7
3. Functional Requirements
The following features will be implemented in the amber-python application:
- As a User, I should be able to track daily screen time.
- As a User, I should be able to view weekly screen time analytics.
- As a User, I should be able to see app-wise usage breakdown.
- As a User, I should be able to detect the most used app.
- As a User, I should be able to identify peak usage times.
- As a User, I should be able to view category-based usage (e.g., social, study).
- As a User, I should be able to compare day-to-day usage.
- As a User, I should be able to generate a weekly summary report.
- As a User, I should be able to set and track screen time goals.
- As a User, I should be able to track usage streaks.
- As a User, I should receive overuse detection alerts (rule-based AI).
- As a User, I should receive personalized usage warnings.
- As a User, I should receive addiction alerts for specific apps.
- As a User, I should see next-day usage predictions (basic logic).
- As a User, I should receive AI-generated daily summaries.
- As a User, I should see behavior pattern classifications (e.g., night user, binge user).
- As a User, I should receive suggestions for the best focus times.
- As a User, I should receive smart break suggestions.
- As a User, I should receive weekly performance feedback.
- As a User, I should see trend improvement detection.
- As a User, I should use a focus mode timer.
- As a User, I should set app time limits.
- As a User, I should receive warnings when app limits are exceeded.
- As a User, I should simulate app blocking for overuse.
- As a User, I should use a Pomodoro timer.
- As a User, I should receive break reminder alerts.
- As a User, I should track deep work sessions.
- As a User, I should activate a no-phone session mode.
- As a User, I should set daily detox goals.
- As a User, I should track focus streaks.
- As a User, I should see a detox score (0–100).
- As a User, I should rate my daily performance.
- As a User, I should earn achievement badges.
- As a User, I should progress through levels.
- As a User, I should earn streak rewards.
- As a User, I should receive overuse penalties.
- As a User, I should see a simulated leaderboard.
- As a User, I should participate in challenge modes (e.g., reduce usage %).
- As a User, I should earn XP points.
- As a User, I should receive weekly grades.
- As a User, I should interact with dashboard cards UI.
- As a User, I should see color-coded indicators (red/green/yellow).
- As a User, I should interact with interactive charts.
- As a User, I should view progress bars for goals.
- As a User, I should experience a minimal, clean UI design.
- As a User, I should interact with an AI chatbot for digital wellness.
- As a User, I should use a voice-based assistant (basic simulation).
- As a User, I should receive smart notification simulations.
- As a User, I should receive habit replacement suggestions.
- As a User, I should generate a personalized daily schedule.
Page 4 of 7
4. User Personas
1. General User
- Description: Individuals seeking to reduce screen time and build healthier digital habits.
- Goals: Track usage, receive insights, and achieve detox goals.
- Pain Points: Difficulty managing screen time and breaking app addiction.
2. Gamified User
- Description: Users motivated by rewards, streaks, and challenges.
- Goals: Earn badges, maintain streaks, and compete on leaderboards.
- Pain Points: Lack of engaging tools to sustain motivation.
3. Focus-Oriented User
- Description: Individuals aiming to improve productivity and focus.
- Goals: Use focus tools like timers, app limits, and no-phone modes.
- Pain Points: Distractions and inability to maintain focus.
5. Visuals Colors and Theme
Page 5 of 7
Color Palette
- Background: #F5F9FF (soft blue-white)
- Surface: #FFFFFF (pure white)
- Text: #2C3E50 (dark slate gray)
- Accent: #FF6F61 (vibrant coral)
- Muted: #BDC3C7 (light gray)
This palette reflects a clean, modern, and calming aesthetic, aligning with the app's wellness theme.
6. Signature Design Concept
Interactive Digital Wellness Galaxy
The landing page will feature an interactive galaxy map where each star represents a feature or section of the app. Users can hover over stars to see a brief description of the feature, and clicking on a star will zoom into that section with a smooth animation. The galaxy will subtly shift colors based on the time of day (e.g., warm tones in the morning, cool tones at night).
Additional details:
- Animations: Stars will twinkle and pulse gently, creating a dynamic and engaging experience.
- Transitions: Smooth zoom-in and zoom-out effects when navigating between sections.
- Micro-interactions: Hover effects will display tooltips with feature descriptions.
- Color Shifts: Background gradients will transition subtly throughout the day.
This design will make the app feel alive and immersive, leaving a lasting impression on users.
Page 6 of 7
7. Non-Functional Requirements
- The app must run locally on any system with Python installed.
- The app must be responsive and load within 3 seconds.
- The app must handle up to 1,000 simulated users without performance degradation.
- The app must be beginner-friendly with clear navigation and tooltips.
- The app must use minimal external dependencies to ensure lightweight deployment.
8. Tech Stack
- Frontend: Streamlit
- Backend: Python, FastAPI
- Database: SQLite (for simplicity and local storage)
- AI Models:
- GPT 5.4 for user-friendly responses.
- Claude 4.6 Opas for behavioral insights.
- Data Handling: pandas
- Charts: matplotlib, plotly
- Containerization: Docker, docker-compose
9. Assumptions and Constraints
- The app will simulate app usage data rather than track real usage.
- All features must be contained in a single Python file.
- The app will be optimized for local deployment, not cloud hosting.
- Advanced AI features will use rule-based logic for simplicity.
Page 7 of 7
10. Glossary
- Detox Score: A numerical representation of a user's digital wellness.
- Focus Mode: A mode that limits app usage to improve productivity.
- Pomodoro Timer: A time management tool based on work/break intervals.
- Streaks: Consecutive days of achieving goals.
- Leaderboard: A simulated ranking of users based on performance.
No comments yet. Be the first!