# @strudel/core

> Port of Tidal Cycles to JavaScript

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

## Install

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

## 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 | 2023-05-05 |
| Weekly downloads | 0 |
| License | AGPL-3.0-or-later |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=18.0.0 |
| Dependencies | 2 |
| Unpacked size | 560.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Alex McLean |
| Maintainers | daslyfe, yaxupaxo, felixroos |
| Keywords | tidalcycles, strudel, pattern, livecoding, algorave |

## Links

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

## Dependencies (2)

- [fraction.js](https://npm.io/package/fraction.js.md) ^5.2.1
- [@kabelsalat/web](https://npm.io/package/@kabelsalat/web.md) ^0.4.1

## 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
- 0.8.0 — 2023-05-05

## README

# @strudel/core

This package contains the bare essence of strudel.

## Install

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

## Example

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

const pattern = sequence('a', ['b', 'c']);

const events = pattern.queryArc(0, 1);

const spans = events.map(
  (event) => `${event.value}: ${event.whole.begin.toFraction()} - ${event.whole.end.toFraction()} `,
);
```

yields:

```log
a: 0 - 1/2
b: 1/2 - 3/4
c: 3/4 - 1
a: 1 - 3/2
b: 3/2 - 7/4
c: 7/4 - 2
```

- [play with @strudel/core on codesandbox](https://codesandbox.io/s/strudel-core-test-forked-9ywhv7?file=/src/index.js).
- [open color pattern example](https://raw.githack.com/tidalcycles/strudel/main/packages/core/examples/canvas.html)
- [open minimal repl example](https://raw.githack.com/tidalcycles/strudel/main/packages/core/examples/vanilla.html)
- [open minimal vite example](./examples/vite-vanilla-repl/)

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