OpenCut/apps/web
anh doan 81adac6e1e
feat(effects): add @opencut/effects package with 24 effects and presets
Add a standalone effects package that extracts effect definitions,
GLSL shaders, and registry from @opencut/web into a reusable package.

## Package (@opencut/effects)

- Registry: register/get/has/getAll effects with Map-based lookup
- Categories: COLOR_TONE, ARTISTIC, BEAUTY with display metadata
- Types: Effect, EffectDefinition, EffectContext, WebGLEffectPass

### Effects (24 total)

**Color & Tone (8):** brightness, contrast, saturation, hue-shift,
temperature, exposure, gamma, color-balance

**Artistic (10):** blur, vignette, film-grain, sharpen, pixelate,
chromatic-aberration, glitch (2-pass), neon-glow (2-pass),
sketch (2-pass), oil-paint (2-pass)

**Beauty (6):** skin-smooth (bilateral filter), face-brighten,
eye-enhance, teeth-whiten, blush, slim-face

### Presets (12)

- Instagram: clarendon, juno, lark, gingham, valencia, nashville
- Cinematic: teal-and-orange, vintage-film, noir, bleach-bypass
- Beauty: soft-glow, portrait

## Web App Integration

- Migrate blur effect from web app to package
- Update imports via re-export pattern (backward compatible)
- Pass time param for animated effects (film-grain, glitch)
- Add face-mesh service using MediaPipe Face Mesh (lazy-loaded)
- Beauty effects auto-detect faces and pass EffectContext
- Async renderVisual for face detection pipeline

## Tests

152 unit tests covering registry, all effect definitions, and presets
2026-03-23 13:32:46 +07:00
..
content/changelog changelog: fix date 2026-03-02 20:37:42 +01:00
migrations feat: major editor overhaul (assets, properties, timeline, fonts) (#709) 2026-02-23 03:24:02 +01:00
public replace opencut assets 2026-03-03 14:39:56 +01:00
scripts feat: major editor overhaul (assets, properties, timeline, fonts) (#709) 2026-02-23 03:24:02 +01:00
src feat(effects): add @opencut/effects package with 24 effects and presets 2026-03-23 13:32:46 +07:00
.env.example docker + update readme 2026-02-23 09:38:38 +01:00
.gitignore feat: major editor overhaul (assets, properties, timeline, fonts) (#709) 2026-02-23 03:24:02 +01:00
Dockerfile docker + update readme 2026-02-23 09:38:38 +01:00
components.json feat: major editor overhaul (assets, properties, timeline, fonts) (#709) 2026-02-23 03:24:02 +01:00
content-collections.ts fix content-collections implicit content deprecation 2026-03-02 20:50:07 +01:00
drizzle.config.ts feat: major editor overhaul (assets, properties, timeline, fonts) (#709) 2026-02-23 03:24:02 +01:00
next-env.d.ts next-env.d.ts 2026-02-01 11:31:37 +01:00
next.config.ts feat: changelog page 2026-02-28 23:58:54 +01:00
package.json feat(effects): add @opencut/effects package with 24 effects and presets 2026-03-23 13:32:46 +07:00
postcss.config.mjs feat: major editor overhaul (assets, properties, timeline, fonts) (#709) 2026-02-23 03:24:02 +01:00
tsconfig.json feat: changelog page 2026-02-28 23:58:54 +01:00
tsconfig.tsbuildinfo codebase overhaul (#697) 2026-01-31 00:20:04 +01:00