talira

The React framework for Haskell

open sourceBSD-3-Clausefree

miso is a Haskell library for building web and native user interfaces, inspired by Elm and React. An application is components made of a model, an update function and a view, in the Model-View-Update style, pure by default. It compiles to WebAssembly or JavaScript, with a virtual DOM, event delegation and batching, hydration and server-side rendering, type-safe client-side routing, subscriptions for long-running effects, lifecycle hooks, and components with context, fragments and props. It draws SVG, 2D canvas and WebGL (through three.js), and talks to servers with fetch, server-sent events and WebSockets. Native iOS, Android and HarmonyOS apps are built through Lynx. The miso CLI is one binary with the MicroHs compiler inside, so a project can start without GHC.

Problems it solves

  • write my web app's frontend in Haskell instead of JavaScript
  • build a single-page app with the Elm architecture in Haskell
  • compile Haskell to WebAssembly to run a UI in the browser
  • share types between a Haskell backend and its web frontend
  • build a mobile app in Haskell

Features

  • Model-View-Update components, pure by default
  • compiles to WebAssembly or JavaScript
  • virtual DOM with event delegation and batching
  • hydration and server-side rendering
  • type-safe client-side routing
  • SVG, 2D canvas and WebGL
  • fetch, server-sent events and WebSocket support
  • native iOS, Android and HarmonyOS apps through Lynx
  • miso CLI with MicroHs inside, no GHC needed
  • hot reload

Capabilities

Has a command line toolplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what miso does.

  1. Next.js The React framework for the web.

Compare miso with the top 3