Home
Softono
shapt

shapt

Open source Elixir
11
Stars
0
Forks
4
Issues
1
Watchers
4 years
Last Commit

About shapt

Shapt is an Elixir library for managing feature toggles, flags, and flippers in your code. It provides a simple and configurable system with pluggable adapters, including built-in environment variable and dotenv adapters. The library includes mix tasks for identifying expired toggles and generating adapter template files. It also offers plug endpoints for inspecting current toggle states and reloading their values. Currently in active development with an evolving API, Shapt serves Elixir developers looking for a flexible feature flagging solution with extensible architecture and reasonable defaults.

Platforms

Web Self-hosted

Languages

Elixir

Shapt

A helpful and simple way to use feature toggles/flippers/flags on your Elixir code. This library heavily uses macros to achieve it's goals. Please read our usage guide.

This is library is currently a work in progress, it's api is not strongly defined, expect changes.

Name

Do what you want 'cause a pirate is free You are a pirate!

Yar har, fiddle de dee Being a pirate is alright to be Do what you want 'cause a pirate is free You are a pirate!

Features

This are the list of main features(marked ones are already implemented):

  • [x] Configurable adapters that are simple to implement.
  • [x] Shapt.Adapters.Env and Shapt.Adapters.DotEnv built-in Adapters.
  • [x] shapt.expired mix task that exposes toggles that had his deadline expired.
  • [x] shapt.template mix task that generate template files for the configured adapter.
  • [x] Plug that provides a GET endpoint to inspect current state of the toggles.
  • [x] Plug that provides a POST endpoint that reload toggles value(reload feature must be provided by the Adapter).
  • [ ] Consul Adapters

Usage Guide

Read our usage guide to understand how to start using this library.

Credits

This library is inspired by several ideas from Renan Ranelli.

Changelog

  • current version v0.0.1

Code of Conduct

License

Shapt is under Apache v2.0 license. Check the LICENSE file for more details.