npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@better-email/maizzle

v0.1.0

Published

Build Better Email Design System trees from existing Maizzle projects.

Readme

@better-email/maizzle

Turn an existing Maizzle project into a Better Email Design System file tree. Maizzle keeps doing the Tailwind compilation, component expansion, and CSS inlining; the adapter adds stable Module metadata and files that better ds push can ship.

Setup

Install the adapter and Maizzle 5 in the Maizzle project:

pnpm add -D @better-email/maizzle @maizzle/framework@^5

Add better.maizzle.config.mjs:

export default {
  modules: "src/modules/**/*.html",
  designSystemDir: "better-src",
  out: "better",
  // maizzle: "./config.js",
};

The values shown are the defaults. When maizzle is omitted, the adapter loads config.js and overlays config.production.js when they exist. Module builds default css.inline to true so utility styles survive in email fragments. An explicit css.inline value in the Maizzle config wins; Maizzle keeps CSS it cannot inline, such as media queries.

Tailwind replaces the content entry matching the adapter's Module glob with each Module body independently. Other configured raw, file, and glob entries remain as explicit extra content. Successfully inlined selectors and unused rules are removed from the residual <style> block.

Run better-maizzle init to create that config, a minimal version 3 Design System base in better-src/, and an example Module. It refuses to overwrite existing files.

Module front matter

Keep each Module as a normal Maizzle HTML fragment and add a better YAML block:

---
better:
  key: hero
  name: Hero
  settings:
    - key: hero
      name: Hero
      inputs:
        - key: heading
          name: Heading
          type: text
          defaultValue: Welcome
---

<table class="w-full">
  <tr>
    <td class="p-6 text-2xl">@{{ hero.heading }}</td>
  </tr>
</table>

Use Maizzle's @{{ ... }} escape when a Better Email Liquid output must survive the build; the result is literal {{ ... }} in module.liquid. Liquid tags such as {% if hero.heading %} pass through unchanged.

Responsive utilities such as sm:text-3xl remain in that Module's residual <style> block for clients that honor embedded CSS. For broader email-client support, define responsive helpers in the <head> of better-src/base.liquid instead.

Module keys use lowercase underscore-separated identifiers. Module and setting and input IDs are optional: missing IDs become mz_<moduleKey>, mz_<moduleKey>_<settingKey>, and mz_<moduleKey>_<settingKey>_<inputKey>. Explicit IDs are preserved when adopting an existing server-side Module. Setting keys must be unique across the Template Base and every Module; input keys must be unique within their setting.

Build

Bind the output directory to the target Design System once, then build and push from that directory:

better ds pull <id> --dir better
better-maizzle build
(cd better && better push)

Use better-maizzle build --quiet in automation to suppress the summary. The build validates the complete output tree with the same serializer used by better push before writing any files.

The build writes the documented Design System tree under better/ and records its Module keys in better/.better-maizzle-manifest.json. It removes only manifest-owned Modules that disappeared from the source glob; pulled and hand-maintained Module directories survive. It never touches better/.better/ or unrelated files.

Publishing

Maintainers build and verify the standalone package, then publish it publicly:

pnpm run build:maizzle-package
npm publish dist/maizzle-package --access public