Repository navigation
Please add latest brotli 1.1.0 bindings with compression dictionary support #52250
Description
Activity
- addedfeature requestIssues requesting new Node.js features.Issues requesting new Node.js features.
on Mar 28, 2024 - addedbrotliIssues and PRs related to the Brotli dependency.Issues and PRs related to the Brotli dependency.
on Mar 30, 2024 @nodejs/zlib it looks like this just needs exposing in the API JS side
I can work on this :-)
Reacted by nhelfman, Ximing and Jurj Andrei George@juanarbol is this in flight somewhere, would love to poke at a dev branch or something 🤔 Poking at the compression dictionary transport tech and built in bindings would make this a lot easier 😅
Happy to help out with the change too 🥳
Reacted by Alex Colemangithub-actions commented
on Dec 24, 2024 on Dec 24, 2024 – with GitHub ActionsContributorMore actionsThere has been no activity on this feature request for 5 months. To help maintain relevant open issues, please add the never-stale
Issues and PRs exempt from automated stale handling. label or close this issue if it should be closed. If not, the issue will be automatically closed 6 months after the last non-automated comment.
For more information on how the project manages feature requests, please consult the feature request management document.- addedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Dec 24, 2024 github-actions commented
on Jan 24, 2025 on Jan 24, 2025 – with GitHub ActionsContributorMore actionsThere has been no activity on this feature request and it is being closed. If you feel closing this issue is not the right thing to do, please leave a comment.
For more information on how the project manages feature requests, please consult the feature request management document.
@juanarbol / @avivkeller is there any update on this elsewhere? Seems like this was planned
Can we reopen this issue? We're looking into using compression dictionaries at Pinterest and would love to see this natively supported in Node.
Reacted by Alex Coleman, Pascal Vos, pascal vos and Juan José@valiantvu I built this out at Notion, I will note that brotli based compression is slow enough that even with CDN caching doing it on the fly wasn't great. Doing zstd based dictionary compression is 10/10 though, unfortunately there isn't good node support for that either 😆
I ended up building a rust-based lambda for dictionary compresison which was fronted by {insert_cdn_here}. It did zstd dictionary compression on the fly and was lightweight enough to be super quick. I'd suggest some kind of system similar to that if you're exploring options here.
Can we reopen this issue? We're looking into using compression dictionaries at Pinterest and would love to see this natively supported in Node.
Hey @valiantvu, do you think Pinterest can sponsor this? If so, feel free to reach out in my email.
- removedstaleIssues and PRs marked stale due to inactivity and scheduled for automatic closure.Issues and PRs marked stale due to inactivity and scheduled for automatic closure.
on Dec 21, 2025 - added a commit that references this issue
on Feb 10, 2026 Howdy, I noticed this issue seemed stalled so I took a go at it: #61763
- added a commit that references this issue
on Feb 13, 2026 - added a commit that references this issue
on Feb 19, 2026
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTriaged
What is the problem this feature will solve?
Current node brotli compression does not support compression dictionary.
The
dictionaryoption only supported for deflate/inflate according to documentation:This prevents using node.js directly to create compression dictionary diffs at build time which is necessary in order to adopt Compression dictionary transport
What is the feature you are proposing to solve the problem?
Add latest code/binaries and binding to compression options to support latest brotli (https://github.com/google/brotli) version 1.1.0 so that we can use the
dictionaryoption in brotli.cc: @benjamingr
What alternatives have you considered?
No response