open-index/open-npm huggingface dataset:
npm package: @meframe/adapter-medeo
Description: Adapter: convert Medeo VideoDraft to @meframe/core CompositionModelData
Latest version: 0.1.4

## @meframe/adapter-medeo

Convert Medeo `VideoDraft` (JSON) into `@meframe/core` `CompositionModelData`.

### Install

```bash
pnpm add @meframe/adapter-medeo
```

### Usage

```ts
import { parseVideoDraft, resolveResources, toCompositionModel } from '@meframe/adapter-medeo';

const draft = parseVideoDraft(draftJson);

// Optional: resolve assets (e.g. map storage_key -> public URL)
const assets = await resolveResources(draft, {
  getPublicUrl: (storageKey) => `https://cdn.example.com/${storageKey}`,
});

const model = toCompositionModel(draft, { assets });
```

### API

- `parseVideoDraft(raw)`
- `resolveResources(draft, { getPublicUrl, fetchAsset? })`
- `toCompositionModel(draft, options)`