# @airlookjs/svelte-sequence-editor

> UI widget and logic for editing timed sequences in recursively nested structures of layers and blocks. Aimed at simple video and media editing in the browser.

Latest version **4.1.9** (published 2024-09-02) · ISC license · 0 weekly downloads

## Install

```sh
npm install @airlookjs/svelte-sequence-editor
pnpm add @airlookjs/svelte-sequence-editor
yarn add @airlookjs/svelte-sequence-editor
bun add @airlookjs/svelte-sequence-editor
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities; has provenance.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 4.1.9 |
| Published | 2024-09-02 |
| First published | 2023-11-21 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 0 |
| Unpacked size | 84.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 5 |
| Author | Johan Bichel Lindegaard |
| Maintainers | olekristensen, smukkejohan |
| Keywords | svelte, timeline, sequence, broadcast, UI, media, video, audio, editor, form |

## Links

- npm: https://www.npmjs.com/package/@airlookjs/svelte-sequence-editor
- Repository: https://github.com/airlookjs/airlookjs
- Homepage: https://github.com/airlookjs/airlookjs/packages/svelte-sequence-editor#readme
- Issues: https://github.com/airlookjs/airlookjs/issues
- npm.io page: https://npm.io/package/@airlookjs/svelte-sequence-editor

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 4.1.9 (latest) — 2024-09-02
- 4.1.7 — 2024-05-06
- 4.1.6 — 2024-03-21
- 4.1.5 — 2024-03-21
- 4.1.4 — 2024-03-21
- 4.1.3 — 2024-03-20
- 4.1.2 — 2024-01-24
- 4.1.1 — 2024-01-24
- 4.1.0 — 2024-01-24
- 4.0.0 — 2024-01-15
- 3.0.0 — 2024-01-10
- 2.0.2 — 2023-11-24
- 2.0.1 — 2023-11-24
- 2.0.0 — 2023-11-22
- 1.0.6 — 2023-11-22
- … 1 more at https://npm.io/package/@airlookjs/svelte-sequence-editor/versions

## README

# Svelte Sequence Editor

UI widget and logic for editing timed sequences in recursively nested structures of layers and blocks. Aimed at simple video and media editing in the browser.

[![NPM Version](https://img.shields.io/npm/v/@airlookjs/svelte-sequence-editor.svg?style=flat-square&colorB=51C838)](https://www.npmjs.com/package/@airlookjs/svelte-sequence-editor)

[![semantic-release: angular](https://img.shields.io/badge/semantic--release-angular-e10079?logo=semantic-release)](https://github.com/semantic-release/semantic-release)

[![CI](https://github.com/airlookjs/svelte-sequence-editor/actions/workflows/ci.yml/badge.svg)](https://github.com/airlookjs/svelte-sequence-editor/actions/workflows/ci.yml)

## Documentation

See [airlookjs.github.io/svelte-sequence-editor/](https://airlookjs.github.io/svelte-sequence-editor/) for additional examples and documentation.

## Installation

```bash
$ npm install @airlookjs/svelte-sequence-editor
```

## Usage

```typescript
import { createSequence, Sequence } from '@airlookjs/svelte-sequence-editor';

const sequenceTemplate = [
    {
		key: 'speak',
		blocks: [
			{
				key: 'audio',
                title: 'Audio',
				inTime: 0,
				outTime: 10000
			}
		]
	},
    {
		key: 'video',
		blocks: [
			{
				key: 'footage',
				title: 'Footage',
				inTime: 0,
				outTime: 10000
            },

		]
	},

]

const sequence = createSequence({
			initialData: ,
			duration: 30000,
			options: {
                // Will make the editor snap values to a frame rate of 30 fps
				roundingBase: () => {
					return (1 / 30) * 1000
				},
			    errorHandler: (error) => {
					console.error('sequence editor error', error);
				}
			}
		});

const { options, duration } = sequence;

```

Render the component with the sequence object as a prop.

```html
<Sequence {options} {duration} {sequence} />
```

## Styling with tailwind

svelte-sequence-editor uses tailwind for styling.

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