# @n8n/tournament

> Output compatible rewrite of riot tmpl

Latest version **1.13.0** (published 2026-09-22) · SEE LICENSE IN LICENSE.md license · 0 weekly downloads

## Install

```sh
npm install @n8n/tournament
pnpm add @n8n/tournament
yarn add @n8n/tournament
bun add @n8n/tournament
```

## Health

**Score 85/100 (A)** — status: active.

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.13.0 |
| Published | 2026-09-22 |
| First published | 2023-08-17 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.md |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 163.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 206604 |
| Author | Jan Oberhauser |
| Maintainers | cornelius_n8n_io, n8n-matsuuu, tomin8n, jan_n8n_io, n8n-charliekolb |

## Links

- npm: https://www.npmjs.com/package/@n8n/tournament
- Repository: https://github.com/n8n-io/n8n
- Homepage: https://n8n.io
- npm.io page: https://npm.io/package/@n8n/tournament

## Dependencies (3)

- [recast](https://npm.io/package/recast.md) ^0.22.0
- [ast-types](https://npm.io/package/ast-types.md) ^0.16.1
- [esprima-next](https://npm.io/package/esprima-next.md) ^5.8.4

## Recent versions

- 1.13.0 (latest) — 2026-09-22
- 1.11.1 (stable) — 2026-09-16
- 1.12.1 — 2026-09-16
- 1.12.0 — 2026-09-15
- 1.11.0 — 2026-09-08
- 1.10.1 — 2026-09-02
- 1.10.0 — 2026-08-25
- 1.9.1 — 2026-08-19
- 1.9.0 — 2026-07-28
- 1.7.1 — 2026-07-22
- 1.8.1 — 2026-07-22
- 1.8.0 — 2026-07-21
- 1.7.0 — 2026-07-14
- 1.6.0 — 2026-07-07
- 1.5.0 — 2026-06-30
- … 13 more at https://npm.io/package/@n8n/tournament/versions

## README

# @n8n/tournament

Tournament is an output-compatible rewrite of [`riot-tmpl`](https://github.com/riot/tmpl) for template expression evaluation.

## Installation

```sh
pnpm add @n8n/tournament
```

## Features

- Compatible with `riot-tmpl` expressions
- ES6 syntax support, e.g. arrow functions and template literals
- Built-in AST hooks for expression manipulation
- TypeScript support

## Usage

```ts
import { Tournament } from '@n8n/tournament';

const tournament = new Tournament();

// simple expressions
tournament.execute('{{ 1 + 2 }}', {}); // 3

// with data context
tournament.execute('{{ user.name }}', { user: { name: 'John' } }); // 'John'

// template strings
tournament.execute('{{ `Hello ${user.name}!` }}', { user: { name: 'John' } }); // 'Hello John!'

// error handling
const tournament = new Tournament((error) => {
	console.error('Expression error:', error);
});
```

## Release

To release, update the version in `package.json` and run:

```sh
npm version {version}
npm publish
```

You will need permissions to publish via n8n's npm org.

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