
Company News
Jerod Santo Joins Socket as Head of Media
Allow myself to introduce... myself.
@stll/conditions
Advanced tools
A generic, side-effect-free boolean/predicate condition engine: a typed condition AST, its single evaluator, and a walker.
The package owns one canonical structured-condition shape (compare, predicate,
and group nodes combined with and/or and negation) so that different
consumers — filters, gating, templates — share one set of operators and
semantics and never drift apart. Domain code supplies a small resolve
adapter that turns a non-literal operand into a concrete value; the evaluator
handles operators, boolean combination, and negation.
import { evaluateCondition, type Condition } from "@stll/conditions";
const condition: Condition = {
type: "group",
combinator: "and",
negated: false,
children: [
{
type: "compare",
op: "eq",
left: { type: "path", path: "status" },
right: { type: "literal", value: "open" },
},
],
};
const result = evaluateCondition(condition, (operand) =>
operand.type === "path" ? data[operand.path] : undefined,
);
bun add @stll/conditions
Everything is exported from the package root (@stll/conditions). The surface
is organised into three areas:
conditionSchema, conditionNodeSchema, emptyCondition).evaluateCondition, OperandResolver,
pruneIncomplete).conditionHasFormula).Apache-2.0
FAQs
A generic boolean/predicate condition engine: schema, evaluate, walk.
We found that @stll/conditions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Company News
Allow myself to introduce... myself.

Research
/Security News
A Twitch browser extension on Chrome and Firefox forwards users’ live OAuth session tokens through proxies controlled by a Russian bot service.

Security News
Anthropic found biased reasoning and recklessness drove Claude Mythos 5 to publish malware on PyPI and compromise a security vendor.