@nekzus/liop, designed as a powerful yet highly familiar SDK. If you have previously built servers for MCP, transitioning to LIOP architecture is almost effortless.
In this guide, we’ll build a basic LIOP Server that exposes a tool, and a Client that invokes it.
Under the hood, LIOP is compiling your logic to WebAssembly and injecting it via P2P. However, the SDK abstracts this entirely, letting you focus on writing pure business logic.
1. Installation
Install the official SDK in your Node.js or TypeScript project.2. Create a LIOP Server (Data Node)
A LIOP Server acts as a Data Node. It connects to the mesh and listens for incoming injected logic from remote agents. It exposes secure tools and resources. Create a file namedserver.ts:
server.ts
3. Create a LIOP Client (Agent Node)
A LIOP Client acts as the Intelligence. It discovers servers on the mesh and injects compiled logic into them. Create a file namedclient.ts:
client.ts
4. Run your Mesh
First, start your isolated Server:What just happened?
Unlike legacy REST APIs or MCP strings parsing:- Your Client discovered the Server instantly via a P2P Kademlia Routing Table.
- A Post-Quantum Kyber Handshake secured the intent.
- The query was serialized into an ultra-compact Protobuf Binary.
- The execution happened inside a microscopic WASI Sandbox on the server, safely isolated from your physical host.
Next Steps
Now that you’ve run your first Mesh execution, dive deeper into the core architecture to understand how to leverage advanced capabilities like Continuous Watchdogs and Zero-Knowledge Proofs.Core Architecture
Learn how the Data Layer and Transport Layer synergize in LIOP.