Allow users to pass in their own compression-stream function

Open
#59 22 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
javascript, nodejs
Domain
backend

Research direction

Start by reviewing how the existing gzip stream is used and how a compression stream can expose the same interface. Compare the brotli package and native C++ addon options mentioned in the issue; done means agreeing on and implementing a defined way for users to provide a compression-stream function.

Written by the indexing model from the issue text.

Description

ideas

It looks like FF now accepts brotli compression. I was going to take a stab at implementing a native addon that links libbrotli. Does that seem worthwhile?

We could use this: https://www.npmjs.com/package/brotli, which uses an emscriptenized version of brotli.

Does anyone know of any others brotli modules that could be used? Otherwise, I don't mind starting the C++ add on.

I've been taking a look at how the gzip stream is used here, so I think I can make a nice library that implements the same interface.

Dominant language
JavaScript
Stars
2.8k
Forks
254
Avg merge
3d 15h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from expressjs/compression

All issues in expressjs/compression

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.