
Research
/Security News
Popular Go Decimal Library Targeted by Long-Running Typosquat with DNS Backdoor
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.
react-native-brotli-decompress
Advanced tools
Brotli decompression for React Native (iOS & Android)Brotli decompression for eact Native (iOS & Android)
Brotli decompression for React Native (iOS & Android).
This library was built to solve a real production problem — our backend (Python Django) was compressing API responses with Brotli before sending them, reducing payload sizes by ~75%, but no React Native library existed to decompress them on the client side. Works with Brotli-compressed data from any backend language or library.
Decompresses Brotli-compressed data passed as a Base64 string and returns the decompressed UTF-8 string.
npm install react-native-brotli-decompress
No additional steps required. The library uses the org.brotli:dec Java library which is included automatically.
cd ios && pod install
import { decompress } from 'react-native-brotli-decompress';
// Pass a Base64-encoded Brotli-compressed string
const decompressed = await decompress(base64EncodedData);
console.log(decompressed); // UTF-8 decoded string
decompress(base64Data: string): Promise<string>| Parameter | Type | Description |
|---|---|---|
base64Data | string | Base64-encoded Brotli-compressed data |
Returns: Promise<string> — the decompressed UTF-8 string.
Throws:
INVALID_INPUT — if the input is not valid Base64DECOMPRESSION_FAILED — if Brotli decompression failsDECODING_FAILED — if the decompressed bytes are not valid UTF-8MIT
Made with create-react-native-library
FAQs
Brotli decompression for React Native (iOS & Android)Brotli decompression for eact Native (iOS & Android)
We found that react-native-brotli-decompress demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A long-running Go typosquat impersonated the popular shopspring/decimal library and used DNS TXT records to execute commands.

Research
Active npm supply chain attack compromises @antv packages in a fast-moving malicious publish wave tied to Mini Shai-Hulud.

Security News
/Research
Socket detected malicious node-ipc versions with obfuscated stealer/backdoor behavior in a developing npm supply chain attack.