How valentinvelnesev-alt/vpn-panel works
Reactus VPN Panel is a self-hosted VPN business management product built around Remnawave, with an admin web panel and a Telegram sales bot. The principal customer journey runs from bot interaction through payment confirmation to subscription provisioning. Administrators configure the bot and services, manage customers and nodes, and review business metrics in the web panel. The graph also preserves documented analytics, broadcasts, promotions, referrals, and import capabilities. Some routes and workers were not sampled; their inclusion and links rely on README descriptions, not inspection of their implementations.
Main entry points: main.py API application · models.py Shared domain models · App.tsx Admin SPA · payment_processor.py Payment application
Components 32
Admin web panel
- Admin SPA
frontend/src/App.tsx - API client
frontend/src/lib/api.ts - Dashboard and analytics
frontend/src/pages/Dashboard.tsx - Customer and node management
frontend/src/pages/Clients.tsx - Bot and sales settings
frontend/src/pages/Bot.tsx - Broadcast management
frontend/src/pages/Broadcasts.tsx
Panel API
- API application
backend/app/main.py - Admin authentication
backend/app/api/v1/auth.py - Bot administration
backend/app/api/v1/bot.py - Client management
backend/app/api/v1/clients.py - Node management
backend/app/api/v1/nodes.py - Analytics and dashboard
backend/app/api/v1/analytics.py - Broadcast API
backend/app/api/v1/broadcasts.py - Promotions and referrals
backend/app/api/v1/promo.py - Payment webhooks
backend/app/api/v1/webhooks.py - Legacy bot imports
backend/app/services/bedolaga_import.py
Telegram sales bot
- Bot conversation handlers
bot/app/handlers.py - Runtime bot configuration
bot/app/config.py - Payment application
bot/app/services/payment_processor.py - Subscription provisioning
bot/app/services/subscriptions.py - Referral rewards
bot/app/services/referral.py - Broadcast worker
bot/app/workers/broadcast.py
Shared services
- Redis command bus
shared/bus.py - Shared domain models
shared/db/models.py - PostgreSQL data
shared/db/session.py - Remnawave client
shared/remnawave/client.py - Payment provider clients
shared/payments/cryptobot.py
Other components
- Panel admin
- Bot customer
- Telegram
- Remnawave service
- Redis
Connections 34
- Panel admin → Admin SPA: uses
README.md - Admin SPA → API client: uses
frontend/src/App.tsx - API client → API application: calls
- API application → Admin authentication: routes
- API application → Bot administration: routes
- API application → Client management: routes
- API application → Node management: routes
- API application → Analytics and dashboard: routes
- API application → Broadcast API: routes
- API application → Promotions and referrals: routes
- API application → Payment webhooks: routes
- Admin SPA → Dashboard and analytics: shows
- Admin SPA → Customer and node management: shows
- Admin SPA → Bot and sales settings: shows
- Admin SPA → Broadcast management: shows
- Bot customer → Telegram: interacts
README.md - Telegram → Bot conversation handlers: delivers updates
- Bot conversation handlers → Payment application: applies payment
bot/app/handlers.py - Payment application → Subscription provisioning: provisions access
bot/app/services/payment_processor.py - Subscription provisioning → Remnawave client: manages access
bot/app/services/subscriptions.py - Remnawave client → Remnawave service: calls
shared/remnawave/client.py - Payment webhooks → Payment provider clients: verifies payment
backend/app/api/v1/webhooks.py - Payment webhooks → Redis command bus: notifies bot
backend/app/api/v1/webhooks.py - Bot administration → Redis command bus: publishes commands
backend/app/api/v1/bot.py - Redis command bus → Redis: publishes messages
shared/bus.py - Bot conversation handlers → Runtime bot configuration: uses settings
bot/app/handlers.py - Runtime bot configuration → Shared domain models: loads configuration
bot/app/config.py - Payment application → Shared domain models: uses payment records
bot/app/services/payment_processor.py - Subscription provisioning → Shared domain models: updates subscriptions
bot/app/services/subscriptions.py - Referral rewards → Shared domain models: uses referral records
bot/app/services/referral.py - Broadcast worker → Shared domain models: reads audiences
bot/app/workers/broadcast.py - Shared domain models → PostgreSQL data: persists records
- Legacy bot imports → Shared domain models: imports customer data
- Bot customer → Payment application: pays for access