• Stars
    star
    101
  • Rank 331,272 (Top 7 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created about 6 years ago
  • Updated about 1 year ago

Reviews

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

Repository Details

WASM Web "Framework" Playground

WASM Go Web "Framework"

This is a proof of concept, compiling Go to web assembly and manipulating the DOM. It's missing nearly everything that would make a framework useful. I welcome any ideas about how to turn this into something useful.

Root Folder

The root folder manipulates the DOM directly and is an incomplete programming thought. I was going to make a React-like component in Go/wasm, then I realized that Vecty already existed. See the markdownvecty folder for the Vecty version.

MarkdownVecty folder

The markdownvecty folder is a ported version of the Vecty "todomvc" example. It uses my fork of Vecty.

Video

See it in action: Dropbox Link to Video

Run in Docker

docker run -d -p 3000:3000 bketelsen/wasmvecty:1

Running

  • Install a WASM enabled version of Go (tip is good)
  • Makefile assumes this version of go is at ~/gowasm
  • run make run from a shell to build the server, the wasm output, and start the server.
  • navigate to http://127.0.0.1:3000

Forks

To make this project work, there have been several forks: vecty to gowasm/vecty gopherwasm to gowasm/gopherwasm ** Not anymore

Credits

The TodoMVC app is from Vecty's examples by Richard Musiol. Much of the inspiration for the work porting vecty came from this blog post.

This project isn't very much a creation, more an assembly of parts that already existed and were ready to be combined. Thanks to all who worked to get Go and web assembly support to this point.

Bonus Round

The markdownvecty directory contains a vecty application that builds & runs in wasm. Requires my fork of vecty: https://github.com/bketelsen/vecty placed at $GOPATH/src/github.com/gopherjs/vecty.

    cd markdownvecty && make run

License

MIT License

Copyright (c) 2018 Brian Ketelsen

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

captainhook

A generic webhook endpoint that runs scripts based on the URL called
Go
319
star
2

dlx

quick dev environments for linux using LXD. Disposable, composable, simple.
Go
91
star
3

slides

create, live-preview, edit, and publish reveal.js slide decks
JavaScript
85
star
4

coreos-kubernetes-digitalocean

Configuration for running Kubernetes/CoreOS/Rudder on Digital Ocean
76
star
5

zerodowntime

Files for zero downtime deployment using docker
Shell
75
star
6

trace

trace is a wrapper for net/trace that extends it by logging trace/event information to a structured log and providing metrics (counts, errors, histograms of durations) to Prometheus. De-clutter your functions by combining all the things you need to do in one place.
Go
73
star
7

gogrep

Fast parallel file search in Go using sync.ErrGroup
Makefile
58
star
8

dockerdevenv

A container with ubuntu-server, i3wm, vncserver and some dev tools for a nice Go development environment. Customizable to support any language for development.
Shell
54
star
9

handlersocket-go

A Go library for connecting to HandlerSocket (github.com/ahiguti/HandlerSocket-Plugin-for-MySQL)
Go
46
star
10

distributed

Go
44
star
11

microclass

Code and samples for Go Micro class (micro.mu)
JavaScript
41
star
12

bktw

Single binary blog powered by Strapi and Tailwind
JavaScript
32
star
13

gablog

Gopher Academy Blog -- fork of go.blog
Go
30
star
14

dotfiles-older

Dotfile management
Vim Script
30
star
15

finger

Unix `finger` for the modern age
Go
30
star
16

genkit

Work In Progress - Generator for GoKit Services
Go
24
star
17

ngp

New Go Package
Go
22
star
18

talks

Repository for public talks, demos, presentations
JavaScript
22
star
19

spotlight

JavaScript
20
star
20

gopheracademy

Gopher Academy
Go
18
star
21

ngc

NewGoCommand - An opinionated and lightweight project starter. (WORK IN PROGRESS)
Go
16
star
22

clippy

Clippy is your friend. A very helpful friend.
Go
15
star
23

GoResque

Obsolete - see www.goworker.org
Go
15
star
24

wsldev

Source code for https://wsl.dev
CSS
13
star
25

microgen

WIP: generate protobuf package from .proto files, web service and CLI client
Go
13
star
26

blog-next

NextJS/Tailwind/Strapi
JavaScript
12
star
27

ponzi

Caching middle layer for ponzu content
Go
11
star
28

testingclass

Go
11
star
29

fourday

Go
10
star
30

ponzigen

Generator for ponzu
Go
10
star
31

godocfs

present your $GOPATH as a FUSE filesystem with file nodes for the Go documentation of each package
Go
9
star
32

fuselxd

Mount an lxd container's filesystem using FUSE
Go
9
star
33

sciencemingle

Live coded for Big Marker Gopher Academy class on buffalo
JavaScript
9
star
34

hello-wapi

wapm install bketelsen/hello && wapm run hello
Zig
9
star
35

kv

Rust learning project, built live on Youtube with Ryan Levick
Rust
9
star
36

buffet

OpenTracing middleware for Buffalo
Go
9
star
37

godeck

Go app for Elgado StreamDeck
Go
8
star
38

hugo-nginx-base

Shell
8
star
39

classifier

Files your bills (in pdf form) based on text recognized in OCR data
Go
8
star
40

wedding

HTML
8
star
41

GopherTimes

Public website
Go
7
star
42

testbuffalo

isomorphic Buffalo app with isomorphicgo/isokit
JavaScript
7
star
43

cda

URL Shortener for Azure CDA peeps
Go
7
star
44

blog

karax based SPA blog. Very WIP, learning project, do not emulate
JavaScript
6
star
45

rocksweb

Go
6
star
46

kong

Kong is a Go library for interacting with the Kong API management system.
Go
6
star
47

gotutorials

Tutorials for Go
6
star
48

runner

Run Arbitrary WASM On the Server #YOLO
Go
5
star
49

noeqd

A "fork" of Blake Mizerany's noeqd with networking removed
Go
5
star
50

gcbot

Go
4
star
51

vscodetour

Tour of VS Code
JavaScript
4
star
52

wasmblog

Blog using Bartholomew served by WASI
CSS
4
star
53

gbfm

Go Beyond Five Minutes
JavaScript
4
star
54

gopherconband

gophercon band website
4
star
55

harvard

Harvard Homework
Java
3
star
56

buildingapis

JavaScript
3
star
57

bkencore

Encore powered blog and personal life API
Go
3
star
58

gobeyond

Go
3
star
59

overlays

JavaScript
3
star
60

sveltekit-strapi

strapi, tailwind, sveltekit, azure static web apps
Svelte
3
star
61

gqsamplebuffalo

Go
3
star
62

vdots

VanillaOS nix home-manager configs
Nix
3
star
63

structuretest

JavaScript
3
star
64

crypticmysql

Go Library for encrypting and decrypting values with the same implementation as MySQL AES_ENCRYPT and AES_DECRYPT
Go
3
star
65

dlxshell

Quick and easy development containers using LXD and a sprinkling of bash
Shell
3
star
66

svelte-materialize

JavaScript
3
star
67

HomelabOS

PHP
3
star
68

runison

Unison replacement in Rust
Rust
2
star
69

kafka

kafka training lite
Go
2
star
70

og-image-app

OG Image brian.dev
JavaScript
2
star
71

shell

waSCC capability that will make your ops folks cry
Rust
2
star
72

crosdev

crostini.dev source code
CSS
2
star
73

bketelsen.github.com

Ruby
2
star
74

strapi-tailwind

strapi cms, tailwind, gatsby
JavaScript
2
star
75

experiment

Go
2
star
76

censusai

OpenCensus + Go --> Azure AppInsights
Go
2
star
77

cgijoe

Go
2
star
78

dlxweb

Svelte
2
star
79

libgo

Go
2
star
80

lessons

Lessons for gopher.rocks - imported as gopher.rocks/source
Go
2
star
81

brianketelsen

Brian Ketelsen homepage
Ruby
2
star
82

fleek

Public Fleek repository
Nix
2
star
83

aks-training

AKS Training
Shell
2
star
84

coder-templates

Terraform templates for Coder server
HCL
2
star
85

anotherdlx

CSS
2
star
86

acrtasks

Demonstration of Azure Container Registry Build Tasks
Shell
2
star
87

bluefin-help

example linux yelp-based help documentation
Makefile
2
star
88

hackety

Shell
2
star
89

bml

The BML Markup Language
Go
2
star
90

courses

JavaScript
2
star
91

yadm

yet another attempt at dotfiles
Shell
1
star
92

dotfiles

Dotfiles for vscode
Shell
1
star
93

gq

Go
1
star
94

crosfiles

dotfiles for Crostini
Shell
1
star
95

typesnacks

1
star
96

dots

Vim Script
1
star
97

backlog

Fork of uber-go/zap with fluent interface added for less annoyance
Go
1
star
98

pbandj

JavaScript
1
star
99

slides-template

Template files for github.com/bketelsen/slides
JavaScript
1
star
100

vanillanix

How to install Nix on VanillaOS
1
star