# @strudel/mini

> Mini notation for strudel

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

## Install

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

## 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-17 |
| 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 | 1 |
| Unpacked size | 246.3 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/mini
- 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/mini

## Dependencies (1)

- [@strudel/core](https://npm.io/package/@strudel/core.md) 1.2.6

## 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-17
- 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/mini

This package contains the mini notation parser and pattern generator.

## Install

```sh
npm i @strudel/mini --save
```

## Example

```js
import { mini } from '@strudel/mini';

const pattern = mini('a [b c*2]');

const events = pattern.firstCycle().map((e) => e.show());
console.log(events);
```

yields:

```log
(0/1 -> 1/2, 0/1 -> 1/2, a)
(1/2 -> 3/4, 1/2 -> 3/4, b)
(3/4 -> 7/8, 3/4 -> 7/8, c)
(7/8 -> 1/1, 7/8 -> 1/1, c)
```

[Play with @strudel/mini codesandbox](https://codesandbox.io/s/strudel-mini-example-oe9wcu?file=/src/index.js)

## Mini Notation API

See "Mini Notation" in the [Strudel Tutorial](https://strudel.cc/learn/mini-notation)

## Building the Parser

The parser [krill-parser.js] is generated from [krill.pegjs](./krill.pegjs) using [peggy](https://peggyjs.org/).
To generate the parser, run

```js
npm run build:parser
```

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