# @x12i/graphenix-logic

> Graphenix runtime logic: path resolution, variable assignment, and condition evaluation for graph execution.

Latest version **2.17.0** (published 2026-07-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @x12i/graphenix-logic
pnpm add @x12i/graphenix-logic
yarn add @x12i/graphenix-logic
bun add @x12i/graphenix-logic
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 2.17.0 |
| Published | 2026-07-10 |
| First published | 2026-07-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 1 |
| Unpacked size | 43.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | x12i |
| Keywords | graph, graphenix, logic, runtime, execution |

## Links

- npm: https://www.npmjs.com/package/@x12i/graphenix-logic
- Repository: https://github.com/x12i/graphenix-format
- Homepage: https://github.com/x12i/graphenix-format/tree/master/packages/logic#readme
- Issues: https://github.com/x12i/graphenix-format/issues
- npm.io page: https://npm.io/package/@x12i/graphenix-logic

## Dependencies (1)

- [@x12i/execution-memory-manager](https://npm.io/package/@x12i/execution-memory-manager.md) ^1.2.0

## Alternatives

- [apollo-link-http-common](https://npm.io/package/apollo-link-http-common.md) — 879.0K weekly downloads
- [react-relay](https://npm.io/package/react-relay.md) — 336.8K weekly downloads
- [relay-test-utils](https://npm.io/package/relay-test-utils.md) — 181.6K weekly downloads
- [@vendure/core](https://npm.io/package/@vendure/core.md) — 14.8K weekly downloads
- [@pnpm/deps.graph-sequencer](https://npm.io/package/@pnpm/deps.graph-sequencer.md) — 13.4K weekly downloads

## Recent versions

- 2.17.0 (latest) — 2026-07-10
- 2.16.0 — 2026-07-05

## README

# @x12i/graphenix-logic

Runtime logic utilities for Graphenix graph execution: path resolution, variable assignment, and condition evaluation.

## Install

```bash
npm install @x12i/graphenix-logic@^2.16.0
```

## Usage

```ts
import { LogicEngine } from "@x12i/graphenix-logic";

const context = {
  state: { answer: 42 },
  variables: { count: 1 },
  history: [],
  outputs: { byKey: {}, byNodeId: {} },
  nodeStatus: {}
};

LogicEngine.resolveValue("$state.answer", context.state, context);
LogicEngine.applyAssignment(
  { name: "count", operation: "increment" },
  context.state,
  context
);
```

## API

| Export | Description |
|--------|-------------|
| `LogicEngine` | Static methods: `resolveValue`, `applyAssignment`, `evaluateCondition` |
| `ExecutionContext` | Runtime context shape (`state`, `variables`, `memory`, `node`, …) |
| `VariableAssignment` | Variable mutation descriptor |
| `Condition` | Simple/complex/function condition for `evaluateCondition` |

Ported from legacy `@x12i/graphenix@2.5.0` planner logic module for the 2.16 format train.

---
_Source: https://npm.io/package/@x12i/graphenix-logic · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
