Skip to content

Sycosmile/NET-OS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 NET-OS

A lightweight autonomous network operating system simulation powered by FastAPI and an AI-driven intelligence layer.

Python FastAPI Docker License: MIT Last Commit Stars

🧠 What if your network could think for itself? NET-OS is a simulation of an autonomous OS that monitors its own health, predicts behavior, and adapts its strategy — no human intervention needed.


🤔 What Makes This Different?

Most network monitoring tools are reactive — they alert you after something breaks. NET-OS is proactive:

  • Traditional tools wait for you to query them
  • NET-OS runs a self-managing execution loop that continuously monitors, predicts, and adapts
  • The intelligence layer doesn't just report health — it predicts behavioral drift before failures happen
  • Built as a simulation, but the architecture mirrors real autonomous network OS design

Think of it as a miniature self-healing network brain — built entirely in Python.


✨ Features

Feature Description
🤖 Autonomous Engine Self-managing core execution loop with intelligent scheduling
🧠 Intelligence Layer Health monitoring, behavior prediction, adaptive strategy engine
💾 Memory Layer Persistent state management via SQLite
⚡ REST API FastAPI-powered endpoints for full system control
📊 Real-time Dashboard Lightweight HTML dashboard for live system visibility
🐳 Docker Support Fully containerized — one command to run everything
🔄 Background Daemon Worker daemon for continuous background processing
📡 Network Router Built-in routing client for network simulation

⚡ Quick Start

Prerequisites

  • Python 3.10+
  • Docker & Docker Compose (optional but recommended)

Run Locally

git clone https://github.com/Sycosmile/net-os.git
cd net-os
pip install -r requirements.txt
cp .env.example .env
uvicorn app.main:app --reload

App runs at http://localhost:8000 Live API docs at http://localhost:8000/docs (Swagger UI)

Run with Docker

docker-compose up --build

That's it. Everything spins up automatically.


🔌 API Endpoints

Method Endpoint Description
GET / System status overview
GET /health Health check & diagnostics
GET /engine Core engine status

Full interactive API docs available at http://localhost:8000/docs


🔄 How It Works

Boot → Engine initializes, loads persistent memory from SQLite Schedule → Scheduler queues intelligence tasks Monitor → Health layer continuously reads system state Predict → Predictor models behavioral patterns and flags anomalies Adapt → Strategy engine adjusts execution based on predictions Report → Dashboard and API surface live state in real time


🗂️ Architecture

net-os/

├── app/

│ ├── main.py # FastAPI entry point

│ ├── api.py # API routes

│ └── config.py # Configuration

├── core/

│ ├── engine.py # Core execution engine

│ └── scheduler.py # Task scheduling

├── intelligence/

│ ├── health.py # System health monitoring

│ ├── predictor.py # Behavior prediction

│ ├── strategy.py # Adaptive strategy engine

│ └── behavior.py # Behavioral analysis

├── memory/

│ └── db.py # Persistent memory layer

├── router/

│ └── client.py # Network routing client

├── workers/

│ └── daemon.py # Background worker daemon

├── dashboard/

│ └── index.html # Real-time web dashboard

├── Dockerfile

└── docker-compose.yml


🗺️ Roadmap

  • WebSocket support for real-time dashboard updates
  • Multi-node simulation (multiple NET-OS instances communicating)
  • Anomaly detection with ML-based pattern recognition
  • Prometheus + Grafana metrics integration
  • CLI interface for headless environments
  • Alert system (Telegram / Slack notifications on anomalies)

👤 Author

MR SYCO — Cybersecurity student | Python developer | 3MTT Nigeria Cohort

GitHub Twitter


📄 License

MIT — free to use, modify, and distribute. See LICENSE for details.


Built with Python 🐍 + FastAPI ⚡ | Autonomous. Intelligent. Self-healing.

About

Lightweight autonomous network operating system simulation with FastAPI and AI intelligence layer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors