Bower (JS) #12

Closed
edebill opened this Issue Jun 22, 2014 · 3 comments

Projects

None yet

3 participants

@edebill
Owner
edebill commented Jun 22, 2014

http://bower.io/

I think this is the data source, but it's currently failing: http://stats.bower.io/bower/api/1/data/all

@paulirish

yeah! it'd be great to include this.

@rayshan works on the stats site and can help you out with the right API.

@rayshan
rayshan commented Jun 25, 2014

Interesting project, can you spin the heroku app up so I can take a look?

The correct URI should be http://stats.bower.io/api/1/data/all. This endpoint is meant for stats.bower.io consumption, though total count is in the overview key if you want it. The way I'm getting it is by polling the bower registry data (implementation - https://github.com/bower/stats.bower.io/blob/master/server/cache.coffee#L51-L57), it's public so you can also do that.

Future API endpoints are WIP right now, please see here: https://github.com/bower/stats.bower.io/issues/2. If there's interest I'm happy to build a specific endpoint for total package count.

@edebill
Owner
edebill commented Jul 25, 2014

Bower is added. I didn't have any trouble using the existing endpoint. No sense in adding something special if you don't have to. I just added a new JsonPathSampler so I can point to things farther down inside a JSON document. I'm sure it'll be useful for some other repository, too.

@edebill edebill closed this Jul 25, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment