I have a need for inflate and deflate (multiple needs actually). There’s a number of javascript libraries which do this already. Probably the most widely accepted one is pako[1]. Pako is robust, but its size is not insignificant (45KB for inflate and deflate 27KB for deflate and 22KB for inflate).
Another option for just inflate is tiny-inflate[2]. While not as robust, it’s very small at 3KB before gzipping. The only issue I see with it is that it’s a port from the C tinyf library[3]. I’m not sure how compatible that is with Apache licensing. I’m not sure whether to do an ActionScript port of one of these libraries, or just link to the original JS library. The advantage of linking is that it can be linked to a CDN to make downloads smaller. i.e.[4] Is there a standardized way of integrating CDN links of JS libraries at output? [1]https://github.com/nodeca/pako [2]https://github.com/devongovett/tiny-inflate [3]https://bitbucket.org/jibsen/tinf [4]https://cdnjs.com/libraries/pako