• Stars
    star
    160
  • Rank 234,703 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created over 5 years ago
  • Updated over 1 year ago

Reviews

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

Repository Details

πŸ“¦ CLI for setting up a Go WebAssembly frontend app

go-web-app cover

GitHub code size in bytes Go Report Card Codacy grade

⚠️ looking for maintainers (dm @v_1rtl on telegram or email to [email protected])

Simple CLI for setting up Go WebAssembly frontend app.

What's included

  • πŸ› οΈ Dev Server with live reload
  • πŸ—œοΈ TinyGo for small WebAssembly output
  • ➑ Git setup with files (such as README.md)
  • 🩹 Glue files (index.html + wasm_exec.js)

Requirements

  • Go 1.12+
  • Browser that supports WebAssembly
  • lld (LLVM linker)

Install

go get github.com/talentlessguy/go-web-app

Then use as go-web-app.

CLI Reference

go-web-app init <app name>

Initialize a project in a picked directory.

Project tree

out.wasm is generated when building. Other files are automatically added.

β”œβ”€β”€ src
β”‚   └── main.go
β”œβ”€β”€ build
β”‚   └── out.wasm
β”œβ”€β”€ go.mod
β”œβ”€β”€ index.html
β”œβ”€β”€ README.md
└── wasm_exec.js

go-web-app dev --port <port>

Builds the project on first run and launches a development server with specified port.

Default port is 8080.

After launching a server, you should go to http://localhost:<port>

Every time you change a file in src dev server automatically compiles and updates the page.

go-web-app build

Compiles go code to WebAssembly. Compiled out.wasm file could be found in build folder.

Everything in src compiles to build, every go file.

After build, binary size is shown

More Repositories

1

awesome-node-esm

A curated list of Node.js Native ESM modules and resources.
90
star
2

awesome-defi

Curated list of awesome DeFi protocols, dapps, wallets and other resources
46
star
3

use-onboard

πŸ›Ή React Web3 wallet hook for the Onboard.js library.
TypeScript
44
star
4

get-ens

πŸ—οΈ Get text records of an ENS address with ease
TypeScript
39
star
5

balance-crypto

πŸ’° Get wallet balance for 2.5K+ cryptocurrencies with a single function in Node.js and Deno
TypeScript
38
star
6

react-ogp

🌐 The ultimate React OpenGraph component
TypeScript
30
star
7

simple-ddos

[UNMAINTAINED AND UNPUBLISHED] πŸ’€ Multi-threaded DDoS script
JavaScript
25
star
8

hypermdx

⬇ Markdown enhanced with Hyperapp
TypeScript
19
star
9

erc20-balance

πŸ’Ž Get 2000+ ERC-20 token balances with JavaScript. Supports Node.js and Deno
TypeScript
19
star
10

vdom

Simple JavaScript Virtual DOM
JavaScript
18
star
11

use-ens

A React hook to fetch ENS records from a domain.
JavaScript
17
star
12

send-tx

🀝 Sign & send Ethereum transactions
TypeScript
15
star
13

streamdown

[LOOKING FOR MAINTAINERS] ⬇️ Stream markdown to HTML
TypeScript
12
star
14

hyperapp-fullstack-starter

πŸš€ Hyperapp fullstack starter with batteries included (SSR, routing, bundling)
JavaScript
11
star
15

react-ens-avatar

React component for ENS avatar image display with emoji as fallback
TypeScript
10
star
16

nexus-cloudinary

☁ Nexus plugin for Cloudinary
TypeScript
7
star
17

chain-provider

Multichain ethers.js provider based on EtherscanProvider
TypeScript
6
star
18

soundsphere

🎧 Modern SoundCloud API client for Node.js and Deno
TypeScript
6
star
19

og-service

🐹 Golang service for getting OpenGraph data from a URL
Go
5
star
20

huffman-deno

Super simple implementation of the Huffman algorithm in TyoeScript
TypeScript
5
star
21

create-shadowsocks-config

CLI for quick ShadowSocks config generation
Go
4
star
22

talentlessguy

my epic readme
4
star
23

telegram-bot-stats

Go library for collecting usage stats of telegram bots.
Go
4
star
24

transpile-node-modules

πŸ§ͺ CLI to transpile individual ESM packages to CommonJS with esbuild
JavaScript
4
star
25

node-unit-test-comparison

Comparison of Node.js testing frameworks for using them in libraries
JavaScript
4
star
26

next-eth

(W.I.P) Isomorphic Ethereum library for Next.js.
TypeScript
4
star
27

tech-design

Protvino Tech design website
JavaScript
3
star
28

httx

HTTP server, extended
JavaScript
3
star
29

w3r-modal

Simple Web3 wallet modal library.
TypeScript
3
star
30

tinyqs

Tiny qs alternative that uses URLSearchParams under the hood.
TypeScript
3
star
31

node_modules_cleaner

🧹 Cleans node_modules from non code files.
JavaScript
3
star
32

react-multi-level-nav

Multi-level navigation bar component for React
TypeScript
2
star
33

clif

smol CLI framework
TypeScript
2
star
34

GoToStuff

Codes from https://goto.msk.ru camp
Kotlin
2
star
35

yoga-wasm

C++
2
star
36

es-fresh

fresh rewrite in TypeScript with ESM and CommonJS targets
TypeScript
2
star
37

web3-iron-session

1
star
38

goto

C++
1
star
39

quark-player

Native GUI player written in Go.
Go
1
star
40

better-schema-link

πŸ›°οΈ Apollo SchemaLink with context support
TypeScript
1
star
41

lsgif

πŸ‘€ List GIFs in a directory
Shell
1
star
42

scroll-me

JavaScript
1
star
43

eth-clang-experiments

Clang experiments with Ethereum
C
1
star