1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
Unleash is the open source feature toggle service.
Go to file
2022-04-08 12:53:47 +02:00
.do fix: digital ocean specs 2021-06-21 19:15:42 +02:00
.github docs: Add online demo illustration image. 2022-04-08 11:02:32 +02:00
docs/api/oas fix: correct oas for creating feature toggle 2022-02-24 08:24:47 +01:00
examples feat: update docs to match v4. 2021-05-18 11:19:33 +02:00
perf feat: add segments (#1426) 2022-03-29 14:59:14 +02:00
scripts Chore: rework docker-postgres.sh to be cross-platform (#1037) 2021-10-23 09:12:34 +02:00
src fix: add missing awaits (#1472) 2022-04-01 11:10:21 +02:00
website docs: reword api return type description 2022-04-04 14:56:34 +02:00
.editorconfig
.eslintignore fix: rename websitev2 to website 2021-10-26 11:25:19 +02:00
.eslintrc chore(deps): update dependency eslint-config-airbnb-typescript to v14 (#979) 2021-09-28 21:19:13 +02:00
.gitignore Make Appinstance registration include environment (#1014) 2021-10-12 10:39:28 +02:00
.node-version chore(deps): update node.js to v14.19.1 2022-03-18 21:04:55 +00:00
.nvmrc
.prettierignore
app.json chore(workflows): update with new branch names 2021-12-23 14:12:19 +01:00
CHANGELOG.md chore: update CHANGELOG.md 2021-10-29 13:18:38 +02:00
CODE_OF_CONDUCT.md docs: cleanup unleash-hosted refereces 2021-08-30 09:36:26 +02:00
CONTRIBUTING.md fix: rename websitev2 to website 2021-10-26 11:25:19 +02:00
LICENSE
package.json 4.10.0-beta.0 2022-03-31 12:52:19 +01:00
README.md docs: Update SDKs section 2022-04-08 12:53:47 +02:00
renovate.json chore: update renovte config 2021-09-29 21:14:27 +02:00
setupJest.js fix: Stores as typescript and with interfaces. (#902) 2021-08-12 15:04:37 +02:00
tsconfig.json fix: rename websitev2 to website 2021-10-26 11:25:19 +02:00
yarn.lock feat: upgrade unleash-frontend to 4.10.0-beta.0 2022-03-31 12:51:53 +01:00

About Unleash

Unleash is an open source feature management solution. It improves the workflow of your development team and leads to quicker software delivery. Unleash increases efficiency and gives teams full control of how and when they enable new functionality for end users. Unleash lets teams ship code to production in smaller releases whenever they want.

Feature toggles make it easy to test how your code works with real production data without the fear that you'll accidentally break your users' experience. It also helps your team work on multiple features in parallel without each maintaining an separate feature branch.

Unleash is the largest open source solution for feature flagging on GitHub. There's 12 official client and server SDKs and 10+ community SDKs available; you can even make your own if you want to. You can use Unleash with any language and any framework.

Get started in 2 steps

1. Start Unleash

With git and docker installed, it's easy to get started:

Run this script:

git clone git@github.com:Unleash/unleash-docker.git
cd unleash-docker
docker compose up -d

Then point your browser to localhost:4242 and log in using

  • username: admin
  • password: unleash4all

2. Connect your SDK

Find your preferred SDK in our list of official SDKs and import it into your project. Follow the setup guides for your specific SDK.

If you use the docker compose file from the previous step, here's the configuration details you'll need to get going:

  • For front-end SDKs, use:
    • URL: http://localhost:3000
    • clientKey: proxy-client-key
  • For server-side SDKs, use:
    • Unleash API URL: http://localhost:4242
    • API token: default:development.unleash-insecure-api-token

If you use a different setup, your configuration details will most likely also be different.

Check a feature toggle

Checking the state of a feature toggle in your code is easy! The syntax will vary depending on your language, but all you need is a simple function call to check whether a toggle is available. Here's how it might look in Java:

if (unleash.isEnabled("AwesomeFeature")) {
  // do new, flashy thing
} else {
  // do old, boring stuff
}

Run Unleash on a service?

If you don't want to run Unleash locally, we also provide easy deployment setups for Heroku and Digital Ocean:

Deploy to Heroku Deploy to DigitalOcean

Online demo

Try out the Unleash online demo.

The Unleash UI. It shows a project and its users, feature toggles and tabs for health, access, and environments.

Community and help — sharing is caring

We know that learning a new tool can be hard and time-consuming. We have a growing community that loves to help out. Please don't hesitate to reach out for help.

Join Unleash on Slack

💬 Join Unleash on Slack if you want ask open questions about Unleash, feature toggling or discuss these topics in general.

💻 Create a GitHub issue if you have found a bug or have ideas on how to improve Unleash.

📚 Visit the documentation for more in-depth descriptions, how-to guides, and more.

Contribute to Unleash

Building Unleash is a collaborative effort, and we owe a lot of gratitude to many smart and talented individuals. Building it together with community ensures that we build a product that solves real problems for real people. We'd love to have your help too: Please feel free to open issues or provide pull requests.

Check out the CONTRIBUTING.md file for contribution guidelines and the Unleash developer guide for tips on environment setup, running the tests, and running Unleash from source.

Features our users love

Flexibility and adaptability

Security & performance

  • Privacy by design (GDPR and Schrems II). End-user data never leaves your application.
  • Audit logs
  • Enforce OWASP's secure headers via the strict HTTPS-only mode
  • Flexible hosting options: host it on premise or in the cloud (any cloud)
  • Scale the Unleash Proxy independently of the Unleash server to support any number of front-end clients without overloading your Unleash instance

Looking for more features?

If you're looking for one of the following features, please take a look at our Pro and Enterprise plans:

Architecture

Read more in the system overview section of the Unleash documentation.

Unleash SDKs

To connect your application to Unleash you'll need to use a client SDK for your programming language.

Official server-side SDKs:

Official front-end SDKs:

The front-end SDKs connects via the Unleash Proxy in order to ensure privacy, scalability and security.

Community SDKs

If none of the official SDKs fit your need, there's also a number of community-developed SDKs where you might find an implementation for your preferred language (such as Elixir, Dart, Clojure, and more).

What is a feature toggle?

The main motivation for doing feature toggling is to decouple the process for deploying code to production and releasing new features. This helps reducing risk, and allow us to easily manage which features to enable, and have full control of how we exposed the new feature for.

Feature toggles decouple deployment of code from release of new features.

This repo contains the unleash-server, which contains the Unleash Admin UI and the Unleash API. To make use of unleash you will also need a client SDK.

Unleash Admin UI

Online demo

Segmentation

It's fine to have a system for turning stuff on and off. But sometimes we want more granular control, we want to decide who the toggle should be enabled for. This is where activation strategies come into the picture. Activation strategies take arbitrary config and allow us to enable a toggle to a specific subset of your users (segment).

Common activation strategies includes:

  • Active For users with a specified userId
  • GradualRollout to X-percent of our users
  • Active for our beta users
  • Active only for application instances running on host x.

Read more about activation strategies in our docs.

The Client API

The client SDKs provides a simple abstraction making it easy to check feature toggles in your application. The code snippet below shows how you would use Unleash in Java.

if (unleash.isEnabled("AwesomeFeature")) {
  //do some magic
} else {
  //do old boring stuff
}

Running Unleash

The are numbers of ways you can run Unleash.

  1. Unleash Enterprise - Cloud hosted by the Unleash Team. see plans
  2. Unleash Open-Source - Self host with Docker. Guide
  3. Unleash Open-Source - Self host with Node.js Guide
  4. Unleash Open-Source - Helm chart artifacthub.io

Run from Docker

  1. Create a network by running the following command:
docker network create unleash
  1. Start a postgres database:
docker run -e POSTGRES_PASSWORD=some_password \
  -e POSTGRES_USER=unleash_user -e POSTGRES_DB=unleash \
  --network unleash --name postgres postgres
  1. Start Unleash via docker:
docker run -p 4242:4242 \
  -e DATABASE_HOST=postgres -e DATABASE_NAME=unleash \
  -e DATABASE_USERNAME=unleash_user -e DATABASE_PASSWORD=some_password \
  -e DATABASE_SSL=false \
  --network unleash unleashorg/unleash-server

The first time Unleash starts it will create a default user which you can use to sign-in to your Unleash instance and add more users with:

  • username: admin
  • password: unleash4all

Users of Unleash

Unleash is trusted by thousands of companies all over the world (we are tracking more than 90 countries already). Proud Open-Source users:

(PS! feel free to submit your logo!)

In the media