Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
If you're wondering if you should use Vecty or Vugu, consider reading this Twitter thread for advice from both myself and the creator of Vugu.
Vecty is currently considered to be an experimental work-in-progress. Prior to widespread production use, we must meet our v1.0.0 milestone goals, which are being completed slowly and steadily as contributors have time (Vecty is over 4 years in the making!).
Early adopters may make use of it for real applications today as long as they are understanding and accepting of the fact that:
For a list of projects currently using Vecty, see the doc/projects-using-vecty.md file.
Vecty has nearly zero dependencies, it only relies on reflect
from the Go stdlib. Through this, it is able to produce the smallest bundle sizes for Go frontend applications out there, limited only by the Go compiler itself:
Example binary | Compiler | uncompressed | gzip --best |
brotli |
---|---|---|---|---|
hellovecty.wasm |
tinygo 0.14.0 |
252K | 97K | 81K |
hellovecty.wasm |
go 1.15 |
2.1M | 587K | 443K |
markdown.wasm |
go 1.19 |
5.9M | 1.3M | 952K |
todomvc.wasm |
go 1.15 |
2.9M | 825K | 617K |
You can find these examples under the example directory along with a readme on how to go about running a vecty project.
Note: Bundle sizes above do not scale linearly with more code/dependencies in your Vecty project. hellovecty
is the smallest base-line bundle that the compiler can produce with just Vecty as a dependency, other examples above pull in more of the Go standard library and you would not e.g. have to pay that total cost again.
See the doc/CHANGELOG.md file.