# muthu-py/pulseaccess-perso architecture

> Architecture diagram of the GitHub repository muthu-py/pulseaccess-perso, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/muthu-py/pulseaccess-perso
- Repository: https://github.com/muthu-py/pulseaccess-perso

## Overview

PulseAccess is a FastAPI backend for creator accounts, OTP-based login, and related community, plan, subscription, payment, dashboard, and member APIs. The clearest end-to-end workflow is registration or email OTP login, followed by refresh-token session management; community and plan endpoints currently return placeholder results. The graph preserves other product modules visible in the tree, but their behavior is not established by the sampled source. The README is empty, so unsampled capabilities and relationships are shown conservatively.

Main entry points: [`app/main.py`](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/main.py) (FastAPI application), [`app/api/dependencies.py`](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/api/dependencies.py) (Dependency providers), [`app/modules/auth/services.py`](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/services.py) (Auth workflows), [`app/infrastructure/security/session_service.py`](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/session_service.py) (Session management)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_api["API and wiring"]
  node_application["FastAPI application<br/>[main.py]"]
  node_dependencies["Dependency providers<br/>[dependencies.py]"]
end

subgraph group_identity["Creator identity"]
  node_auth_routes["Auth endpoints<br/>[routers.py]"]
  node_auth_service["Auth workflows<br/>[services.py]"]
  node_auth_data["Creator and OTP data<br/>[repositories.py]"]
  node_auth_models["Creator and token models<br/>[models.py]"]
  node_session_service["Session management<br/>[session_service.py]"]
  node_jwt_service["JWT tokens<br/>[jwt_service.py]"]
  node_cookie_service["Refresh cookies<br/>[cookie_service.py]"]
  node_security_service["OTP and hashing<br/>[security.py]"]
end

subgraph group_commerce["Community and commerce"]
  node_community["Community endpoints<br/>[routers.py]"]
  node_plans["Plan endpoints<br/>[routers.py]"]
  node_subscriptions["Subscription API<br/>[routers.py]"]
  node_payments["Payment and webhooks<br/>[routers.py]"]
end

subgraph group_product["Creator features"]
  node_dashboard["Dashboard API<br/>[routers.py]"]
  node_members["Member API<br/>[routers.py]"]
  node_notifications["Notification module<br/>[services.py]"]
end

subgraph group_infra["Infrastructure"]
  node_telegram["Telegram integration"]
  node_email["SMTP email"]
  node_razorpay["Razorpay integration"]
  node_database[("Async database session<br/>[session.py]")]
  node_settings["Application settings<br/>[config.py]"]
end

node_client(("API client"))

node_client -->|"sends requests"| node_application
node_application -->|"mounts"| node_auth_routes
node_application -->|"mounts"| node_community
node_application -->|"mounts"| node_plans
node_application -->|"mounts"| node_subscriptions
node_application -->|"mounts"| node_payments
node_application -->|"mounts"| node_dashboard
node_application -->|"mounts"| node_members
node_auth_routes -->|"resolves service"| node_dependencies
node_auth_routes -->|"calls"| node_auth_service
node_dependencies -->|"constructs"| node_auth_service
node_dependencies -->|"provides session"| node_database
node_dependencies -->|"constructs"| node_email
node_dependencies -->|"constructs"| node_session_service
node_dependencies -->|"provides stub"| node_telegram
node_dependencies -->|"provides stub"| node_razorpay
node_auth_service -->|"reads and writes"| node_auth_data
node_auth_service -->|"creates and rotates"| node_session_service
node_auth_service -->|"sends login OTP"| node_email
node_auth_service -->|"generates and checks OTP"| node_security_service
node_auth_service -->|"clears cookie"| node_cookie_service
node_auth_data -->|"uses models"| node_auth_models
node_session_service -->|"creates and validates"| node_jwt_service
node_session_service -->|"sets refresh cookie"| node_cookie_service
node_session_service -->|"hashes token"| node_security_service
node_session_service -->|"persists refresh tokens"| node_auth_data
node_database -->|"loads database config"| node_settings

