ringvold

ringvold

Hey! :waving_hand: I made a thing!

Well, mostly Claude but I did have some say in the matter. :grinning_face_with_smiling_eyes:

It is a library for transforming HTML to email client optimized output. It was inspired by Maizzle, but as that is a node based project it did not fit very nicely with our Phoenix app and we also had some other use-cases we would like to have supported.

Story time!

We currently use MJML to create our emails in the apps we want some something else than plain text emails, but we found that it was hard to figure out what the end result would look like, with a sub-par feedback cycle, and had some issues related to different rendring in different email client (some important buttons just disappeared in gmail for some reason :smiling_face_with_tear:).

Also we had an experiment where we wanted an LLM-based agent to produce parts of the email and it had problems getting it right with MJML. But plain HTML and CSS, and also Tailwind, is something they do well so I searched for some projects similary to MJML and possible Tailwind support and found Maizzle. Its Nodejs based and already there it was a bit of a showstopper as I would like to not add node as a depenency and also it requires a build step as far as I understood. It also has its own template system which we dont need as we will just use HEEx.

I’m sure Maizzle a great project but it did not quite fit our needs. It did spark an idea though: what if we could create a library that could do the most important transformations for producing email optimized HTML, with Tailwind support, if you are so inclined, at runtime.

So thought, so done, as we say in Norwegian, or “No sooner said than vibe coded” might be a bit more correct her. :stuck_out_tongue:

The fun side effect of this for us is that we can create the email template/design in a way that is much easier to validate, whether its artisanally handcrafted or LLM-aided or generated.

Hemmer is a rust crate and a hex package packaged and delivered with rustler and rustler_precompile.

It has transformers for CSS inlining, table attribute defaults, Outlook conditional comments, rempx conversion, CSS variable resolution, and other smaller fixes and optimalizations.

TL;DR: Hemmer is a rust and elixir library for optimizing HTML for email. It’s early and tested to work well with a sample size of one, but you are free to give it a try if you want. :smile:

https://github.com/ringvold/hemmer

Where Next? Top

Trending in Announcing Top

woylie
Flop is an Elixir library that applies filtering, ordering and pagination parameters to your Ecto queries. offset-based pagination with...
New
MRdotB
I needed to reuse React components from my Chrome extension in my Phoenix/LiveView backend. I noticed that for Svelte/Vue, there are live...
New
woylie
I released Doggo, a collection of unstyled Phoenix components. https://github.com/woylie/doggo Features Unstyled Phoenix components....
New
GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
anuaralfetahe
Hello Published a new library - ProcessHub! ProcessHub is a library designed to manage process distribution within the Elixir cluster. ...
New

Other Trending Topics Top

mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
New
webofbits
With AI doing more of the implementation work, I’ve been wondering how much coding I should deliberately keep doing myself. My main conc...
#ai
New
AstonJ
This showed up on my feed.. anyone heard of it? Just hype? Ox Alpha is a reasoning model designed for coding, sustained ag...
New
bartblast
Hey folks, I just published a post about Hologram’s funding and where the project goes next - the short version: Curiosum as Main Spons...
New
CodeSync
:microphone: ElixirConf 2026 - Call for Talks is open! We’re heading to Chicago :united_states: :round_pushpin: In person + virtual :d...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews