# kbrsh/moon

🌙 The minimal & fast library for functional user interfaces

Repository: https://github.com/kbrsh/moon
Canonical: https://ross.abutalabs.com/products/moon
Homepage: https://moonjs.org
Language: JavaScript
License: MIT
License Family: permissive
Topics: moon, javascript, ui, functional-programming
Last push: 2024-02-29T16:12:34+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 3702, "days_push": 916, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 5950, forks 194 (observed 2026-08-28T04:09:32.715090+00:00)

## What it is
Moon is a minimal, fast JavaScript library for building functional user interfaces, where applications are pure functions communicating with the browser through 'drivers'. It weighs about 2kb minified+gzip and offers a declarative, driver-based design.

## Use cases
- build a lightweight single-page web app
- create UIs with a purely functional architecture
- render views as a function of state without mutable reactivity
- keep JavaScript bundles extremely small
- learn functional frontend design patterns

## When to choose
- you want a tiny (~2kb) functional UI library
- you prefer pure functions and driver-based architecture over mutable state
- you're building a small to medium web app with minimal dependencies

## When to avoid
- you need a large ecosystem, mature tooling, and community support
- you require extensive third-party component libraries
- you want long-term guaranteed maintenance - the project sees infrequent releases

## Facets
- artifact type: library
- maturity: maintenance
- function: frontend-framework, ui-components, state-management, routing
- domain: web-development, frontend
- platform: browser
- tags: functional-ui, driver-based-architecture, tiny-bundle, virtual-dom, declarative, functional-programming, javascript, nodejs

## Member repositories
- kbrsh/moon (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:09:32.715090+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:50:43.320336+00:00, confidence not recorded.
  - readme: https://github.com/kbrsh/moon (fetched 2026-08-28T04:09:32.715090+00:00, sha b58fdba80144)
  - homepage: https://moonjs.org (fetched 2026-08-29T08:46:26.434959+00:00, sha c9a0a564bc1e)
  - registry_npm: https://registry.npmjs.org/moon (fetched 2026-08-29T08:46:26.444992+00:00, sha 483e05d03eb3)
- Data as of 2026-08-30T08:39:29.467469+00:00.
