# Automattic/juice

Juice inlines CSS stylesheets into your HTML source.

Repository: https://github.com/Automattic/juice
Canonical: https://ross.abutalabs.com/products/juice
Language: JavaScript
License: MIT
License Family: permissive
Topics: email, css, html, inline
Last push: 2026-08-24T14:33:24+00:00

## Health v2 (maintenance only)
Score: 98/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 99, release rhythm 96, longevity 100
- inputs: {"age_days": 5443, "days_push": 9, "days_rel": 29, "gap_med": 29, "n_releases_24m": 8}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3278, forks 233 (observed 2026-08-28T04:07:53.511893+00:00)

## What it is
Juice is a JavaScript library and CLI that inlines CSS stylesheets into HTML by converting CSS rules into style attributes. It is primarily used to prepare HTML emails and embedded HTML for environments that don't support style tags.

## Use cases
- inline css into html email templates
- prepare html emails for email clients that strip style tags
- embed html snippets in third-party websites with inline styles
- convert stylesheet rules to style attributes programmatically
- flatten css nesting before inlining
- inline remote stylesheets and image data uris into html

## When to choose
- you send html email and need maximum client compatibility
- you need to embed styled html where style tags are unsupported
- you want a mature node.js library with a cli and browser build

## When to avoid
- you only need general css processing or minification without inlining
- your target environment fully supports style tags and external stylesheets
- you need a non-javascript runtime

## Facets
- artifact type: library
- maturity: active
- function: templating, email, css-framework, parser
- domain: email, web-development, frontend
- platform: cli, browser, cross-platform
- tags: css-inlining, html-email, email-templates, style-attributes, nodejs

## Member repositories
- Automattic/juice (main) score 98

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:53.511893+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:43:21.110798+00:00, confidence not recorded.
  - readme: https://github.com/Automattic/juice (fetched 2026-08-28T04:07:53.511893+00:00, sha 0a34a95d1a6b)
  - registry_npm: https://registry.npmjs.org/juice (fetched 2026-08-29T09:36:21.399448+00:00, sha 48d2bc958b1d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
