How 3252a8/remnawave-minishop works
Remnawave Minishop sells and manages Remnawave subscriptions through a Telegram bot and a browser-based Mini App, with a separate web admin panel. The main user journey is registration or sign-in, subscription selection and payment, then viewing subscription status and connection details. The backend also supports admin operations, payment providers, and theme packages. The excerpts show route registration and database setup; other feature relationships below rely on README statements or the source index, so unsampled implementation links are omitted or marked unverified.
Main entry points: main_bot.py Telegram bot · dispatcher_controller.py Update dispatcher · admin_api_impl/routes.py Admin API · webapp/routes.py Mini App routes
Components 21
User entry points
- Telegram bot
backend/bot/main_bot.py - Update dispatcher
backend/bot/app/controllers/dispatcher_controller.py - User journeys
backend/bot/handlers/user - Mini App UI
frontend/src/App.svelte - Mini App routes
backend/bot/app/web/webapp/routes.py - Web server
backend/bot/app/web/web_server.py
Subscription commerce
- Billing flows
backend/bot/app/web/webapp/billing.py - Payment providers
backend/bot/payment_providers - Subscription services
backend/bot/services
Admin operations
- Admin API
backend/bot/app/web/admin_api_impl/routes.py - Admin panel UI
frontend/src/admin - Theme packages
backend/config/theme_packages
Platform services
- PostgreSQL data
backend/db/models.py - Payment persistence
backend/db/dal/payment_dal.py - Runtime settings
backend/config/settings.py - Plugin packages
backend/bot/plugins/packages.py
Other components
- Telegram user
- Mini App user
- Administrator
- Remnawave Panel
- Redis
Connections 20
- Telegram user → Telegram bot: starts journey
README.md - Telegram bot → Update dispatcher: dispatches updates
backend/bot/app/controllers/dispatcher_controller.py - Update dispatcher → User journeys: routes interactions
- Mini App user → Mini App UI: uses Mini App
README.md - Mini App UI → Mini App routes: requests app data
- Web server → Mini App routes: registers routes
- Administrator → Admin panel UI: manages shop
README.md - Admin panel UI → Admin API: calls API
- Mini App routes → Billing flows: imports billing
backend/bot/app/web/webapp/routes.py - Billing flows → Payment providers: initiates payment
- Telegram user → Payment providers: pays through
README.md - Payment providers → Payment persistence: records payments
backend/bot/payment_providers/yookassa/service.py - Payment persistence → PostgreSQL data: reads and writes
backend/db/dal/payment_dal.py - Subscription services → Remnawave Panel: syncs subscriptions
README.md - Admin API → Remnawave Panel: syncs panel data
README.md - Admin API → Theme packages: administers themes
- Theme packages → PostgreSQL data: stores registry files
- Update dispatcher → Runtime settings: loads configuration
backend/bot/app/controllers/dispatcher_controller.py - Telegram bot → Plugin packages: loads extensions
- Telegram bot → Redis: uses cache and queue
README.md