tinynet
tinynet copied to clipboard
A `net` implementation for Go and TinyGo based on unisockets, targeting both WebAssembly and native platforms.
tinynet
A net
implementation for Go and TinyGo based on unisockets, targeting both WebAssembly and native platforms.
Overview
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.
Usage
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.
License
tinynet (c) 2021 Felicitas Pojtinger and contributors
SPDX-License-Identifier: AGPL-3.0