Skip to content
r.

gopherjs

gopherjs/gopherjs · Public GitHub repository

A compiler from Go to JavaScript for running Go code in a browser

Open project in RepoShelf

Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

gopherjs live demo screenshot
Captured from the live demo · 2026-11-01

About this project

Author-written excerpt from the project README.

GopherJS compiles Go code (go.dev) to pure JavaScript code. Its main purpose is to give you the opportunity to write front-end code in Go which will still run in all browsers.

Nearly everything, including Goroutines (compatibility documentation). Performance is quite good in most cases, see HTML5 game engine benchmark. Cgo is not supported.

Requirements and intended audience

GopherJS compiles Go code (go.dev) to pure JavaScript code. Its main purpose is to give you the opportunity to write front-end code in Go which will still run in all browsers.

Not recorded: account, external api key, paid service, self-hosting. Missing information does not mean there are no requirements.

Statements extracted from the author’s documentation · Checked 2026-10-20. Source: https://github.com/gopherjs/gopherjs/blob/master/README.md

Recorded maintenance information

Last recorded source update: 2026-08-20. Saved release: v1.21.0 · 2026-06-26. These dates do not guarantee ongoing maintenance.

Technologies
Go
Licence
BSD-2-Clause. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
Demo check
A public page loaded on 2026-11-16. This does not test every feature.

Browse related categories