# @cf-wasm/satori

> Enlightened library to convert HTML and CSS to SVG.

Latest version **0.4.2** (published 2026-09-19) · MPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install @cf-wasm/satori
pnpm add @cf-wasm/satori
yarn add @cf-wasm/satori
bun add @cf-wasm/satori
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; pre 1.0.

## Facts

| | |
|---|---|
| Version | 0.4.2 |
| Published | 2026-09-19 |
| First published | 2024-03-31 |
| Weekly downloads | 0 |
| License | MPL-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 286.1 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 299 |
| Author | Shu Ding |
| Maintainers | kumardeo |
| Keywords | HTML, JSX, SVG, converter, renderer, wasm, cloudflare-workers |

## Links

- npm: https://www.npmjs.com/package/@cf-wasm/satori
- Repository: https://github.com/fineshopdesign/cf-wasm
- Homepage: https://github.com/fineshopdesign/cf-wasm/tree/main/packages/satori#readme
- Issues: https://github.com/fineshopdesign/cf-wasm/issues
- npm.io page: https://npm.io/package/@cf-wasm/satori

## Dependencies (1)

- [satori](https://npm.io/package/satori.md) 0.32.0

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 0.4.2 (latest) — 2026-09-19
- 0.4.1 — 2026-09-13
- 0.4.0 — 2026-08-01
- 0.3.7 — 2026-07-13
- 0.3.6 — 2026-05-03
- 0.3.5 — 2026-02-11
- 0.3.4 — 2026-02-10
- 0.3.3 — 2025-12-03
- 0.3.2 — 2025-11-29
- 0.3.1 — 2025-11-25
- 0.3.0 — 2025-11-25
- 0.2.2 — 2025-11-15
- 0.2.1 — 2025-11-06
- 0.2.0 — 2025-11-05
- 0.1.31 — 2025-06-14
- … 20 more at https://npm.io/package/@cf-wasm/satori/versions

## README

# @cf-wasm/satori

Enlightened library to convert HTML and CSS to SVG.

Powered by [satori](https://github.com/vercel/satori).

## Installation

```shell
npm install @cf-wasm/satori       # npm
yarn add @cf-wasm/satori          # yarn
pnpm add @cf-wasm/satori          # pnpm
```

## Usage

Because `package.json` includes conditional exports for `node`, `workerd`, and `edge-light`, you can usually import directly from `@cf-wasm/satori` and let the runtime choose the correct entrypoint:

```ts
import { satori } from "@cf-wasm/satori";
```

If you want to be explicit, import from a submodule instead:

- Cloudflare Workers / Pages (Wrangler):

  ```ts
  import { satori } from "@cf-wasm/satori/workerd";
  ```

- Next.js Edge Runtime:

  ```ts
  import { satori } from "@cf-wasm/satori/edge-light";
  ```

- Node.js (inline):

  ```ts
  import { satori } from "@cf-wasm/satori/node";
  ```

## Documentation

Read official documentation at [satori](https://github.com/vercel/satori).

---
_Source: https://npm.io/package/@cf-wasm/satori · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
