An AI-driven video streaming platform built on Bittensor.
This repository contains both the Subnet 89 implementation and the user-facing application, including miners, validators, and an API server.
Subnet 89 includes the miner, validator, and API code needed to run the decentralized video streaming platform. The project is ready for customization and deployment.
NetflixAI/
├── neurons/ # Miner and validator implementations
├── template/ # Protocol definitions (synapses)
├── config/ # Configuration management
├── utils/ # Helper modules and API server
├── requirements.txt # Python dependencies
└── setup.py # Package setup
pip install -e .python neurons/miner.py --wallet.name <your-wallet> --wallet.hotkey <your-hotkey>python neurons/validator.py --wallet.name <your-wallet> --wallet.hotkey <your-hotkey>Key files for customization:
template/protocol.py– define the communication protocolneurons/miner.py– miner logicneurons/validator.py– validator logicconfig/config.py– runtime configuration
QuerySynapse: Basic query/response patternDataSynapse: Data exchange pattern
- Responds to validator queries
- Implements your subnet's core functionality
- Queries miners
- Scores responses
- Sets weights on-chain
By default, this subnet uses:
- Network ID: 89
- Network: finney (mainnet)
To use testnet:
export BT_NETWORK=testThe project includes a lightweight FastAPI server for simple file submissions.
You can start it with uvicorn:
uvicorn utils.api_server:app --reloadThe server exposes the following endpoints:
POST /submit– upload a video fileGET /status– service statusGET /metrics– basic metricsGET /health– health check
MIT License - see LICENSE file for details