How akggautamasar/airgramweb works
AirGram Web is a Telegram-backed media library and player. Users authenticate, browse chats and files, then view or stream media; they can also clone content, manage cloud-drive backups, and share files publicly. The graph shows the frontend-to-API boundary, Telegram operations, and streaming policy/cache layers. Some feature routes are documented but their implementations were not sampled, so those links are omitted rather than inferred.
Main entry points: App.jsx App shell · api.js API client · index.js HTTP API · telegramManager.js Telegram manager
Components 23
Web experience
- App shell
client/src/App.jsx - API client
client/src/api.js - Login
client/src/components/LoginView.jsx - Chats sidebar
client/src/components/ChatsSidebar.jsx - Media browser
client/src/components/FilesBrowser.jsx - Chat timeline
client/src/components/ChatTimelineView.jsx - Video player
client/src/components/VideoPlayerModal.jsx - Audio player
client/src/components/AudioMiniPlayer.jsx - PDF viewer
client/src/components/PdfModal.jsx - EPUB viewer
client/src/components/EpubModal.jsx - Photo viewer
client/src/components/PhotoModal.jsx - Clone controls
client/src/components/CloneView.jsx - Cloud drive
client/src/components/CloudDriveView.jsx - Public share view
client/src/components/PublicShareView.jsx
API and workflows
- HTTP API
server/index.js - Clone jobs
server/cloneRoutes.js
Telegram access
- Telegram manager
server/telegramManager.js
Streaming
- Range stream engine
server/streamEngine.js - Adaptive policy
server/streamingPolicy.js
State and sharing
- Backup index
server/backupStore.js - Share records
server/shareStore.js
Other components
- User
- Telegram
Connections 30
- User → App shell: uses
README.md - App shell → Login: renders
client/src/App.jsx - App shell → Chats sidebar: renders
client/src/App.jsx - App shell → Media browser: renders
client/src/App.jsx - App shell → Video player: opens
client/src/App.jsx - App shell → Clone controls: opens
client/src/App.jsx - App shell → Public share view: routes
client/src/App.jsx - Media browser → Chat timeline: uses
client/src/components/FilesBrowser.jsx - User → Cloud drive: manages backups
README.md - User → Audio player: plays audio
README.md - User → PDF viewer: views documents
README.md - User → EPUB viewer: reads books
README.md - User → Photo viewer: views photos
README.md - App shell → API client: calls
client/src/App.jsx - Login → API client: authenticates via
client/src/components/LoginView.jsx - Video player → API client: requests stream links
client/src/components/VideoPlayerModal.jsx - Cloud drive → API client: configures backups
client/src/components/CloudDriveView.jsx - Public share view → API client: loads share
client/src/components/PublicShareView.jsx - Clone controls → API client: controls jobs
client/src/components/CloneView.jsx - API client → HTTP API: sends requests
client/src/api.js - HTTP API → Telegram manager: delegates Telegram operations
server/index.js - Telegram manager → Telegram: uses MTProto
server/telegramManager.js - HTTP API → Clone jobs: registers routes
server/index.js - Clone jobs → Telegram: forwards and transfers media
README.md - HTTP API → Range stream engine: serves ranges
server/index.js - Range stream engine → Adaptive policy: gets mode and retry policy
server/streamEngine.js - Range stream engine → Telegram: reads media chunks
- HTTP API → Backup index: reads and updates
server/index.js - HTTP API → Share records: reads and updates
server/index.js - Telegram manager → Backup index: syncs saved-message index
server/index.js