OpenCut/rust/wasm
Maze Winther 3516bd69f4 fix: use published opencut-wasm package 2026-04-01 21:30:26 +02:00
..
src feat: migrate GPU renderer from WebGL to wgpu/WASM 2026-04-01 13:57:32 +02:00
Cargo.toml feat: migrate GPU renderer from WebGL to wgpu/WASM 2026-04-01 13:57:32 +02:00
README.md fix: use published opencut-wasm package 2026-04-01 21:30:26 +02:00

README.md

opencut-wasm

Shared video editor logic compiled to WebAssembly. Used by the OpenCut web app.

Install

npm install opencut-wasm

Usage

import { formatTimeCode } from "opencut-wasm";

All exports are documented in the TypeScript definitions.

Source

Functions are implemented in Rust under rust/crates/. This package is the compiled WebAssembly output — do not edit it directly.

Local development

The web app depends on the published opencut-wasm package by default. If you are editing the WASM source in this repo and want apps/web to use your local build instead:

# From the repo root
bun run build:wasm

cd rust/wasm/pkg
bun link

cd ../../../apps/web
bun link opencut-wasm

While you work, rebuild on changes from the repo root:

bun dev:wasm