Ema is a library and toolkit for creating static websites with a development workflow that responds to changes in source content and application code. It combines conventional static site generation with a live server that updates the browser when the underlying website changes. Developers can work on a site while seeing the effects of their changes without repeatedly performing a complete build and manually refreshing the page.
The framework is organised around change-aware data and site-generation logic. Developers describe the information used by a website and how that information maps to pages and assets. This makes Ema suitable for sites where the content is generated from files, application data or other sources that may change while the site is being developed.
A distinguishing feature is its live development server, which maintains communication with the browser using WebSockets. Changes can be propagated to the displayed page, while the same application can also produce conventional static output for deployment. Ema is intended for developers who want direct control over routing, rendering and the site’s underlying data model.
This is free and open source software.
Key Features
- Generates static websites from application-defined routes and content.
- Provides a live development server with automatic browser updates.
- Uses WebSockets to communicate changes to connected browsers.
- Responds to changes in source code and website data.
- Supports change-aware values through its Dynamic abstraction.
- Provides route types and route combinators for constructing website paths.
- Includes support for file-based, folder-based and composite routes.
- Allows application-defined rendering of individual pages and resources.
- Provides separate static generation and live-serving workflows.
- Supports assets and other resources alongside HTML pages.
- Exposes command-line argument handling for applications using the framework.
- Provides reusable components for building customised site generators.
Website: github.com/srid/ema
Support:
Developer: Sridhar Ratnakumar
License: GNU Affero General Public License v3.0
Ema is written in Haskell. Learn Haskell with our recommended free books and free tutorials.
Related Software
| Haskell Static Site Generators | |
|---|---|
| Hakyll | Library for generating static sites |
| yst | Static websites from YAML and string templates |
| Ema | Next-gen library toolkit for building jamstack-style static sites |
| Emanote | Creates structured websites from plain-text notes |
| Slick | Provides a small set of tools and combinators for building static websites |
| Bark | Intended to be very simple |
| rib | rib is superceded by Ema |
Read our verdict in the software roundup.
LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more. Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion. Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README. |


Please read our Comment Policy before commenting.