# sandeep-rajputt/notivo architecture

> Architecture diagram of the GitHub repository sandeep-rajputt/notivo, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-19). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sandeep-rajputt/notivo
- Repository: https://github.com/sandeep-rajputt/notivo

## Overview

##### Main System Components

a) Frontend Layer:
- Next.js Application (clearly indicated by the file structure)
- Redux State Management (visible in /src/store)
- UI Components (organized in /src/components)

b) Backend Services (to be represented though not visible in current tree):
- Authentication Service
- Notification Management Service
- Integration Services for:
- Email Service
- Telegram Bot Service
- Future platforms (WhatsApp, Instagram, Discord, Twitter)

c) External Services Integration:
- Email Service Provider
- Telegram API
- Future Integration Points (WhatsApp, Instagram, Discord, Twitter APIs)

##### Component Relationships

- User interaction flows
- Data flow between components
- Service dependencies
- API calls to external services

##### Specific Elements

Frontend Architecture:
**Components Structure:**
- Layout Components (/src/components/layout)
- UI Components (/src/components/ui)
- Section Components (/src/components/sections)
- Auth Routes (/src/app/(auth))

State Management:
**Redux Store:**
- Header State
- Auth State (planned)
- Notification State (planned)

##### Implementation Notes

- Clear component boundaries
- Annotations for key architectural decisions

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        NextApp["Next.js Application"]:::frontend
        click NextApp "https://github.com/sandeep-rajputt/notivo/tree/main/src/app"
        
        subgraph "Components"
            Layout["Layout Components"]:::frontend
            click Layout "https://github.com/sandeep-rajputt/notivo/tree/main/src/components/layout"
            UI["UI Components"]:::frontend
            click UI "https://github.com/sandeep-rajputt/notivo/tree/main/src/components/ui"
            Sections["Section Components"]:::frontend
            click Sections "https://github.com/sandeep-rajputt/notivo/tree/main/src/components/sections"
            
            subgraph "Header Views"
                BigScreen["Desktop Header"]:::frontend
                click BigScreen "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/layout/header/BigScreen.tsx"
                SmallScreen["Mobile Header"]:::frontend
                click SmallScreen "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/layout/header/SmallScreen.tsx"
            end
            
            subgraph "Core UI"
                BlueBtn["Blue Button"]:::frontend
                click BlueBtn "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/ui/BlueButton.tsx"
                OrangeBtn["Orange Button"]:::frontend
                click OrangeBtn "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/ui/OrangeButton.tsx"
                PassInput["Password Input"]:::frontend
                click PassInput "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/ui/Password-input.tsx"
                OTPInput["OTP Input"]:::frontend
                click OTPInput "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/ui/Otp-input.tsx"
            end
            
            subgraph "Marketing"
                Features["Features Section"]:::frontend
                click Features "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/sections/Features.tsx"
                Pricing["Pricing Section"]:::frontend
                click Pricing "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/sections/Pricing.tsx"
                Testimonials["Testimonials"]:::frontend
                click Testimonials "https://github.com/sandeep-rajputt/notivo/blob/main/src/components/sections/Testimonials.tsx"
            end
        end
        
        subgraph "State Management"
            Redux["Redux Store"]:::state
            click Redux "https://github.com/sandeep-rajputt/notivo/tree/main/src/store"
            ReduxProvider["Redux Provider"]:::state
            click ReduxProvider "https://github.com/sandeep-rajputt/notivo/blob/main/src/store/ReduxProvider.tsx"
            HeaderState["Header State"]:::state
            click HeaderState "https://github.com/sandeep-rajputt/notivo/blob/main/src/store/slices/headerSlice.ts"
            AuthState["Auth State"]:::planned
            NotifState["Notification State"]:::planned
        end
        
        subgraph "Authentication"
            AuthRoutes["Auth Routes"]:::auth
            click AuthRoutes "https://github.com/sandeep-rajputt/notivo/tree/main/src/app/(auth)"
            Login["Login Page"]:::auth
            click Login "https://github.com/sandeep-rajputt/notivo/blob/main/src/app/(auth)/login/page.tsx"
            Signup["Signup Page"]:::auth
            click Signup "https://github.com/sandeep-rajputt/notivo/blob/main/src/app/(auth)/signup/page.tsx"
            ForgotPass["Password Recovery"]:::auth
            click ForgotPass "https://github.com/sandeep-rajputt/notivo/blob/main/src/app/(auth)/forgot-password/page.tsx"
        end
    end
    
    subgraph "Backend Services"
        AuthService["Authentication Service"]:::service
        NotifService["Notification Management"]:::service
        IntegrationService["Integration Service"]:::service
    end
    
    subgraph "External Services"
        Email["Email Service"]:::external
        Telegram["Telegram API"]:::external
        WhatsApp["WhatsApp API"]:::planned
        Instagram["Instagram API"]:::planned
        Discord["Discord API"]:::planned
        Twitter["Twitter API"]:::planned
    end
    
    %% Relationships
    NextApp --> Layout
    NextApp --> UI
    NextApp --> Sections
    NextApp --> Redux
    Redux --> ReduxProvider
    Redux --> HeaderState
    Redux --> AuthState
    Redux --> NotifState
    NextApp --> AuthRoutes
    AuthRoutes --> Login
    AuthRoutes --> Signup
    AuthRoutes --> ForgotPass
    AuthService --> AuthRoutes
    NotifService --> IntegrationService
    IntegrationService --> Email
    IntegrationService --> Telegram
    IntegrationService -.-> WhatsApp
    IntegrationService -.-> Instagram
    IntegrationService -.-> Discord
    IntegrationService -.-> Twitter
    
    %% Styling
    classDef frontend fill:#3498db,stroke:#2980b9,color:#fff
    classDef state fill:#9b59b6,stroke:#8e44ad,color:#fff
    classDef auth fill:#e67e22,stroke:#d35400,color:#fff
    classDef service fill:#2ecc71,stroke:#27ae60,color:#fff
    classDef external fill:#95a5a6,stroke:#7f8c8d,color:#fff
    classDef planned fill:#ecf0f1,stroke:#bdc3c7,color:#95a5a6,stroke-dasharray: 5 5
```
