Official ultra-fast cross-platform local communication engine for Alenia Studios, designed for sovereign creators.
Project description
Nerve — Decentralized Nervous System for Local Sockets
Sovereignty, Speed, and Complete Privacy. Nerve is the cross-platform local inter-process communication engine designed by Alenia Studios to orchestrate game development tools locally, requiring zero cloud dependency.
The Concept: Sovereign Local Networks
In modern game development, the privacy of your assets, source code, and metadata is paramount. Nerve acts as an ultra-fast local data bus, allowing independent processes (such as sprite slicers, gif renderers, and system monitors) to sync in real-time with sub-millisecond latency, without sending a single byte outside your physical workstation.
Multi-Platform Native Core (UDS & TCP)
Nerve is fully cross-platform and dynamically adapts to the host operating system to deliver the best local latency possible:
- Linux & macOS: Utilizes native Unix Domain Sockets (UDS) via
socket.AF_UNIXat/tmp/nerve.sockfor high-performance direct memory piping. - Windows: Dynamically falls back to a specialized local TCP connection via
socket.AF_INETat127.0.0.1:50505, ensuring 100% compatibility across developer workstations without modifying a single line of your tools' logic.
v1.2.0 Stability & Identity Updates
Nerve has been heavily upgraded to offer production-grade resilience and studio identity:
- Industrial Auto-Reconnection:
NexusClientfeatures automatic background reconnection loops. If the connection drops or the Hub restarts, the client attempts connection every 2 seconds indefinitely, preserving the host application from crashes and registering back smoothly as soon as the Hub comes online. - Resilient JSON Validation: The Hub evaluates incoming packets robustly. If corrupted or invalid payloads are sent, it registers an
[NERVE] Invalid Payloaderror and proceeds without dropping the client socket or crashing the system. - Background Heartbeats (Latido): The Hub broadcasts verification ping packets (
{"type": "ping"}) every 5 seconds to actively monitor and purge stale, dead or silently dropped connections, freeing up system sockets. - Aesthetic Colored Console: Enhanced interactive experience featuring beautiful Alenia purple banners, success green logs, warning orange, and failure red errors using standard ANSI colors.
- Verbose Mode: Run the server with
--verboseor-vflags to print a detailed, colored trace of every single message routed through the Hub. - External Configuration Support: Easily configure ports and socket paths without altering code. Create a
nerve.configfile in your root folder as JSON or simple key-value text.
Configuration File (nerve.config)
To customize socket paths or TCP ports globally, place a nerve.config file in your project's working directory.
Option A (JSON Format):
{
"socket_path": "/tmp/nerve.sock",
"port": 50505,
"host": "127.0.0.1"
}
Option B (Simple Text Format):
socket_path=/tmp/nerve.sock
port=50505
Key Features
- Cross-Platform: Zero configuration required; runs out-of-the-box on Windows, Linux, and macOS.
- Line-Based Framing: Robust packet handling using newline delimiters (
\n) to prevent data collision or buffer merging under heavy throughput. - Hub-Client Architecture: A single central coordinator (
NexusHub) directs intelligent message routing to specific registered nodes (NexusClient). - Console Command Interface (CLI): Spawn and manage the hub globally from any terminal with a simple command.
Official Installation
Install the official package from PyPI:
pip install alenia-nerve
(If you are using a modern Linux distribution with PEP 668 PEP-managed packages, append the --break-system-packages flag or run inside a virtual environment):
pip install alenia-nerve --break-system-packages
Command Line Interface (CLI)
Once installed, you can start the Nerve Hub globally from any terminal shell:
nerve start
For detailed message routing traces, run:
nerve start --verbose
Help Menu:
nerve --help
Simple Integration Example
1. Initialize the Client
Connect to the local hub by registering a unique client ID.
from nerve import NexusClient
client = NexusClient()
client.connect("my_tool_id")
2. Send Message to a Specific Node
Send any JSON-serializable payload directly to another registered node:
payload = {"progress": 100, "status": "COMPLETED"}
client.send("other_tool_id", payload)
3. Listen for Incoming Stream
Register an asynchronous callback function to listen to data streams in real-time:
def handle_incoming(data):
print(f"Received: {data}")
client.listen(handle_incoming)
License and Intellectual Property
This software is distributed under the ALENIA STUDIOS TOOL LICENSE Version 1.0.
- For the Indie Community: 100% free for both commercial and non-commercial game development.
- No AI Training: Standalone scraping, training, or inclusion of this codebase in Artificial Intelligence datasets is strictly prohibited.
Crafted with passion by Alenia Studios to power sovereign game creators.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file alenia_nerve-1.2.1.tar.gz.
File metadata
- Download URL: alenia_nerve-1.2.1.tar.gz
- Upload date:
- Size: 6.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
aae0c58a3d54a5891263d72aa0f1fc9b7bda97bffd42952376e128771953a6af
|
|
| MD5 |
78699b965f0ee08c5c64c9b4c8304b44
|
|
| BLAKE2b-256 |
3f9cccb2ae24e1d184a263d4b721de01c7c85f0440081de0797f8111c6f5e66d
|
Provenance
The following attestation bundles were made for alenia_nerve-1.2.1.tar.gz:
Publisher:
publish.yml on Kaia-Alenia/alenia-nerve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alenia_nerve-1.2.1.tar.gz -
Subject digest:
aae0c58a3d54a5891263d72aa0f1fc9b7bda97bffd42952376e128771953a6af - Sigstore transparency entry: 1522077100
- Sigstore integration time:
-
Permalink:
Kaia-Alenia/alenia-nerve@899b25b819d3846a4c17e6f2aae6ab20c8dfad97 -
Branch / Tag:
refs/tags/v1.2.1 - Owner: https://github.com/Kaia-Alenia
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@899b25b819d3846a4c17e6f2aae6ab20c8dfad97 -
Trigger Event:
push
-
Statement type:
File details
Details for the file alenia_nerve-1.2.1-py3-none-any.whl.
File metadata
- Download URL: alenia_nerve-1.2.1-py3-none-any.whl
- Upload date:
- Size: 7.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7afb26cffde6d25f32e81cb092fe88bf74f4d313a82a020a0c81ab3dac8d0fd5
|
|
| MD5 |
264e9d0eead251bcd45dfd5239979f9f
|
|
| BLAKE2b-256 |
e5176f1132d4baf07f2969456e5a3d7844d58b9b02579a3794c6cd0d07e36775
|
Provenance
The following attestation bundles were made for alenia_nerve-1.2.1-py3-none-any.whl:
Publisher:
publish.yml on Kaia-Alenia/alenia-nerve
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
alenia_nerve-1.2.1-py3-none-any.whl -
Subject digest:
7afb26cffde6d25f32e81cb092fe88bf74f4d313a82a020a0c81ab3dac8d0fd5 - Sigstore transparency entry: 1522077567
- Sigstore integration time:
-
Permalink:
Kaia-Alenia/alenia-nerve@899b25b819d3846a4c17e6f2aae6ab20c8dfad97 -
Branch / Tag:
refs/tags/v1.2.1 - Owner: https://github.com/Kaia-Alenia
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@899b25b819d3846a4c17e6f2aae6ab20c8dfad97 -
Trigger Event:
push
-
Statement type: