Metadata-Version: 2.4
Name: nni-sdk
Version: 3.0.0
Summary: Neural-Native Interconnect (nni-sdk) - 64-byte zero-copy AI networking
Author-email: NNI Labs <nnilabs.hq@gmail.com>
License: Proprietary - Free for personal, academic, and commercial binary use. Source
	code private to NNI Labs.
Requires-Python: >=3.11
Description-Content-Type: text/markdown; charset=UTF-8; variant=GFM
Project-URL: Homepage, https://nnilabs.pages.dev

# ⚡ NNI: The Neural-Native Interconnect Protocol

[![PyPI](https://img.shields.io/pypi/v/nni-mesh)](https://pypi.org/project/nni-mesh/)
[![License](https://img.shields.io/badge/license-MIT%20OR%20Apache--2.0-blue)](LICENSE)
[![Status](https://img.shields.io/badge/backbone-live-brightgreen)](https://github.com)

**The AI industry is running 21st-century neural networks on 1990s web protocols.**  
When autonomous agents, edge NPUs, and LLMs communicate, high-dimensional tensors are serialized into bloated JSON strings, wrapped in HTTP headers, and sent over TCP.

**NNI replaces this "Interconnect Tax" with a hardware-native, zero-copy neural fabric.**

---

### 📊 Verified Telemetry Benchmark (128-float Latent Tensor)

| Deployment Tier | Traditional HTTP/JSON | NNI Neural Fabric | Advantage |
| :--- | :--- | :--- | :--- |
| **Tier 1: On-Die Silicon Reflex** | 3,263 µs | **32.9 µs (0.03 ms)** | **~99x Faster** (L3 Cache Seqlock) |
| **Tier 2: Edge-to-Edge Direct LAN** | 3,263 µs | **136.4 µs (0.13 ms)**| **~24x Faster** (0-RTT UDP P2P) |
| **Tier 3: Edge-to-Cloud WAN** | ~570.0 ms | **385.4 ms** | **Speed-of-Light Floor** (India ↔ Sweden) |
| **Local Wire Size** | ~1,432 Bytes | **128 Bytes** | **91.1% Less Data** |
| **WAN Wire Egress** | ~1,832 Bytes (w/TLS) | **200 Bytes** | **89.1% Less Cloud Egress** |
| **Cloud Confidentiality** | Cleartext / Proxy logs | **Zero-Knowledge AEAD** | **End-to-End Blind Forwarding** |

---

### 🚀 Quickstart: 3 Lines in Python

```bash
pip install nni-mesh

1. Host an AI Endpoint (e.g. on your laptop or GPU):

import nni_mesh as nni

# Automatically joins global mesh & advertises on LAN multicast
node = nni.Node()
node.serve("vision", lambda tensor: [x * 2.0 for x in tensor])

2. Query from Anywhere on Earth (1 Line):

import nni_mesh as nni

client = nni.Client()
# Resolves target via vector resonance, negotiates keys, and streams tensor:
result = client.send("vision", [1.25] * 128)
print("Output:", result[0])  # 2.5
