$ show OpenCut-app/OpenCut
OpenCut is a free and open-source video editor being rewritten from scratch. The repository is a monorepo containing a web application (React with TanStack Router, shadcn/ui components, Cloudflare Workers deployment), a desktop application (Rust with GPUI framework), a minimal API (Elysia on Cloudflare Workers), and a media crate for FFmpeg dependency management. Currently in early development, the web app has placeholder routes for home and editor, the desktop app opens a window with empty panels (browser, preview, inspector, timeline), and the API provides health and echo endpoints. The media crate includes a sophisticated build script that downloads or compiles FFmpeg from source for multiple platforms. The codebase demonstrates clean architecture with well-separated concerns, but most features are not yet implemented. The high star count (91k) likely reflects the previous classic version, not the current rewrite.
The LLM identified 3 files worth highlighting for reuse:
Implements OKLCH to sRGB color conversion for a semantic color theme system. The module defines a complete set of light and dark theme colors using OKLCH notation, converts them to GPUI's Hsla via a mathematically precise transformation, and caches themes in OnceLock. Includes unit tests verifying neutral endpoints, translucent tokens, and theme selection. This is a self-contained, well-tested color conversion utility that could be extracted into any Rust project needing OKLCH support.
A reusable resizable panel group component for GPUI that splits a container into two panels with a draggable divider. Supports horizontal and vertical orientations, configurable initial fraction and minimum fraction, double-click to reset, and drag-to-resize with clamping. The component is self-contained, uses generic entity types for child panels, and includes unit tests for fraction clamping. Could be extracted as a standalone GPUI widget.
A TypeScript build script that downloads or compiles FFmpeg from source for the media crate. It handles multiple platforms (Windows, macOS, Linux, x86_64, aarch64), cross-compilation with llvm-mingw, checksum verification, and idempotent caching via a stamp file. The script is well-structured with clear functions for downloading, extracting, configuring, and building. It demonstrates a robust pattern for managing native dependencies in a cross-platform project.
The divergent implementation demonstrates superior design through its use of `@base-ui/react/use-render` and `@base-ui/react/merge-props` which provide more robust polymorphic rendering and prop merging compared to typical implementations. It also employs `class-variance-authority` for consistent variant handling and `cn` for utility class composition, resulting in cleaner, more maintainable code. The component structure is more modular and follows better separation of concerns with dedicated components for each slot (ItemMedia, ItemContent, etc.) rather than a monolithic approach. Additionally, the use of `data-slot` attributes and proper semantic HTML structure improves accessibility and composability.