Home

Awesome


<div align="center"> <b>Switcher API</b><br> Switching fast. Adapt everywhere. </div> <div align="center">

Master CI Quality Gate Status Known Vulnerabilities License: MIT Docker Hub Slack: Switcher-HQ

</div>

Switcher API: Cloud-based Feature Flag API

About

Switcher API is a Feature Flag API with the main focus on decreasing the friction caused by changes while keeping control of what really matters.

Main features:


Local setup

  1. npm ci
  2. Add .env-cmdrc file into the project directory (use '.env-cmdrc-template')
  3. Replace values such as secret keys and URLs

Running Switcher API from Docker Composer manifest file

This option leverages Switcher API and Switcher Management with minimum settings required.

  1. Modify the configuration file "config/.env.dev":
  1. Run:
docker-compose --env-file ./config/.env.dev up -d
  1. Open Switcher Management:
http://localhost

Quick start

Open Swagger UI by accessing the URL: http://localhost:3000/api-docs<br> Or use Postman by importing either the OpenAPI json from http://localhost:3000/swagger.json or Postman Collection from "requests/Switcher API*"

API configuration

Signing up

Signing up an account to use Switcher API with an email/password or linking it to a GitHub or Bitbucket account.

Domain

Domains are responsible for centralizing all settings and configurations.<br> It is equivalent to an organization that can manage multiple projects, users, and environments.

Component

Components are applications that are using Switcher API.<br> Each component has its own access token and needs to be linked to Switchers.

Group

Groups are used to organize Switchers that share the same feature scope.

Switcher

Switchers are the main entities to control features.

Strategy

Customize the behavior of the Switcher by including strategy rules to your Switchers.

API usage

In order to use Switcher API, you need to authenticate the component before using it.<br> See also our SDKs to integrate Switcher API with your application.