semver.scalingo.com

semver.scalingo.com is a plaintext and JSON webservice that tracks all available versions of:

It also supports Scalingo Stacks for nginx, php and composer:

It uses that version info to resolve semver range queries.

This project if a fork of github.com/heroku/semver.io.

Scalingo Semver uses a simple and short module system to pull version data from a variety of sources. Pull requests are welcome!

Usage

Command-line

curl https://semver.scalingo.com/node/stable
0.10.33

curl https://semver.scalingo.com/node/unstable
0.11.14

curl https://semver.scalingo.com/node/resolve/0.8.x
0.8.28

curl https://semver.scalingo.com/nginx/stable
1.6.2

In the browser

There are CORS-friendly HTTP endpoints for each source with the whole kit and caboodle:

The response is something like:

{
  "stable": "0.10.22",
  "unstable": "0.11.8",
  "all": [
    "0.8.6",
    "...",
    "0.11.9"
  ]
}

Ranges

semver.scalingo.com supports any range that node-semver can parse.

For example:

These named routes are also provided for convenience (for each source):

Development Environment

Install project dependencies

docker-compose run --rm web yarn install

Run the service

docker-compose up
Fork me on GitHub