Low-code library

Let your users write the rules.

Gybe LogicBuilder is a library for building low-code functionality into your apps: your users define any logic in a guided editor, and your server evaluates it whenever it needs to.

How it works

You set the boundaries. Your users write the logic.

  1. 01

    You define the variables

    Pass the editor the variables your users may work with, and the type of result you expect — a boolean for a condition, a number for a premium.

  2. 02

    Your users build the logic

    Step by step: pick a variable, chain functions such as multiply, round or max, and nest expressions where they need them. Or edit it as text.

  3. 03

    Your server evaluates it

    Store the logic with your data and evaluate it on the server with the same variables whenever you need the result — on save, in a workflow or in a scheduled job.

Extendable

Teach it the language of your domain.

LogicBuilder comes with a standard set of operations. Add your own functions, variables and lookups, and your users find them in the same editor, next to the built-in ones.

Custom functions

Register functions from your domain — a tax rate, working days between two dates — and use them like any built-in operation.

additionalFunctions

Your variables

Pass the variables each screen needs, from system values to the fields of the record your user is editing.

additionalVariables

Lookups

Connect lookups to your reference data, so users choose a tariff or a product from a list instead of typing a code.

additionalLookups

Expected types

Say what the logic must return — a boolean, a number — and the editor guides your users to a result of that type.

expectedReturnType

AI-assisted

Describe the rule. AI drafts the logic.

LogicBuilder generates context from your app — the variables, their types and the available functions — so an AI model can write the logic from a plain-language request.

The result lands in the same editor, where your users review and adjust it before it is saved.

Request

The fire premium is the sum insured times the final rate and the building factor (1 if it’s missing), rounded to two decimals, but never below the minimum premium.

Context from your app variables types functions

Generated logic

In review
1
building›sum_insured
2
multiplybyfire›rates›final_rate
3
multiplybyfxexpression · 2 steps
4
roundto2decimals
5
maxwithπconstants›minimum_premium

For developers

A few lines on each side.

Embed the editor in your React app, then evaluate the same logic in .NET with the same variables.

PolicyRules.tsx
<LogicBuilder
  logic={condition}
  onLogicChanged={setCondition}
  expectedReturnType={booleanType()}
  additionalVariables={variables}
  additionalFunctions={customFunctions}
  additionalLookups={lookups}
/>
PolicyRules.cs
var variables = new Dictionary<string, object?>(inputParameters);

// Evaluate the user-defined condition on the server
var eligible = await logicEvaluator.Evaluate(condition, variables);

Get notified

Be the first to know when Gybe is live.

One email at launch, then occasional news on releases, early access and support for new frameworks. Unsubscribe any time.

Launch news and product updates only.