# tweag/asterius

DEPRECATED in favor of ghc wasm backend, see https://www.tweag.io/blog/2022-11-22-wasm-backend-merged-in-ghc

Repository: https://github.com/tweag/asterius
Canonical: https://ross.abutalabs.com/products/asterius
Language: Haskell
License Family: other
Topics: webassembly, haskell, compiler, ghc
Archived: true
Last push: 2022-11-14T00:45:01+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3208, "days_push": 1389, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1948, forks 56 (observed 2026-08-28T04:05:57.999993+00:00)

## What it is
Asterius is a Haskell to WebAssembly compiler based on GHC that compiles Haskell source files or Cabal executables to WebAssembly plus JavaScript, runnable in Node.js or browsers. It offers seamless JavaScript interop with Promise-based async FFI and is now deprecated in favor of GHC's native WebAssembly backend.

## Use cases
- compile haskell code to webassembly
- run haskell programs in the browser
- build haskell apps for node.js as wasm
- interop between haskell and javascript with promises
- compile pandoc or other haskell tools to run client-side

## When to choose
- you need to run existing Haskell code in a browser or Node.js via WebAssembly on older GHC versions
- you want lightweight async JavaScript FFI from Haskell

## When to avoid
- you are starting a new project - use GHC's built-in WebAssembly backend instead
- you need a maintained toolchain or long-term support

## Facets
- artifact type: cli-tool
- maturity: abandoned
- function: compiler, wasm
- domain: compilers, web-development, programming-languages
- platform: browser, cross-platform
- tags: haskell, webassembly, ghc, deprecated, javascript-interop, compiler, nodejs, docker

## Member repositories
- tweag/asterius (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:57.999993+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-30T08:32:10.286022+00:00, confidence not recorded.
  - readme: https://github.com/tweag/asterius (fetched 2026-08-28T04:05:57.999993+00:00, sha 34ca43b7e740)
- Data as of 2026-08-30T08:39:29.467469+00:00.
