Skip to content

Brahamanbtp/NeuroTide

Repository files navigation

NeuroTide 🚀

Autonomous Torrent Engine with Predictive Streaming, AI-Prioritized Swarming & Privacy-First Delivery

License: MIT
Python


🌊 Overview

NeuroTide is a next-generation, AI-powered torrent engine built in Python. It redefines peer-to-peer (P2P) file sharing by combining autonomous decision-making, adaptive streaming, and privacy-first delivery.

Key capabilities include:

  • Real-time streaming from torrents without waiting for full downloads.
  • AI-driven piece prioritization using reinforcement learning for smooth playback.
  • Zero-disk privacy mode (RAM-only streaming, ephemeral sessions).
  • Multi-device handoff for seamless continuation (PC → Mobile).
  • Plugin-based ecosystem for security, subtitles, summarization, and more.

NeuroTide is designed for developers, researchers, and privacy-conscious users who want intelligent, adaptive, and secure torrenting experiences.


✨ Key Features

  • Full Asynchronous Torrent Engine using asyncio
  • AI-Powered Piece Swarming (Reinforcement Learning / ML scheduling)
  • Streaming over HTTP & WebRTC
  • RAM-only, Ephemeral, Privacy-first Modes
  • Magnet Link, DHT, UDP & HTTP Tracker Support
  • Self-Healing Downloader with peer retry and swarm health monitoring
  • Multi-Device Session Continuity (PC → Mobile handoff via QR/NFC)
  • Plugin Ecosystem:
    • Virus scanning
    • Auto-subtitle fetching
    • Torrent summarization
    • Audio track switching

🧩 Use Cases

  • Instant Video/Music Streaming without full downloads
  • Legal Content Distribution (open datasets, free media, educational content)
  • Privacy-Focused Access (RAM-only viewing with zero disk traces)
  • Low-Bandwidth Environments (adaptive AI scheduling)
  • Research & Development in AI-driven P2P networking

🚀 Quickstart

Installation

pip install neurotide
# For streaming & AI features:
pip install neurotide[stream,ai]

Basic Usage

from neurotide import TorrentSession
import asyncio

async def main():
    session = TorrentSession("path/to/file.torrent")
    await session.initialize()

    # Start AI-assisted download
    await session.download(file_index=0, strategy="neuro-rl")

    # Stream via built-in HTTP server
    await session.stream(file_index=0, memory_only=True)

asyncio.run(main())

🛠 Project Structure

neurotide/
├── core/              # Core torrent engine
├── ai/                # AI-based piece prioritization
├── stream/            # HTTP/WebRTC streaming modules
├── privacy/           # Privacy-first and RAM-only mechanisms
├── mobile_handoff/    # QR/NFC-based multi-device handoff
├── plugins/           # Extend with virus scanning, subtitles, etc.
├── cli/               # Command-line interface
├── tests/             # Unit & integration tests
├── docs/              # Documentation and research templates
├── examples/          # Sample scripts
└── README.md

🔬 Research & Innovation

NeuroTide introduces several novel concepts:

  1. AI-based Reinforcement Learning Scheduler – dynamically prioritizes pieces for optimal streaming.

  2. Zero-Disk Streaming Mode – ensures ephemeral sessions with no residual data footprint.

  3. Privacy-Aware Metadata Masking – obfuscates swarm info.

  4. Session Handoff Technology – seamless continuation across multiple devices.

Potential Paper Topics:

  • Adaptive AI-Powered Piece Scheduling for P2P Networks

  • Zero-Disk Torrent Streaming: Privacy-Aware Data Delivery

  • Intelligent Multi-Device File Sharing via Decentralized Swarms


📦 Requirements

  • Python 3.9+

Core Dependencies: fast-bencode, bitstring , aiohttp , starlette , uvicorn , rich

Optional:

  • AI: torch , onnxruntime

  • Plugins: requests , pyclamd , python-qrcode


🧪 Development & Testing

# Clone the repository
git clone https://github.com/Brahamanbtp/NeuroTide.git
cd neurotide

# Install in dev mode
pip install -e ".[dev]"

# Run tests
pytest --maxfail=1 --disable-warnings -q

🤝 Contributing

Contributions are welcome!
Submit issues, feature requests, or pull requests.

Check CONTRIBUTING.md for guidelines.


🛡 License

MIT License. See LICENSE for details.


🌐 Related Projects

NeuroTide is a more intelligent, privacy-focused, and extensible alternative for modern P2P environments.


💡 Roadmap

  • AI prefetcher reinforcement learning training module

  • Encrypted swarm communication

  • Mobile app companion

  • Plugin marketplace


🏆 Why NeuroTide?

Traditional torrent engines:

  • Lack intelligent piece prioritization

  • Are not privacy-first

  • Rarely support zero-disk streaming or multi-device continuity

NeuroTide redefines P2P sharing for a future-ready, research-driven, privacy-aware world.


📹 HackOmatic 2025 Submission Highlights

  • Autonomous AI agent for torrent piece scheduling

  • Real-world impact: faster streaming, privacy-first delivery, adaptive networking

  • Demo-ready: zero-disk streaming + multi-device handoff

  • Innovation & scalability: plugin ecosystem, AI reinforcement learning, session continuity

About

NeuroTide – Advanced asynchronous torrent engine with AI-assisted streaming, privacy-first delivery, and multi-device continuity.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages