Prove every change before it ships.
LexQ is a Decision Operations Platform for engineering teams. Test rule changes on real production traffic. Understand every decision with full trace. Deploy with confidence. No more blind changes to business logic.
Sample data. Define, test, and deploy business rules without touching application code.
The Problem
Business logic has no staging environment.
You see what a rule change does only after real traffic hits it.
No Way to Preview the Impact
You change a pricing threshold or eligibility rule, and find out it's wrong from production incidents, not from testing.
Rules Buried in Code
Business logic scattered across services. Changing one condition means a PR, code review, and full deploy cycle.
Engineering Bottleneck
Every rule change is a dev ticket. Product and ops teams wait weeks for what should take minutes.
if-else Spaghetti That No One Owns
Business logic grows into nested conditionals that nobody wants to touch. Each hotfix adds more branches. Technical debt compounds silently.
AI-Native
Manage rules from the AI you already use.
Create decisions, run Impact Simulations, and deploy, all from Claude, VS Code, or any MCP-compatible agent.
Sample data. MCP server for AI agent integration (Claude, Cursor, any MCP client).
Features
Rule changes don't touch application code.
Version-controlled decision operations with built-in Impact Simulation, Decision Replay, and an immutable record of every decision.
Test Before You Deploy
Run Impact Simulation against real execution data. Compare versions side-by-side to see exactly what would change, without sending a single request to production.
Replay Past Decisions
Re-run last month's real traffic against a candidate version with Decision Replay. See exactly which decisions flip, and why, before anything ships.
Git-style Rule Versioning
Draft, review, and publish rules with full version history. Roll back any change instantly. Every publish and deploy is recorded with who, when, and why.
Visual Rule Builder
Create and manage complex business rules through an intuitive console. Conditions, actions, and priorities: fully visual, fully traceable.
Confident Deployment Pipeline
Deploy rule changes in seconds, not sprints. Gradual rollout with traffic controls lets you go live with confidence.
Decision Provenance & Immutable Audit
Every decision keeps its full trace (the rule that fired, the inputs, the version), recorded at the moment of execution and kept immutable for your plan's retention period: 730 days on Pro, and longer on Enterprise by agreement. Answer an auditor with a lookup, not archaeology.
Domain Templates
Start with rules you can run right away.
Fact definitions, sample rules, and sample requests with the responses they produce.
Client SDK
Let the SDK handle calls to LexQ.
Send facts, such as a payment amount, and get back the decision your rules make.
- Node.js
- JavaComing soon
- PythonComing soon
- C# (.NET)Coming soon
- GoComing soon
- PHPComing soon
If you don't use Node.js, call the Execution API over HTTP. API docs
Install
npm install @lexq/sdkTypeScript
import { LexqClient } from "@lexq/sdk";
// Create one client and reuse it: the circuit breaker belongs to it.
const lexq = new LexqClient({ apiKey: process.env.LEXQ_API_KEY! });
const result = await lexq.execute(groupId, {
facts: { paymentAmount: 150000, customerTier: "VIP" },
// A/B routing reads trafficKey from contexts. In facts it is ignored.
contexts: { trafficKey: customerId },
idempotencyKey: `checkout-${orderId}`,
// What your service does when the call fails: here, no discount.
fallback: () => ({ discount: 0 }),
});
if (result.source === "lexq") {
// LexQ's data as it came back. Store result.traceId with the order.
// A rule that changed paymentAmount put the new value in mutatedFacts.
const amount = result.mutatedFacts.paymentAmount ?? result.inputFacts.paymentAmount;
// A BLOCK action does not fail the call. It sets isBlocked: true in one of the layers.
const blocked = [result.generatedVariables, result.mutatedFacts, result.inputFacts].some(
(layer) => layer.isBlocked === true,
);
// result.decisionTraces says why each rule fired or did not.
} else {
// result.value is what the fallback returned, and result.error says why.
}groupId is the ID of the group of rules to run. customerId and orderId stand for values already in the code you paste this into.
Use LexqClient only in server-side code, and keep the API key out of the browser, where every visitor can read it.
Built-in safeguards
- Each attempt has a timeout, and so does the whole call, retries included.
- Attempts that time out or hit a transient error are retried with the same
Idempotency-Key. If an earlier attempt succeeded but its response never reached you, LexQ returns that result instead of running your rules again. - Every call requires a fallback: the decision your service uses when the call fails.
- When calls keep failing, a circuit breaker pauses calls to LexQ for a while, and each call goes straight to your fallback.
Pricing
Priced by execution volume
Start free. Scale as your usage grows.
Free
For developers evaluating the Decision Operations Platform.
- 1,000 executions/mo
- 100 simulated records/mo
- 100 replayed records/mo
- 10 TPS max
- 30-day audit retention
- Documentation & FAQ
Growth
For teams running decision-driven workflows.
≈ 3,300 decisions/day: pricing and eligibility checks for a production service.
- 100,000 executions/mo
- 10,000 simulated records/mo
- 10,000 replayed records/mo
- 100 TPS max
- 180-day audit retention
- Overage: $0.004/exec, $0.015/simulated record, $0.008/replayed record
- Email support
Pro
For platforms with high-volume decision execution.
≈ 33,000 decisions/day: per-transaction risk scoring and entitlement checks.
- 1,000,000 executions/mo
- 100,000 simulated records/mo
- 100,000 replayed records/mo
- 500 TPS max
- 730-day audit retention (365-day live + 1-year archive)
- Fail-open policy
- Overage: $0.002/exec, $0.008/simulated record, $0.004/replayed record
- Priority support
Enterprise
For organizations with compliance and custom volume needs.
- Custom execution volume
- Custom simulated records
- Custom replayed records
- Custom TPS
- Multi-year audit retention
- SLA & dedicated support
FAQ
Frequently asked questions
What is LexQ?
LexQ is a Decision Operations Platform for engineering teams. It moves business logic out of the deploy pipeline. You define decisions in a visual console and apply them without redeploying your application. Impact Simulation and A/B testing show how the outcomes change when you edit a rule.
How is LexQ different from rule engines like Drools or OPA?
Drools and OPA are rule and policy engines that run in your own infrastructure. Your team operates them and also has to build its own simulation or replay tooling to test a changed rule against real traffic before it ships. LexQ is the managed Decision Operations Platform: Impact Simulation, Decision Replay, A/B testing, and audit trails are built in on every plan. LexQ also offers a visual console and an MCP server that lets AI agents create rules, run Impact Simulations, and deploy versions.
Can I test rule changes before deploying them?
Yes. A dry run shows the result for one input right away, and Dry Run Compare shows that input's results under two versions side by side. Impact Simulation runs a version of your rules over production or sample data in bulk and compares it with a baseline version, usually the live one, by match rate and a metric you choose.
What happens to my service if LexQ doesn't respond?
With the Node.js SDK, your service uses the fallback you pass with each call. The SDK does not let you call without one, and when a call fails, it returns the fallback's value along with the reason. Each attempt has a timeout, and the whole call, including retries, has one too, so a slow response from LexQ cannot keep your service waiting longer than the whole-call timeout. When calls keep failing, a circuit breaker pauses calls to LexQ for a while, and during that pause, each call goes straight to your fallback. If you call the Execution API over HTTP instead, you need to set a timeout and a fallback yourself in the code that makes the call.
How are executions counted?
A single call to a live group counts as one execution. A batch call counts as one execution per item, and a composite call as one per target group. A call that is rejected before its rules run, such as one over the TPS limit or one to a group with nothing deployed, is neither recorded nor billed. But a call that fails while its rules run, for example because a required fact is missing, is recorded and billed. You are not charged per rule, and every plan allows the same number of rules per version.
Can LexQ prove why a past decision was made?
Yes, for calls that ran your rules. Each one is recorded at the moment it runs, and the record shows the call's input facts, the version that ran, and, for each rule the call evaluated, whether the rule matched and which actions it produced. Decision Provenance shows that version's lineage: who authored, published, and deployed it. If the version that ran was not the group's live version at the time, as with an A/B test version, its lineage shows no deployment. Composite and batch calls are recorded too, but a composite call has no lineage, and a batch call's record leaves out the input facts of its items. Records are kept in an immutable audit log for your plan's audit retention period.
Founder
Send me your messiest business rule.
No sales call. No SDR. I'm the engineer who built LexQ. Send me your case, and within 24 hours I'll show you how I'd model it. Free.
Sanghyun, building LexQ solo from South Korea
Move one rule out of your code.
Create your free account and treat business decisions like production code: test before you ship, understand every decision, deploy with confidence.
Start Free