mirror of
https://github.com/cf-sonr/motr.git
synced 2026-01-12 11:09:13 +00:00
9c6c28854ceeb5bdff7998fd23670b6146626aac
onsonr/motr
onsonr/motr is the implementation of the Decentralized Web Node for the Sonr Blockchain.
Install
go get github.com/onsonr/motr
Usage
Example: As a library
package main
import (
"github.com/onsonr/motr"
)
func main() {
// Create a new decentralized web node
node := motr.NewNode()
// Start the decentralized web node
node.Start()
}
Example: As a Service Worker
GOOS=js GOARCH=wasm go build -o app.wasm ./cmd/vault/main.go
Example: Via Cloudflare Workers
GOOS=js GOARCH=wasm go build -o app.wasm ./cmd/proxy/main.go
Contributing
Contributions are welcome!
License
Copyright (c) 2024, diDAO
Description
Languages
templ
49.2%
Go
31.2%
JavaScript
18.5%
Makefile
1.1%