• This repository has been archived on 08/Jun/2021
  • Stars
    star
    168
  • Rank 225,507 (Top 5 %)
  • Language
    Rust
  • Created almost 6 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Woz is a progressive WebAssembly app (PWAA) generator for Rust.

Build Status

What is Woz?

Woz is a progressive WebAssembly app (PWAA) generator for Rust.

Docs

See https://woz.sh for the latest docs.

Quickstart

Before we begin you must have a recent version of Rust installed as well as wasm-bindgen.

Install wasm-bindgen

Woz uses wasm-bindgen to generate the interop calls between WebAssembly and JavaScript. This allows you to write the entire application in Rustโ€”including rendering to the dom.

cargo install -f wasm-bindgen-cli

Install wasm compiler target

rustup target add wasm32-unknown-unknown

Install Woz

Install a pre-built binary.

For macOS (64 bit only):

curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-apple-darwin

For linux (via musl):

curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-unknown-linux-musl

For bsd:

curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-unknown-freebsd
curl -LSfs https://woz.sh/bin/install.sh | sh -s -- --target x86_64-unknown-netbsd

Updating

To update to the latest version of woz run the following command.

curl -LSfs https://woz.sh/bin/install.sh | sh -s -- -f --target <NAME OF TARGET>

Setup and deploy

# Follow prompts to create a free account and deploy to the sandbox
woz signup
# Create a new app
woz new myapp && cd myapp
# Deploy it
woz deploy

Examples

The 'Seed' example app uses the seed framework and clocks in at ~600kb (including ~300kb for an icon and splashscreen), works offline, and can be installed to your homescreen on iOS or Android devices. You can try it out here

Self-hosting

You can self-host by using woz to build your app locally and upload the files to your static file hosting service such as AWS S3.

Build the app locally:

cd myapp/
woz build

Follow the cli output to get the location of the generated app files on disk. It will look something like:

App package directory can be found at /Users/myusername/.woz/myapp/pkg

The app directory contains an index.html file that will be the entry point for running the app in a browser.

Note: the security requirements for PWAs and WebAssembly means you will need to serve the files over https. Browsing the files directly in the browser (e.g. file://) will result in security-related errors. Use a static file server and install an SSL certificate to be able to install the app to your home screen.

You can also build Woz so that it can use your AWS account and allow multiple users to securely deploy apps to a shared S3 bucket. See https://woz.sh for the latest docs.

License

Eclipse Public License 1.0 (EPL-1.0)

More Repositories

1

chocolatier

WIP ClojureScript game/engine using Pixi.js for rendering.
Clojure
426
star
2

cargo-safety

cargo-safety provides safety checks for Rust projects by finding all uses of unsafe code in dependencies.
Rust
61
star
3

clojure-aleph-chat

A simple chatroom service built with Clojure, Aleph, and Compojure.
JavaScript
38
star
4

rust-graphplan

Implementation of the graphplan algorithm and plangraph data structure written in rust
Rust
15
star
5

grammarling

Interactive grammar parsing renderer
Clojure
15
star
6

django-cohorts

Reusable app for performing cohort analysis on django projects.
Python
15
star
7

emacs.d

My emacs setup
Emacs Lisp
14
star
8

praline

Reagent component for inspecting and editing run time state
Clojure
7
star
9

clojure-west-2016-functional-game-engine-design

Slides from the Functional Game Engine Design for the Web talk at Clojure West 2016 by Alex Kehayias
HTML
7
star
10

github-org-repo-stats

Get basic stats for each repo in a GitHub organization as org-mode tables
Clojure
5
star
11

mentor

P2PU Mentorship
JavaScript
4
star
12

hyper-org-mode-el

hyper-org-mode emacs package
Emacs Lisp
2
star
13

processing-clj-demo

Example of interoping with Javascript from ClojureScript using Processing.js as an example
JavaScript
2
star
14

armature

WIP ClojureScript library for creating event driven frontend applications using core.async channels.
Clojure
2
star
15

python-meetup-graphplan-20160713

Slides from my talk on AI planning using the Graphplan algorithm implemented in python for the SF Python Meetup on July 13th, 2016
HTML
2
star
16

tunnelcast

Rust
1
star
17

functional-game-engine-design

Slides from my talk on functional game engine design
HTML
1
star
18

org-ai

Python
1
star
19

hyper-org-mode

Clojure
1
star
20

overtone-network-metronome

Experiment in using a networked osc metronome for synchronizing with overtone
Clojure
1
star
21

p2pu-bootstrap-overrides

Overrides of Twitter Bootstrap for P2PU
JavaScript
1
star