Vecty lets you build responsive and dynamic web frontends in Go using WebAssembly, competing with modern web frameworks like React & VueJS.
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.15 |
3.6M | 1010K | 745K |
todomvc.wasm |
go 1.15 |
2.9M | 825K | 617K |
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.