# @adobe/aep-rules-engine

> Adobe Experience Platform rules engine.

Latest version **3.1.2** (published 2026-07-17) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @adobe/aep-rules-engine
pnpm add @adobe/aep-rules-engine
yarn add @adobe/aep-rules-engine
bun add @adobe/aep-rules-engine
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 3.1.2 |
| Published | 2026-07-17 |
| First published | 2023-04-26 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 188 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Adobe |
| Maintainers | marbec, tripod, garthdb, lazd, adobe-admin, patrickfulton, trieloff, krisnye, dcpfsdk, natebaldwin, devongovett, aspro83, symanovi, dpfister, stefan-guggisberg, rofe, kptdobe, adobehalls, fullcolorcoder, djaeggi, dylandepass, mhaack, amol-anand, stopp-adobe, namarora, doten, duh_schmidt, asthabh23, zdahbi, tuicu, fmeschbe |

## Links

- npm: https://www.npmjs.com/package/@adobe/aep-rules-engine
- Repository: https://github.com/adobe/aepsdk-rulesengine-typescript
- Homepage: https://github.com/adobe/aepsdk-rulesengine-typescript#readme
- Issues: https://github.com/adobe/aepsdk-rulesengine-typescript/issues
- npm.io page: https://npm.io/package/@adobe/aep-rules-engine

## Recent versions

- 3.1.2 (latest) — 2026-07-17
- 3.1.1 — 2025-05-28
- 3.1.0 — 2025-05-28
- 3.0.0 — 2025-04-07
- 2.1.0 — 2025-02-19
- 2.0.3 — 2024-12-06
- 2.0.2 — 2023-10-12
- 2.0.1 — 2023-05-02
- 1.0.3 — 2023-04-28
- 1.0.2 — 2023-04-28
- 1.0.1 — 2023-04-27
- 1.0.0-rc.1 — 2023-04-26

## README

# AEP Rules Engine

## Overview

A simple, generic, extensible Rules Engine in TypeScript.

## Installation

Although written in TypeScript, the build produces JavaScript implementations that can be used anywhere JavaScript can be evaluated.

Install via npm.

```bash
npm install @adobe/aep-rules-engine
```

## Usage

```javascript
const RulesEngine = require("@adobe/aep-rules-engine");

const ruleset = RulesEngine({
  version: 1,
  rules: [
    {
      condition: {
        definition: {
          conditions: [
            {
              definition: {
                conditions: [
                  {
                    definition: {
                      key: "color",
                      matcher: "eq",
                      values: ["orange", "blue"],
                    },
                    type: "matcher",
                  },
                ],
                logic: "and",
              },
              type: "group",
            },
          ],
          logic: "and",
        },
        type: "group",
      },
      consequences: [
        {
          type: "item",
          detail: {
            hello: "world",
          },
          id: "abc123",
        },
      ],
    },
  ],
});

const consequences = ruleset.execute({ color: "orange" });
```

## Contributing

Contributions are welcomed! Read the [Contributing Guide](./.github/CONTRIBUTING.md) for more information.

## Licensing

This project is licensed under the Apache V2 License. See [LICENSE](LICENSE) for more information.

---
_Source: https://npm.io/package/@adobe/aep-rules-engine · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
