• Stars
    star
    21
  • Rank 1,084,038 (Top 22 %)
  • Language
    Crystal
  • License
    MIT License
  • Created over 7 years ago
  • Updated almost 6 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Feature Flipper, Feature Flags, Rollout Flags, Feature Toggles for Crystal

flipper

Build Status LICENSE GitHub tag

Feature flipping is the act of enabling or disabling features or parts of your application, ideally without re-deploying or changing anything in your code base.

Installation

Add this to your application's shard.yml:

dependencies:
  flipper:
    github: metaware/flipper

Usage

require "flipper"

You are free to use anyone of the supported adapters/stores from crystal-kiwi

Flipper.adapter = Kiwi::RedisStore.new(Redis.new)
Flipper.enable(:feature_name)

if Flipper.enabled?(:feature_name)
  puts "Feature launched, Let's roll!"
else
  puts "Feature not released yet."
end

Flipper.disable(:search)

if Flipper.disabled?(:search)
  puts "Search is not available yet!"
end

Note: I strongly recommend to not use Kiwi::MemoryStore for development or production environments. It's suitable only for your test environments.

Roadmap

  • Simple Logic Gate
  • Groups
  • Individual Users/Actors
  • Percentage of Actors

Contributing

  1. Fork it ( https://github.com/metaware/flipper/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Credits

Contributors

More Repositories

1

angular-invoicing

Create free and unlimited one off invoices using this little Invoicing app made with Angular JS
HTML
662
star
2

underlock

Underlock makes it dead simple to encrypt and decrypt your data and files. It comes with little to no dependencies and has a very small API surface.
Ruby
125
star
3

to_range

Small Ruby Gem to Convert Parseable Strings into Ruby Range Objects
Ruby
10
star
4

responsive_bootstrap_admin_theme

Responsive Bootsrap Admin Theme
CSS
8
star
5

hackernews_api

Turns Hacker News frontpage into a clean JSON API - Built using Elixir & Phoenix
Elixir
5
star
6

typescript-shopping-cart

Example Shopping Cart classes/interfaces to demonstrate usage of TypeScript in a NodeJS environment
JavaScript
4
star
7

age-calculator

Age Calculator we always wished we had.
JavaScript
3
star
8

manzoori

เจฎเฉฐเจœเฉ‚เจฐเฉ€ (manzoori): Add an approval process on top of your models
Ruby
2
star
9

graphql-rails-example

A sample showing GraphQL implementation in Ruby on Rails Framework
Ruby
2
star
10

react-invoicing

React + Redux Sample Invoicing App / Also uses reselect to compute derived state
JavaScript
2
star
11

elixir-nest

Generate nested namespaced keys for key-value databases with Elixir
Elixir
1
star
12

safetypay

Safetypay Ruby SDK
Ruby
1
star
13

waveapps-ruby

Ruby
1
star
14

elixir-fizzbuzz

Functional Solution to FizzBuzz problem (in Elixir)
Elixir
1
star
15

rainforest

Rainforest CLI written in NodeJS
JavaScript
1
star
16

tomtomplugin

Cordova plugin to plan a trip on TomTom
Java
1
star
17

elixir_processes

An example implementation of two ping-pong processes that are capable to chatter amongst themselves
Elixir
1
star
18

elixir-etudes

practice examples and solutions for http://chimera.labs.oreilly.com/books/1234000001642/
Elixir
1
star