# PureScript

A strongly-typed language that compiles to JavaScript

Repository: https://github.com/purescript/purescript
Canonical: https://ross.abutalabs.com/products/purescript
Homepage: https://www.purescript.org
Language: Haskell
License: NOASSERTION
License Family: other
Topics: haskell, purescript, javascript, typed-language, alt-js
Last push: 2026-07-08T02:13:54+00:00
Link (homepage): https://www.purescript.org

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

## Adoption (not part of the score)
Stars 8901, forks 575 (observed 2026-08-28T04:10:26.200202+00:00)

## What it is
PureScript is a small, strongly typed functional programming language inspired by Haskell that compiles to readable JavaScript. It features expressive types such as row polymorphism, higher-kinded types, and type classes, with tooling for building web applications and servers.

## Use cases
- write type-safe frontend web apps that compile to javascript
- use haskell-style functional programming in the browser
- build web servers with a strongly typed alt-js language
- learn functional programming with expressive types
- interoperate with existing javascript libraries from a typed language

## When to choose
- you want Haskell-like type safety targeting JavaScript
- you need readable JS output and easy JS interop
- you value expressive types like row polymorphism and higher-kinded types

## When to avoid
- you need a huge ecosystem or mainstream hiring pool like TypeScript
- you want a language with no Haskell-style learning curve
- you need non-JavaScript backend targets without FFI work

## Facets
- artifact type: library
- maturity: active
- function: compiler, programming-language, type-system
- domain: programming-languages, compilers, web-development, frontend
- platform: windows, cross-platform
- tags: alt-js, haskell-inspired, functional-programming, strongly-typed, compiles-to-javascript, javascript, nodejs, linux, macos

## Member repositories
- purescript/purescript (main) score 76
- purescript/documentation (docs) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:10:26.200202+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:24:43.729609+00:00, confidence not recorded.
  - readme: https://github.com/purescript/purescript (fetched 2026-08-28T04:10:26.200202+00:00, sha 5e93f715b2bd)
  - homepage: https://www.purescript.org (fetched 2026-08-29T08:25:17.957793+00:00, sha 31a9b49a2786)
- Data as of 2026-08-30T08:39:29.467469+00:00.
