ilusm.dev

feat

Feature flags, toggles, A/B testing, gradual rollouts.

Load with: use feat

Quick example

use feat

result = fetrd("value")
prn(result)

Functions

In-memory store

fetmm()

Performs the operation.

Redis store

fetrd(r)

Reads data. Takes r.

Flag definition

fetne(nm, dflt)

Creates a new instance. Takes nm, dflt.

Add to store

fetdd(st, flg)

Performs the operation. Takes st, flg.

fetgt(st, nm)

Performs the operation. Takes st, nm.

fetll(st)

Performs the operation. Takes st.

Enable/disable

featn(st, nm)

Performs the operation. Takes st, nm.

fetds(st, nm)

Performs the operation. Takes st, nm.

fetst(st, nm, val)

Sets a value or starts a process. Takes st, nm, val.

Check if enabled

fetck(st, nm, ctx)

Performs the operation. Takes st, nm, ctx.

Targeting rules

fttg0(attr, op, val)

Performs the operation. Takes attr, op, val.

fttgt(tgt, ctx)

Performs the operation. Takes tgt, ctx.

Rollout

ftrl0(pct, sattr)

Performs the operation. Takes pct, sattr.

ftrll(roll, ctx)

Performs the operation. Takes roll, ctx.

Variants (A/B testing)

fetvr(nm, wgt, cfg)

Performs the operation. Takes nm, wgt, cfg.

ftvrm(var, ctx)

Removes an item. Takes var, ctx.

Experiment (A/B test)

fetnb(nm, hyp, vars)

Performs the operation. Takes nm, hyp, vars.

Assignment

ftsgn(st, nm, ctx)

Performs the operation. Takes st, nm, ctx.

Events/tracking

fetvt(st, exp, var, usr, evt, val)

Performs the operation. Takes st, exp, var, usr, evt, val.

Analysis

fetnl(st, exp)

Performs the operation. Takes st, exp.

Statistical significance

ftpvl(a, b)

Validates. Takes a, b.

fetci(vals, conf)

Performs the operation. Takes vals, conf.

Kill switch

ftkll(st, nm)

Performs the operation. Takes st, nm.

Gradual rollout

ftgrd(st, nm, startpct, days)

Reads data. Takes st, nm, startpct, days.

Schedule

ftsch(st, nm, stt, edt)

Checks a condition. Takes st, nm, stt, edt.

Prerequisites

ftprq(st, nm, deps)

Performs the operation. Takes st, nm, deps.

Notifications

ftntf(st, flg, chnl)

Performs the operation. Takes st, flg, chnl.

Import/export

ft2js(st)

Performs the operation. Takes st.

fetld(st, j)

Performs the operation. Takes st, j.

UI/API helpers

fetpi(st)

Performs the operation. Takes st.

Safe rollout check

ftsfe(st, nm, ctx, fallback)

Performs the operation. Takes st, nm, ctx, fallback.

Notes

  • Feature flags - define, evaluate, rollout percentages.