# @strudel/transpiler

> Transpiler for strudel user code. Converts syntactically correct but semantically meaningless JS into evaluatable strudel code.

Latest version **1.2.6** (published 2026-01-18) · AGPL-3.0-or-later license · 0 weekly downloads

## Install

```sh
npm install @strudel/transpiler
pnpm add @strudel/transpiler
yarn add @strudel/transpiler
bun add @strudel/transpiler
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 1.2.6 |
| Published | 2026-01-18 |
| First published | 2024-01-18 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 5 |
| Unpacked size | 65.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Felix Roos |
| Maintainers | daslyfe, yaxupaxo, felixroos |
| Keywords | tidalcycles, strudel, pattern, livecoding, algorave |

## Links

- npm: https://www.npmjs.com/package/@strudel/transpiler
- Repository: https://codeberg.org/uzu/strudel
- Homepage: https://codeberg.org/uzu/strudel#readme
- Issues: https://codeberg.org/uzu/strudel/issues
- npm.io page: https://npm.io/package/@strudel/transpiler

## Dependencies (5)

- [acorn](https://npm.io/package/acorn.md) ^8.14.0
- [escodegen](https://npm.io/package/escodegen.md) ^2.1.0
- [@strudel/core](https://npm.io/package/@strudel/core.md) 1.2.6
- [@strudel/mini](https://npm.io/package/@strudel/mini.md) 1.2.6
- [estree-walker](https://npm.io/package/estree-walker.md) ^3.0.3

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.2.6 (latest) — 2026-01-18
- 1.2.5 — 2025-10-27
- 1.2.4 — 2025-09-10
- 1.2.3 — 2025-08-18
- 1.2.2 — 2025-05-29
- 1.2.1 — 2025-05-24
- 1.2.0 — 2025-05-01
- 1.1.0 — 2024-05-31
- 1.0.1 — 2024-02-08
- 1.0.0 — 2024-01-22
- 0.11.0 — 2024-01-18

## README

# @strudel/transpiler

This package contains a JS code transpiler with the following features:

- add locations of mini notation strings (double quoted or backticked) for highlighting
- converts pseudo note variables to note strings
- adds return statement to the last expression

## Install

```sh
npm i @strudel/transpiler
```

## Use

```js
import { transpiler } from '@strudel/core';
import { evaluate } from '@strudel/core';

transpiler('note("c3 [e3,g3]")', { wrapAsync: false, addReturn: false, simpleLocs: true });
/* mini('c3 [e3,g3]').withMiniLocation(7,17) */

evaluate(note('c3 [e3,g3]'), transpiler); // returns pattern of above code
```

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