Skip to content
rmnr
DocsTourSlicesBest PracticeAgentsInstall

Command Palette

Search for a command to run...

New

Slice · AI prompt

Reel — video timeline editor

React + Svelte in-browser NLE over one composition/media/render core — timeline, keyframes, AI edits and realtime WebM export.

Resource detail View source
Copy this prompt into Claude / Codex / Cursor
reel-editor.prompt.mdmarkdown
# Install `reel-editor` — Reel — video timeline editor

> React + Svelte in-browser NLE over one composition/media/render core — timeline, keyframes, AI edits and realtime WebM export.

📚 Knowledge base : https://resource.rahmanef.com/llms.txt
📦 Slice detail   : https://resource.rahmanef.com/slices/reel-editor
🧠 JSON catalog   : https://resource.rahmanef.com/api/knowledge?slice=reel-editor
🔗 Source         : https://github.com/rahmanef63/resource-site/tree/main/frontend/slices/reel-editor

## 1. Install

```bash
npx rahman-resources add reel-editor
# alias: npx rr add reel-editor
```

The CLI copies `frontend/slices/reel-editor/` into your project + augments `.env.example` + installs npm deps automatically. Run it from your project root.

## 2. What it ships

- npm: `lucide-react`, `react-resizable-panels`, `sonner`
- shadcn primitives: `button`, `input`, `slider`, `tooltip`, `dialog`, `dropdown-menu`, `resizable`, `sheet`, `sonner`

## 3. Wire it up

React/default: `npx rr add reel-editor`. SvelteKit: `npx rr add reel-editor --framework sveltekit`. Both reuse the same composition/history/draw/media/audio/AI/settings/filesystem/export cores. React keeps the resizable shadcn workspace, Sonner, Lucide and automatic tool registration; Svelte installs only svelte@^5 + portable cores and accepts optional registerTools. Wire production file access through configureReelFs({ list, mkdir, rawUrl }); enforce path authorization and signed/media access on that backend. Render/export remains client-side MediaRecorder WebM using the same drawFrame() path as preview.

## Rules of engagement

- shadcn-only UI primitives. No raw `<button>` / `<dialog>` / native date or file inputs.
- 200-line hard cap per source file (extract neighbours when over).
- All Convex queries hit an index (`.withIndex(...)`); never bare `.collect()`.
- Public mutations/queries declare `args:` validators + authz.
- Full ruleset: https://resource.rahmanef.com/best-practice

The agent will fetch /llms.txt for the full ruleset and use /api/knowledge for the JSON catalog.