Brotli compression in JavaScript

Open
#1,467 2 comments 13 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
65/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript
Domain
testing, web-dev

Research direction

Review the existing Brotli compression and decompression tests in the web-platform-tests repository under the 'compression' directory. Understand the Compression Streams API specification. Run the tests in different browsers to verify current behavior and identify gaps. The goal is to ensure tests correctly validate that compressed files are read and written properly across browsers.

Written by the indexing model from the issue text.

Description

focus-area-proposal

Proposal: Focus area

Websites can use Brotli to make files smaller before uploading or saving them. Firefox and Safari support this through the browser's compression API, but Chrome support is still missing in current compatibility data.

This means developers may need to download an extra code library to do the same job. There is a real developer request for handling compressed files in an offline cache.

Interop should make Brotli compression and decompression work across browsers and check that files are read and written correctly. Existing tests are a starting point, but need review before scoring.

The feature is already in the standard, and tests already exist. The tests still need checking, especially to make sure they can catch incorrect output.

Specification | Tests

Dominant language
JavaScript
Stars
591
Forks
39
Avg merge
3h 8m
Merged PRs (30d)
2

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

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 web-platform-tests/interop

All issues in web-platform-tests/interop

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.