click node_application "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/main.py"
click node_dependencies "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/api/dependencies.py"
click node_auth_routes "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/routers.py"
click node_auth_service "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/services.py"
click node_auth_data "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/repositories.py"
click node_auth_models "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/models.py"
click node_session_service "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/session_service.py"
click node_jwt_service "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/jwt_service.py"
click node_cookie_service "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/cookie_service.py"
click node_security_service "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/core/security.py"
click node_community "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/community/routers.py"
click node_plans "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/plan/routers.py"
click node_subscriptions "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/subscription/routers.py"
click node_payments "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/payment/routers.py"
click node_dashboard "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/dashboard/routers.py"
click node_members "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/member/routers.py"
click node_notifications "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/notification/services.py"
click node_telegram "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/telegram/telegram_interface.py"
click node_email "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/email/smtp_email_service.py"
click node_razorpay "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/razorpay/razorpay_interface.py"
click node_database "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/database/session.py"
click node_settings "https://github.com/muthu-py/pulseaccess-perso/blob/main/app/core/config.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_application,node_dependencies,node_client toneBlue
class node_auth_routes,node_auth_service,node_auth_data,node_auth_models,node_session_service,node_jwt_service,node_cookie_service,node_security_service toneAmber
class node_community,node_plans,node_subscriptions,node_payments toneMint
class node_dashboard,node_members,node_notifications toneRose
class node_telegram,node_email,node_razorpay,node_database,node_settings toneIndigo
```

## Components

### API and wiring

- [FastAPI application](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/main.py): `app/main.py`
- [Dependency providers](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/api/dependencies.py): `app/api/dependencies.py`

### Creator identity

- [Auth endpoints](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/routers.py): `app/modules/auth/routers.py`
- [Auth workflows](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/services.py): `app/modules/auth/services.py`
- [Creator and OTP data](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/repositories.py): `app/modules/auth/repositories.py`
- [Creator and token models](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/auth/models.py): `app/modules/auth/models.py`
- [Session management](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/session_service.py): `app/infrastructure/security/session_service.py`
- [JWT tokens](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/jwt_service.py): `app/infrastructure/security/jwt_service.py`
- [Refresh cookies](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/security/cookie_service.py): `app/infrastructure/security/cookie_service.py`
- [OTP and hashing](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/core/security.py): `app/core/security.py`

### Community and commerce

- [Community endpoints](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/community/routers.py): `app/modules/community/routers.py`
- [Plan endpoints](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/plan/routers.py): `app/modules/plan/routers.py`
- [Subscription API](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/subscription/routers.py): `app/modules/subscription/routers.py`
- [Payment and webhooks](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/payment/routers.py): `app/modules/payment/routers.py`

### Creator features

- [Dashboard API](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/dashboard/routers.py): `app/modules/dashboard/routers.py`
- [Member API](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/member/routers.py): `app/modules/member/routers.py`
- [Notification module](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/modules/notification/services.py): `app/modules/notification/services.py`

### Infrastructure

- [Telegram integration](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/telegram/telegram_interface.py): `app/infrastructure/telegram/telegram_interface.py`
- [SMTP email](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/email/smtp_email_service.py): `app/infrastructure/email/smtp_email_service.py`
- [Razorpay integration](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/razorpay/razorpay_interface.py): `app/infrastructure/razorpay/razorpay_interface.py`
- [Async database session](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/infrastructure/database/session.py): `app/infrastructure/database/session.py`
- [Application settings](https://github.com/muthu-py/pulseaccess-perso/blob/main/app/core/config.py): `app/core/config.py`

### Other components

- **API client**

## Connections

- API client → FastAPI application: sends requests (evidence: `app/main.py`)
- FastAPI application → Auth endpoints: mounts (evidence: `app/main.py`)
- FastAPI application → Community endpoints: mounts (evidence: `app/main.py`)
- FastAPI application → Plan endpoints: mounts (evidence: `app/main.py`)
- FastAPI application → Subscription API: mounts (evidence: `app/main.py`)
- FastAPI application → Payment and webhooks: mounts (evidence: `app/main.py`)
- FastAPI application → Dashboard API: mounts (evidence: `app/main.py`)
- FastAPI application → Member API: mounts (evidence: `app/main.py`)
- Auth endpoints → Dependency providers: resolves service (evidence: `app/modules/auth/routers.py`)
- Auth endpoints → Auth workflows: calls (evidence: `app/modules/auth/routers.py`)
- Dependency providers → Auth workflows: constructs (evidence: `app/api/dependencies.py`)
- Dependency providers → Async database session: provides session (evidence: `app/api/dependencies.py`)
- Dependency providers → SMTP email: constructs (evidence: `app/api/dependencies.py`)
- Dependency providers → Session management: constructs (evidence: `app/api/dependencies.py`)
- Dependency providers → Telegram integration: provides stub (evidence: `app/api/dependencies.py`)
- Dependency providers → Razorpay integration: provides stub (evidence: `app/api/dependencies.py`)
- Auth workflows → Creator and OTP data: reads and writes (evidence: `app/modules/auth/services.py`)
- Auth workflows → Session management: creates and rotates (evidence: `app/modules/auth/services.py`)
- Auth workflows → SMTP email: sends login OTP (evidence: `app/modules/auth/services.py`)
- Auth workflows → OTP and hashing: generates and checks OTP (evidence: `app/modules/auth/services.py`)
- Auth workflows → Refresh cookies: clears cookie (evidence: `app/modules/auth/services.py`)
- Creator and OTP data → Creator and token models: uses models (evidence: `app/modules/auth/repositories.py`)
- Session management → JWT tokens: creates and validates (evidence: `app/infrastructure/security/session_service.py`)
- Session management → Refresh cookies: sets refresh cookie (evidence: `app/infrastructure/security/session_service.py`)
- Session management → OTP and hashing: hashes token (evidence: `app/infrastructure/security/session_service.py`)
- Session management → Creator and OTP data: persists refresh tokens (evidence: `app/infrastructure/security/session_service.py`)
- Async database session → Application settings: loads database config (evidence: `app/infrastructure/database/session.py`)
