motr/README.md

51 lines
949 B
Markdown

# `onsonr/motr`
[![GoDoc](https://godoc.org/github.com/onsonr/motr?status.svg)](https://godoc.org/github.com/onsonr/motr)
[![Go Report Card](https://goreportcard.com/badge/github.com/onsonr/motr)](https://goreportcard.com/report/github.com/onsonr/motr)
`onsonr/motr` is the implementation of the Decentralized Web Node for the Sonr Blockchain.
## Install
```bash
go get github.com/onsonr/motr
```
## Usage
#### Example: As a library
```go
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
```sh
GOOS=js GOARCH=wasm go build -o app.wasm ./cmd/vault/main.go
```
#### Example: Via Cloudflare Workers
```sh
GOOS=js GOARCH=wasm go build -o app.wasm ./cmd/proxy/main.go
```
## Contributing
Contributions are welcome!
## License
[MIT](LICENSE)
Copyright (c) 2024, diDAO