A net
implementation for Go and TinyGo based on unisockets, targeting both WebAssembly and native platforms.
tinynet implements a subnet of the Go net
package. Because it is based on unisockets, it supports more platforms (WASM/JS, WASM/WASI, TinyGo, Go etc.) than the official net
package.
Check out for API documentation. Many examples on how to use it (clients, servers and an example distributed system) can also be found in the cmd
package. Additionally, the Makefile
might also be of interest; it shows how to build native and WASM binaries.
You want a Kubernetes-style system for WASM, running in the browser and in node? You might be interested in webnetes, which supports the unisockets-based networking used by tinynet.
tinynet (c) 2021 Felicitas Pojtinger and contributors
SPDX-License-Identifier: AGPL-3.0