Managing application dependancies: top tools

Managing your application's dependencies can be painful, so it's no surprise that almost all languages have package management solutions.

Most people will have heard of NPM when it was associated with Node.js, but there are also options available to client-side JavaScript and other client-side technologies.

Here are four tools that should make your life easier.

01. Bower Bower is probably the most popular choice. This was used in the real-time analytics application, but the dependencies were checked in to simplify the getting started process. bower. json is the manifest file used to reference dependencies. One restriction is that Bower supports a flat dependency tree, so multiple versions of the same package aren't supported.

02. NPM NPM is generally referenced in assocation with Node.js packages, but the contents of a package doesn't have to be a Node.js module. NPM is seeing increased usage for client-side JavaScript when applications are built with developer tools such as Browserify.

The manifest file is package. json and NPM (along with Browserify) provides support for deep-dependency tree. This means multiple versions of the same package are supported.

03. takes a slightly different approach, based on thinking about packages as Web Components that may contain JS, HTML, CSS and so on. JavaScript should be defined and included using a CommonJS syntax. The manifest used is component.json and dependencies can be managed using the component-set command.

04. JSPM

JSPM is an entirely browser-focused solution tied to the System.JS module loading system (, which is a Universal Module Loader that means any module type can be loaded. It uses package.json and dependencies can be referenced and retrieved from JSPM or NPM.

Words: Phil Leggetter

Phil Leggetter is an expert in real-time web technologies, JavaScript, HTML5. Follow him on Twitter at @leggetter.

Like This? Read this!

Thank you for reading 5 articles this month* Join now for unlimited access

Enjoy your first month for just £1 / $1 / €1

*Read 5 free articles per month without a subscription

Join now for unlimited access

Try first month for just £1 / $1 / €1

The Creative Bloq team is made up of a group of design fans, and has changed and evolved since Creative Bloq began back in 2012. The current website team consists of eight full-time members of staff: Editor Georgia Coggan, Deputy Editor Rosie Hilder, Deals Editor Beren Neale, Senior News Editor Daniel Piper, Digital Arts and Design Editor Ian Dean, Tech Reviews Editor Erlingur Einarsson and Ecommerce Writer Beth Nicholls and Staff Writer Natalie Fear, as well as a roster of freelancers from around the world. The 3D World and ImagineFX magazine teams also pitch in, ensuring that content from 3D World and ImagineFX is represented on Creative Bloq.