Skip to content
This repository has been archived by the owner on Sep 16, 2022. It is now read-only.
/ wasmserve Public archive
generated from machlibs/template

Small web server specifically for serving Zig WASM applications in development

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

machlibs/wasmserve

Project moved

This project has graduated into the main codebase: https://github.com/hexops/mach/tree/main/tools/wasmserve

mach/wasmserve

Small web server specifically for serving Zig WASM applications in development

Getting started

Adding dependency

In a libs subdirectory of the root of your project:

git clone https://github.com/machlibs/wasmserve

Then in your build.zig add:

...
const wasmserve = @import("libs/wasmserve/wasmserve.zig");

pub fn build(b: *Builder) void {
    ...
    const serve_step = try wasmserve.serve(exe, ".", .{ .watch_paths = &.{"src/main.zig"} });
    const run_step = b.step("run", "Run development web server");
    run_step.dependOn(&serve_step.step);
}

Join the community

Join the Mach community on Discord or Matrix to discuss this project, ask questions, get help, etc.

About

Small web server specifically for serving Zig WASM applications in development

Resources

License

Unknown and 2 other licenses found

Licenses found

Unknown
LICENSE
Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published