nowfound

Life & fun · July 28, 2018

Moon – 3kb JavaScript UI compiler

The purely functional user interface library that

Moon – 3kb JavaScript UI compiler launched on July 28, 2018 with 71 votes, #599 of 2,673 launches that month and more than 90% of that year's launches. The site was still online in September 2026, 8 years on.

Visit kbrsh.github.io ↗Alternativestop 22% of July 2018

In plain words

Moon is a 3kb JavaScript library for building user interfaces with pure functions instead of traditional reactive frameworks. It treats applications as functions that interact with the outside world through drivers, eliminating the need for concepts like local state or imperative code. Designed for developers seeking a functional programming approach to web development, Moon emphasizes simplicity and performance while reducing the abstractions and dependencies typically required in modern web applications.

written from the facts on this page · September 2026

From the sources

Applications today are complex, built on top of frameworks that create abstractions fundamentally based on mutability and imperative code. They introduce concepts like reactivity or local state or algebraic effects, all in attempt to represent views as a function of state. In reality, applications are much more sophisticated and require third-party libraries for any effects other than updating a view. Moon is a novel approach to web applications based on pure functions. An application is a function that uses drivers , programs that provide an interface to the real world. These functions take input from drivers and return output to drivers. Drivers can be responsible for things like views,…from kbrsh.github.io

Does a similar job

all alternatives →

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, July 2018

the whole month →