rest-confidence

This is a uber-simple but powerful configuration server

npm install rest-confidence
16 downloads in the last week
23 downloads in the last month

rest-confidence

This is a simple yet powerful configuration server. Tired of configuring many components in many different environments? Rest-confidence centralizes your settings and exposes them as a REST service.

Other use cases include using it as a service directory or as a foundation for A/B testing (read more). It uses confidence, with all it niceties now remotelly accesible through a simple REST service.

Configuration example

{
    "key1": "value",
    "key2": {
        "$filter": "env",
        "production": {
            "limit": 200
        },
        "$default": {
            "limit": 10
        }
    }
}

GET /

{
    "key1": "value",
    "key2": {
        "limit": 10
    }
}

GET /key2

{
    "limit": 10
}

GET /key2?env=production

{
    "limit": 200
}

Install & run

It runs on port 8000 by default. You can override it defining a PORT environment variable.

Clients

TODO

  • Allow multiple configuration files / modules
  • Python client (contrigutions are welcome)
  • Java client
  • Send broadcast datagrams to make itself visible to the clients (under evaluation)
  • Managment capabilities: PUT / POST methods (low priority)
  • Simple web UI (low priority)

License

MIT

npm loves you