Origami Frontend Components & Services

Readme: origami-bundle-size-cli

Find the difference in JS and CSS bundle size between component versions, including the gzip difference.

MIT licensed

Table Of Contents


Origami Bundle Size CLI requires Node.js 12.x and npm.


First install Origami Bundle Size CLI:

npm install -g @financial-times/origami-bundle-size-cli

Run with the Origami component name and two release numbers to compare:

origami-bundle-size o-table v5.0.0 v7.4.0

Example output:

o-table bundle size difference from v5.0.0 v7.4.0
js: 38.16kb increase (9.87kb/gzip)
css, master: 12.08kb increase (1.64kb/gzip)


The tests are split into unit tests and integration tests. To run all tests on your machine run npm test.

npm test                  # run all the tests
npm run test:unit         # run the unit tests
npm run test:integration  # run the integration tests

To run the linter locally, run:

npm run lint

The tests and linter are run when commits are pushed, you can view [results on CI][ci]. They must pass before we merge a pull request.

Migration Guides

State Major Version Last Minor Release Migration guide
⚠ maintained 2 N/A migrate to v2
╳ deprecated 1 1.1.3 N/A


The Financial Times has published this software under the MIT license.

active Origami v1 (Bower)
Switch component view

GitHub: origami-bundle-size-cli