Perl6 support for Brotli Encoding
Switch branches/tags
Nothing to show
Clone or download
sylvarant Merge pull request #1 from niner/master
Fix META file having a non-standard name
Latest commit 4f81971 May 14, 2017
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/Compress fixing native call changes Dec 30, 2015
stub fixed Mar 15, 2016
t Added compression configuration parameters Nov 18, 2015
.travis.yml moar vm issues Mar 2, 2016 FreeBSD support Nov 21, 2015
META6.json Fix META file having a non-standard name May 13, 2017 FreeBSD support Nov 21, 2015

Perl6 Brotli Compression

Build Status artistic

Provides acces to Brotli compression by means of the perl6 NativeCall API.


A simple compression/decompression round trip can be written as follows.

use Compress::Brotli; 

my Buf $blob = compress("a simple string");
my Buf $buffer = decompress($blob);
say $buffer.decode('UTF-8');

To control the parameters of the brotli compression an object of class Compress::Brotli::Config can be passed as an argument to the compress subroutine.

use Compress::Brotli; 

# a low quality text compression
my Config $conf =,:quality(1),:lgwin(10),:lgblock(0));
my Buf $blob = compress("a simple string",$conf);


Linux, FreeBSD and Mac OSX are tested and supported.


To build brotli the libbrotli project is used. To succesfully compile libbrotli and the added wrapper library you need: libtool, autoconf, gmake and automake.


Artistic License 2.0