From 8c01037e387f3e9e7b88f3331f8618d55f59d4a3 Mon Sep 17 00:00:00 2001 From: Yudai NAKATA Date: Thu, 4 Apr 2024 23:25:46 +0900 Subject: [PATCH] docs: add a badge for bundle size --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c15e803..1250c86 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,7 @@ # Satori Factory [![NPM Version](https://img.shields.io/npm/v/satori-factory?logo=npm)](https://www.npmjs.com/package/satori-factory) [![test](https://github.com/yudai-nkt/satori-factory/actions/workflows/test.yml/badge.svg)](https://github.com/yudai-nkt/satori-factory/actions/workflows/test.yml) +[![bundle size](https://deno.bundlejs.com/badge?q=satori-factory/jsx-runtime&config=%7B%22compression%22:%22brotli%22%7D)](https://bundlejs.com/?q=satori-factory%2Fjsx-runtime&config=%7B%22compression%22%3A%22brotli%22%7D) Tiny yet full-fledged JSX factory for [Satori](https://github.com/vercel/satori). @@ -19,7 +20,7 @@ const svg = await satori(
Hello, Satori Factory!
, { ## Features -- ***Featherlight*** — Satori Factory has zero dependencies and can be minified to less than 0.3kB. +- ***Featherlight*** — Satori Factory has zero dependencies and can be minified & brotli'd to less than 0.2kB. - ***Function component*** — You can define reusable components much like React. - ***Fine-tuned TypeScript support*** — Give unsupported CSS properties and you will get warned.