5 unstable releases
0.16.2 | Nov 1, 2023 |
---|---|
0.16.1 | Oct 23, 2023 |
0.16.0 | Oct 18, 2023 |
0.15.0 | Sep 14, 2023 |
0.6.0 | Apr 19, 2023 |
#347 in WebAssembly
57 downloads per month
1.5MB
27K
SLoC
A functional framework for WebAssembly components that run on the server and client.
Explore the docs »
Install
·
Report Bug
·
Request Feature
Table of Contents
About The Project
Wick is a runtime for running and composing WebAssembly components together as full applications. Wick is built With ❤️, Rust, and Wasm.
Why Wick?
We built wick because we wanted a secure, fast, functional framework that used WebAssembly as its core component model. We wanted to build applications and libraries that could run on the server, client, and everywhere else. We needed it to be async first, streaming, and not rely on external systems. Suprisingly, nothing like this existed, so we built it.
Who should use Wick?
If you:
- Like functional programming ideas.
- Want to write code once and use it the same way everywhere.
- Like security baked into your applications.
- Have built enough software to recognize everyone is solving the same problems.
- Play on the bleeding edge of technology.
Then Wick is for you.
Demos/Examples
Online demos of Wick in action:
Public repository of component examples:
Wick's example directory:
Getting Started
You'll need the wick
binary to run Wick applications or invoke Wick components. You can install it with one of the following methods:
Installation
Pick your installation preference:
Install with Cargo
cargo install wick-cli
Install with Homebrew
brew install candlecorp/tap/wick
Install pre-built binaries
Mac/Linux
curl -sSL sh.wick.run | bash
Windows
curl https://ps.wick.run -UseBasicParsing | Invoke-Expression
Install from source
git clone https://github.com/candlecorp/wick.git && cd wick
just deps # install necessary dependencies
just install # or cargo install --path .
Usage
Wick's original WebAssembly component protocol uses RSocket to support complex, rich streams in WebAssembly.
Wick supports varying degrees of the standard WebAssembly component model and will continue to support more as the specification stabilizes.
To build a WebAssembly component
- Clone the template with
cargo generate
(or git clone) - Build & sign it with
just build
- Execute your new library component with
wick invoke
$ cargo generate candlecorp/wick templates/rust --name my-project
$ cd my-project
$ just build
$ wick invoke component.wick greet -- --input="$USER"
{"payload":{"value":"Hello, jsoverson"},"port":"output"}
We're constantly adding examples to the ./examples directory, which we also use as a base for our integration tests.
For more information, please refer to the Documentation
Contributing
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
License
Wick is distributed under the Elastic License 2.0 and Apache-2.0 licenses. See LICENSE
for more information and individual crates for details.
Contact
@candle_corp - jarrod@candle.dev
Project Link: https://github.com/candlecorp/wick
Dependencies
~118MB
~2.5M SLoC