hono icon indicating copy to clipboard operation
hono copied to clipboard

Support Zstandard (zstd) compression algorithm

Open Gumichocopengin8 opened this issue 1 year ago • 2 comments

What is the feature you are proposing?

Major browsers support zstd now ref.

image

I propose to support zstd compression algorithm in Hono🔥.

https://github.com/honojs/hono/blob/b1335f9fb296cfa4b947367bbad0512c7739c5f5/src/middleware/compress/index.ts#L9

related PR: #3543

Gumichocopengin8 avatar Dec 27 '24 17:12 Gumichocopengin8

Hi @Gumichocopengin8

It's interesting to support Zstandard for the Compress Middleware. But currently, it can't. The CompressionStream used in it does not support Zstandard yet.

https://developer.mozilla.org/en-US/docs/Web/API/CompressionStream

yusukebe avatar Dec 28 '24 00:12 yusukebe

In theory node supports zstd but it’s still experimental.

jdmarshall avatar Nov 05 '25 06:11 jdmarshall