Spaces:
Runtime error
Runtime error
| title: Unified API | |
| emoji: π§ | |
| colorFrom: blue | |
| colorTo: indigo | |
| sdk: docker | |
| pinned: false | |
| # PopCorn Unified API | |
| Single API space for the PopCorn Mini App β combines all features: | |
| - **Archive** β orchestrate archiver spaces, track progress, check duplicates, stats | |
| - **Stream** β per-account proxied streaming with account-specific datasets | |
| - **Movies / Series** β TMDB-powered browse, search, genres, trending | |
| - **Auth** β Telegram Mini App login | |
| - **User** β profiles, watch history, lists | |
| - **Social** β friends, chat, watch parties | |
| - **Store** β products, assets, purchases (stars/kernels) | |
| - **Comments** β ratings, reviews, likes | |
| ## Architecture | |
| ``` | |
| upload-bot β /api/v1/archive/file β api β user[N]/archiver/receive β git push β HF dataset | |
| β | |
| /api/v1/archive/progress/update β archiver reports | |
| β | |
| frontend polls /api/v1/archive/progress | |
| frontend β /api/v1/stream/movie/{id} β api β user[N]/proxy/stream/{dataset}|{file} | |
| ``` | |
| ## Accounts | |
| | Key | Name | Dataset | Proxy | Archiver | | |
| |--------|-----------|-----------------------------------|--------------------------------------|---------------------------------------| | |
| | user1 | Mshary | multimedia-cryptography-benchmarks/archive | ...-benchmarks-proxy.hf.space | ...-benchmarks-archiver.hf.space | | |
| | user2 | Abdullah | rayig/archive | rayig-proxy.hf.space | rayig-archiver.hf.space | | |
| | user3 | Abdulaziz | ToolKit-backend/archive | toolkit-backend-proxy.hf.space | toolkit-backend-archiver.hf.space | | |
| | user4 | Tariq | Dgntsn.../archive | ...-proxy.hf.space | ...-archiver.hf.space | | |