An open API service indexing awesome lists of open source software.

https://github.com/avidal/caddy-fastlike

Work-in-progress Caddy Server plugin to run fastlike-compatible wasm programs
https://github.com/avidal/caddy-fastlike

caddy caddy-plugin golang wasm

Last synced: 5 months ago
JSON representation

Work-in-progress Caddy Server plugin to run fastlike-compatible wasm programs

Awesome Lists containing this project

README

          

# caddy-fastlike

A [Caddy v2](https://caddyserver.com) plugin that can run WebAssembly code via [fastlike](https://fastlike.dev)

## try it out

Extremely beta. But you can try it out:

```
# Build the example wasm
$ cd testdata && cargo build

# Get xcaddy and use it to build this plugin
$ go get -u github.com/caddyserver/xcaddy/cmd/xcaddy
$ env CGO_ENABLED=1 xcaddy build --with fastlike.dev/caddy-fastlike=$(pwd)

# Run caddy with the example config
$ ./caddy run --config example-config.json
```

Now all requests to `localhost:2105` will run through the wasm module via fastlike. Try
http://localhost:2105/teapot for a static response.