Blueprint add-on for adding compression support to a Blueprint application.

Usage no npm install needed!

<script type="module">
  import onehilltechBlueprintCompression from 'https://cdn.skypack.dev/@onehilltech/blueprint-compression';



Blueprint module that adds compression support to Blueprint application


  • Quickly add gzip support to Blueprint application.
  • Wrapper for Express compression middleware.
  • Compress all routes using a single configuration parameter.
  • Apply compression to individual routes.


yarn add blueprint-compression


npm install blueprint-compression --save


All configuration options are the same as those passed to the compression middleware. The configuration file app/configs/compression.js is used to configure the compression Blueprint module. You can compress all routes in the application.

// app/configs/compression.js

module.exports = {
  app: true  // or { options }

If you do not want to compress all routes, you can selectively compress individual routes.

// app/configs/compression.js

module.exports = {
  paths: {
    '/a/b': true,
    '/y/z': {
      // compression options

Happy Coding!