mistlib
In development
A P2P networking library for the web and native apps, without Unity
Details
A P2P networking library for sharing information with nearby peers in virtual spaces. It replaces MistNet, which only worked in Unity, and can be used from web apps or as a DLL.
I build and test the Rust core, native library and WebAssembly build together with AI coding tools.
It selects nearby peers and peers in each direction by position and area of interest (AOI). Messages to peers without a direct connection are relayed through the participant network.
Written in Rust, using WebRTC DataChannel for communication. The native library, browser WebAssembly build and npm package @tik-choco/mistlib are available under MPL-2.0.
It uses Nostr relays and STUN, with TURN when needed. The default connection budget is 30 per node; this does not set a total participant limit or guarantee performance.
MistNet (previous version)
The predecessor of mistlib. A WebRTC library for networking and object sync (position, animation, variables, RPC) in Unity virtual spaces, under the MIT license. The ICCE-Taiwan 2024 paper is about MistNet.
mistlib-examples
Python, Web and Unity clients and examples, licensed under Apache-2.0. A separate engine build is required; the README covers Web/WASM and Python or Unity/native setups.
mistlib-unity
Experimental bindings for using mistlib from Unity. See the README for supported platforms and limitations. Bindings and samples use Apache-2.0 and the native engine uses MPL-2.0.
mistlib-consensus
Replicated state machines for P2P meshes, using Raft for trusted peers and HotStuff when the network includes untrusted peers. Written in Rust with native and wasm32 core support under MPL-2.0; the implementation is experimental and has not had a security audit.
mistai
A TypeScript library for sharing HTTP model connections and running P2P AI rooms, with chat, TTS, STT and an OpenAI-compatible HTTP tunnel sharing one injected transport. A Preact settings UI is optional; the license is MPL-2.0.





