Skip to content
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
/ venusia Public archive

📦 small wasm module registry (for devs and experiments)

License

Notifications You must be signed in to change notification settings

bots-garden/venusia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Venusia

Venusia is a small https wasm module registry

Upload wasm file

curl -v \
  -F "file=@oh.wasm" \
	-H "Content-Type: multipart/form-data" \
	-X POST https://localhost:9999/wasm/upload

Delete wasm file

curl -v \
	-X DELETE https://localhost:9999/wasm/delete/oh.wasm

Download wasm file

curl https://localhost:9999/wasm/download/oh.wasm --output oh.wasm

Build Venusia

go build

Create a Runnable

cd samples
subo create runnable hello --lang tinygo
subo build hello/
# it will generate a hello.wasm file

Launch Venusia

REGISTRY_CRT="certs/venusia.local.crt" \
REGISTRY_KEY="certs/venusia.local.key" \
REGISTRY_HTTP=7070 \
./venusia

Publish a wasm file to Venusia

curl -v \
  -F "file=@samples/hello/hello.wasm" \
	-H "Content-Type: multipart/form-data" \
	-X POST https://localhost:7070/wasm/upload

it will upload the file to the functions directory

Serve hello.wasm with Sat

SAT_HTTP_PORT=8080 ./sat/.bin/sat https://localhost:7070/wasm/download/hello.wasm

curl localhost:8080 -d 'Bob Morane'

Generate self-signed certificates

sudo apt-get update
sudo apt install libnss3-tools -y
brew install mkcert

If you use Gitpod to open this project you don't need to install anything

About

📦 small wasm module registry (for devs and experiments)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages