# konsoletyper/teavm

Compiles Java bytecode to JavaScript, WebAssembly and C

Repository: https://github.com/konsoletyper/teavm
Canonical: https://ross.abutalabs.com/products/teavm
Homepage: https://teavm.org
Language: Java
License: Apache-2.0
License Family: permissive
Topics: aot, java, javascript, jvm, webassembly
Last push: 2026-08-26T17:09:25+00:00

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

## Adoption (not part of the score)
Stars 3098, forks 333 (observed 2026-08-28T04:07:43.495094+00:00)

## What it is
TeaVM is an ahead-of-time compiler that translates Java bytecode (from Java, Kotlin, or Scala) into JavaScript, WebAssembly, or C. It ships with Maven/Gradle plugins and its own Apache-licensed reimplementation of the Java class library for building fast browser-based web apps without a JavaScript toolchain.

## Use cases
- compile java to javascript for the browser
- build web apps in java without npm and webpack
- compile kotlin or scala to webassembly
- reuse java backend code in the frontend
- aot compile jvm bytecode to c
- gwt alternative that works from class files

## When to choose
- you are a JVM developer writing a web front-end from scratch
- you want to share Java backend logic with browser code
- you need small, fast JavaScript/Wasm output without a JS build stack
- your code avoids heavy reflection, class loaders, and JNI

## When to avoid
- you want to port a large existing Java codebase to the browser unmodified
- your app relies heavily on reflection, resources, class loaders, or JNI
- you need to run Swing desktop apps in the browser (consider CheerpJ instead)
- you need stable embedding APIs for custom build tools

## Facets
- artifact type: library
- maturity: active
- function: compiler, build-tool, wasm
- domain: compilers, web-development, programming-languages, frontend
- platform: jvm, browser, wasm, cli
- tags: aot-compilation, java-to-javascript, java-to-webassembly, gwt-alternative, kotlin, scala, maven-plugin, gradle-plugin, web-server

## Member repositories
- konsoletyper/teavm (main) score 91

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:43.495094+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-30T07:27:16.261348+00:00, confidence not recorded.
  - readme: https://github.com/konsoletyper/teavm (fetched 2026-08-28T04:07:43.495094+00:00, sha 5207db0e782b)
  - homepage: https://teavm.org (fetched 2026-08-29T09:42:20.924271+00:00, sha 6a5ed0a7a5e2)
  - site_page: https://teavm.org/docs/intro/overview.html (fetched 2026-08-29T09:42:20.927264+00:00, sha 6c5657f5d8a5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
