A simple zlib+base128 string lossless compression module for Roblox luau that uses base128, which has a slightly higher compression rate than zlib91.
Lua 100.00%
zlib128.luau's Introduction
Note
Unlike zlib91.lua, This library does not support pure lua.
This library shares almost identical usage with zlib91.lua
Important
Since this library uses the base128 function, which is part of rstk's BitBuffer library, due to the operating principle of the bit buffer, it may not be compatible with the general base128(ex. Python base128 library) at all or the data size may be slightly larger.
If you want better compatibility, you can also look into zlib91.lua, although it may have some disadvantages as it can grow slightly more data than base128.
Roblox Luau
Supports luau type autocompletes
(btw, I just personally prefer to use UpperCamelCase with modules for roblox)