# Write Go code in JavaScript files alternatives

Write Go code in JavaScript files: This Vite plugin allows developers to write Go code directly within JavaScript files using a "use golang" directive, automatically compiling it to WebAssembly.

24 products that do a similar job, closest first. 17 have pricing checked on their own site; 17 of those are free or have a free tier.

Page: https://nowfound.app/alternatives/write-go-code-in-javascript-files
About Write Go code in JavaScript files: https://nowfound.app/launch/write-go-code-in-javascript-files.md

- [Code To Go](https://nowfound.app/launch/code-to-go): Find updated snippets for common JavaScript use cases (2017-12-15, 437 votes, codetogo.io)
- [Wrote a tiny WebAssembly (wat2wasm) compiler in](https://nowfound.app/launch/wrote-a-tiny-webassembly-wat2wasm-compiler-in-go): This is a minimal WebAssembly compiler written in Go that converts WebAssembly text format (WAT) to binary format (WASM). (2022-11-01, 75 votes, free, github.com)
- [Vite](https://nowfound.app/launch/vite-st412727): Next generation frontend tooling (2023-09-03, 671 votes, free, vite.dev)
- [Go Template Preview](https://nowfound.app/launch/go-template-preview-powered-by-webassembly): Quickly test and visualize your Go templates live. Template and data never leave your browser unless you share. (2022-06-12, 102 votes, gotemplate.io)
- [Wasmer](https://nowfound.app/launch/wasmer-a-go-library-for-executing-webassembly-binaries): 🐹🕸️ WebAssembly runtime for Go. (2019-05-30, 44 votes, free, github.com)
- [Execute JavaScript in a WebAssembly QuickJS](https://nowfound.app/launch/execute-javascript-in-a-webassembly-quickjs-sandbox): This TypeScript package allows you to safely execute JavaScript code within a WebAssembly sandbox using the QuickJS engine. Perfect for isolating and running untrusted code securely, it leverages the… (2024-07-07, 206 votes, free, github.com)
- [Gomponents, HTML components in pure Go](https://nowfound.app/launch/gomponents-html-components-in-pure-go): Gomponents is an HTML component builder written entirely in Go that uses a domain-specific language-like syntax for generating HTML. (2024-10-15, 113 votes, gomponents.com)
- [Goboscript, text-based programming language](https://nowfound.app/launch/goboscript-text-based-programming-language-compiles-to-scrat): goboscript is a text-based programming language which compiles to Scratch. It allows you to write Scratch projects in text, and compile it into a .sb3 file - which can be opened in the Scratch editor… (2025-05-19, 162 votes, free, github.com)
- [A new stdlib for Golang focusing on platform](https://nowfound.app/launch/a-new-stdlib-for-golang-focusing-on-platform-native-support): No gc, No goroutines, Produces small binaries while using the unmodified official go toolchain, and comes with complete Web SDK (generated from w3c/webref). We are building \`pcz\` to provide a reimagi… (2023-10-02, 154 votes, free, github.com)
- [Firefox in WebAssembly](https://nowfound.app/launch/firefox-in-webassembly): This is the entire Firefox browser rendering to a element. Gecko, all UI components, and the Spidermonkey JS engine are all compiled and running in WebAssembly. Here are a few things you might find i… (2026-07-15, 273 votes, developer.puter.com)
- [GoCodeo](https://nowfound.app/launch/gocodeo): The fastest path from PRD to full-stack apps (2025-07-01, 112 votes, free, marketplace.visualstudio.com)
- [Book about writing web apps in Go without a](https://nowfound.app/launch/book-about-writing-web-apps-in-go-without-a-framework): Learn how to write webapps without a framework in Go. (2016-08-05, 158 votes, free, github.com)
- [Compiling C in the browser using WebAssembly](https://nowfound.app/launch/compiling-c-in-the-browser-using-webassembly): We’ve reached a major milestone in making any software run with WebAssembly. Thanks to the newest release of Wasmer (4.4) and the Wasmer JS SDK (0.8.0) ... (2024-10-07, 174 votes, free tier, from $1/mo, wasmer.io)
- [TinyGo](https://nowfound.app/launch/tinygo-llvm-based-go-compiler-for-microcontrollers): Go compiler for small places. Microcontrollers, WebAssembly (WASM/WASI), and command-line tools. Based on LLVM. (2018-08-18, 177 votes, free, github.com)
- [Gojay](https://nowfound.app/launch/gojay-performant-json-encoder-decoder-for-golang): high performance JSON encoder/decoder with stream API for Golang - GitHub - francoispqt/gojay: high performance JSON encoder/decoder with stream API for Golang (2018-05-20, 153 votes, free, github.com)
- [A fast JSON library for Go](https://nowfound.app/launch/a-fast-json-library-for-go): Fast JSON encoder/decoder compatible with encoding/json for Go (2021-02-08, 119 votes, free, github.com)
- [Go playground powered by WASM that runs in the](https://nowfound.app/launch/go-playground-powered-by-wasm-that-runs-in-the-browser): Go playground powered by WASM is a browser-based environment for writing and running Go code without installation. (2021-09-23, 140 votes, go-playground-wasm.vercel.app)
- [Web Development with Go](https://nowfound.app/launch/web-development-with-go): Learn to build web application using Go (aka Golang) (2017-06-19, 92 votes, free, usegolang.com)
- [Vite-plugin-ssr](https://nowfound.app/launch/vite-plugin-ssr-do-one-thing-do-it-well-alternative-to-next): Vite-plugin-ssr author here. Let me know if you have questions! (2022-10-13, 114 votes, free, vite-plugin-ssr.com)
- [ffjson](https://nowfound.app/launch/ffjson-faster-json-serialization-in-go): ffjson is a code generation tool for the Go programming language that accelerates JSON serialization by producing static code for JSON encoding interfaces. (2014-03-31, 83 votes, journal.paul.querna.org)
- [monkey-giggle](https://nowfound.app/launch/i-wrote-a-vm-and-compiler-for-a-small-language-in-go): My implementation of Thorsten Bell's book (Writing an Interpreter in Go) (2020-05-04, 37 votes, free, github.com)
- [quicktype](https://nowfound.app/launch/quicktype): Millions of developers have used quicktype to generate ten billion lines of typesafe models, serializers, and validators from JSON, JSON Schema, and GraphQL in TypeScript, Python, Swift, C#, Go, Rust… (2018-01-10, 88 votes, quicktype.io)
- [A minimal and idiomatic WebSocket library for Go](https://nowfound.app/launch/a-minimal-and-idiomatic-websocket-library-for-go): Minimal and idiomatic WebSocket library for Go. (2019-04-27, 99 votes, free, github.com)
- [Jason](https://nowfound.app/launch/jason-a-new-json-library-for-go): Easy-to-use JSON Library for Go. (2014-12-02, 106 votes, free, github.com)
