# feelin

> A FEEL parser and interpreter

Latest version **8.2.2** (published 2026-11-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install feelin
pnpm add feelin
yarn add feelin
bun add feelin
```

## 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 | 8.2.2 |
| Published | 2026-11-19 |
| First published | 2019-12-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >= 20.12.0 |
| Dependencies | 4 |
| Unpacked size | 381.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 63 |
| Author | Nico Rehwaldt |
| Maintainers | nikku |

## Links

- npm: https://www.npmjs.com/package/feelin
- Repository: https://github.com/nikku/feelin
- Homepage: https://github.com/nikku/feelin#readme
- Issues: https://github.com/nikku/feelin/issues
- npm.io page: https://npm.io/package/feelin

## Dependencies (4)

- [min-dash](https://npm.io/package/min-dash.md) ^5.1.0
- [lezer-feel](https://npm.io/package/lezer-feel.md) ^3.0.1
- [@lezer/common](https://npm.io/package/@lezer/common.md) ^1.5.5
- [temporal-polyfill](https://npm.io/package/temporal-polyfill.md) ^1.0.8

## Recent versions

- 8.2.2 (latest) — 2026-11-19
- 7.0.2 (backport) — 2026-09-16
- 0.22.0 (next) — 2020-02-03
- 8.2.1 — 2026-11-19
- 8.2.0 — 2026-09-20
- 8.1.0 — 2026-09-17
- 8.0.1 — 2026-09-16
- 8.0.0 — 2026-09-16
- 7.0.1 — 2026-05-29
- 7.0.0 — 2026-05-12
- 6.2.0 — 2026-02-11
- 6.1.0 — 2026-02-01
- 6.0.3 — 2026-01-30
- 6.0.2 — 2026-01-30
- 6.0.1 — 2026-01-24
- … 91 more at https://npm.io/package/feelin/versions

## README

# feelin

[![CI](https://github.com/nikku/feelin/actions/workflows/CI.yml/badge.svg)](https://github.com/nikku/feelin/actions/workflows/CI.yml)

A [DMN](https://www.omg.org/spec/DMN/) FEEL parser and interpreter written in JavaScript. [__:arrow_right: Try it out__](https://nikku.github.io/feel-playground).


## Usage

```javascript
import {
  unaryTest,
  evaluate
} from 'feelin';

unaryTest('1', { '?': 1 }); // { value: true, warnings: [] }
unaryTest('[1..end]', { '?': 1, end: 10 }); // { value: true, warnings: [] }

evaluate("Mike's daughter.name", {
  'Mike\'s daughter.name': 'Lisa'
}); // { value: 'Lisa', warnings: [] }

evaluate('for a in [1, 2, 3] return a * 2'); // { value: [ 2, 4, 6 ], ... }

evaluate('every rate in rates() satisfies rate < 10', {
  rates() {
    return [ 10, 20 ];
  }
}); // { value: false, warnings: [] }
```

To understand `null` conversions due to errors, inspect `warnings` returned:

```javascript
const { value, warnings } = evaluate('x');

console.log(warnings);
// [
//   {
//     message: "Variable 'x' not found",
//     type: 'NO_VARIABLE_FOUND',
//     position: { from: 0, to: 1 },
//   }
// ]
```

## Features

* [x] Recognizes full FEEL grammar
* [x] Context sensitive (incl. names with spaces)
* [x] Recovers on errors
* [x] Temporal types and operations
* [x] Built-in FEEL functions
* [ ] Full [DMN TCK](https://github.com/dmn-tck/tck) compliance (cf. [coverage](./docs/DMN_TCK.md))


## Build and Run

```sh
# build the library and run all tests
npm run all

# spin up for local development
npm run dev

# execute FEEL tests in DMN TCK
npm run tck
```


## Related

* [lezer-feel](https://github.com/nikku/lezer-feel) - FEEL language definition for the [Lezer](https://lezer.codemirror.net/) parser system
* [feel-playground](https://github.com/nikku/feel-playground) - Interactive playground to learn the FEEL language


## License

MIT

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