# gopherjs/gopherjs

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

Repository: https://github.com/gopherjs/gopherjs
Canonical: https://ross.abutalabs.com/products/gopherjs
Language: Go
License: BSD-2-Clause
License Family: permissive
Topics: go, javascript, compiler, golang, hacktoberfest
Last push: 2026-08-20T17:56:18+00:00

## Health v2 (maintenance only)
Score: 91/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 78, longevity 100
- inputs: {"age_days": 4754, "days_push": 13, "days_rel": 68, "gap_med": 70.0, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 13181, forks 574 (observed 2026-08-28T04:11:02.444406+00:00)

## What it is
GopherJS is a compiler that transpiles Go source code into pure JavaScript, allowing Go programs to run in browsers and Node.js. It supports nearly all Go features including goroutines, enabling front-end development in Go.

## Use cases
- compile go code to javascript
- write frontend in go
- run go in the browser
- share go code between backend and frontend
- port go libraries to javascript

## When to choose
- you want to write browser applications in Go
- you need to reuse existing Go code in JavaScript environments
- you prefer Go's type system and tooling for front-end work

## When to avoid
- you need cgo or native Go runtime features
- WebAssembly via the official Go compiler is a better fit
- you need the latest Go version support immediately

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, build-tool, developer-tools
- domain: compilers, web-development, frontend, programming-languages
- platform: go, browser, cli, cross-platform
- tags: golang, javascript, transpiler, wasm-alternative, goroutines

## Member repositories
- gopherjs/gopherjs (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:02.444406+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:13:27.837042+00:00, confidence not recorded.
  - readme: https://github.com/gopherjs/gopherjs (fetched 2026-08-28T04:11:02.444406+00:00, sha 0e6c9b88ed6b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
