How to add a package to bower registry

Details about how to fill a bower.json, and how to add a package to bower registry.


Today I noticed a nice icon project: Code Icons. I decided to contribute adding a bower.json cause I would like to use it and it is int its TODO list.


I just created a file bower.json like the following

  "name": "codeicons",
  "main": [
  "homepage": "",
  "authors": [
    "Matheus Brasil"
  "description": "An icon set of programming languages, frameworks, and coding tools.",
  "keywords": [
  "license": "MIT",
  "ignore": [

Then, you need to have at list a semantic version named git tag, here it is: v1.1.0 and you are ready to register it.

The command syntax is

bower register <my-package-name> <git-endpoint>

Since it is not a package of mine, I let the author do it. For instance it will be

bower register codeicons git://

I just opened a pull request, let see what happens :).

You need to add few properties according to bower.json specification. Sometimes there are some doubts with the meaning, I will write here what I discover or how I use to fill them.

TODO fill keywords





Put some keywords you think can help to find your package in the bower search page.


Usually I choose node. In this particular case I left it undefined.


Bonus tip: CDN

You can also add a CDN link for installation using RawGit.

Removing a package

If for some reason you want to remove a package from a registry… think twice. Anyway, you can do

curl -X DELETE ""

Where PACKAGE is the package name you want to delete and TOKEN is GitHub’s Personal Access Token that you can fetch from here: See reference here.