2026-09-09 10:21:29 +02:00
# ClipForge
2026-09-09 15:36:53 +02:00
ClipForge is a Windows-first, local-first game clipping app inspired by tools like Medal and FTHR. It runs as a lightweight Tauri desktop app using the system WebView2, with Rust handling capture, replay clips, local storage, game events, hotkeys, and uploads.
2026-09-09 10:21:29 +02:00
## Current State
2026-09-09 15:36:53 +02:00
- Rolling replay capture writes short MP4 segments and manual clips extract from those segments.
- Full-session recording concatenates the session segments into a saved MP4.
2026-09-10 13:55:32 +02:00
- Capture prefers native Windows Graphics Capture with H.264 for detected game windows or the desktop, then falls back to FFmpeg Desktop Duplication (`ddagrab` ) or `gdigrab` .
2026-09-09 15:36:53 +02:00
- FFmpeg Media Foundation H.264 is used when available.
- FFmpeg is bundled as a Tauri sidecar for installer builds, so users do not need a separate FFmpeg install.
- SQLite stores the clip library; `settings.json` stores versioned local settings.
- Global hotkeys are registered while the app runs: `F8` , `Shift+F8` , and `Alt+F7` .
- League Live Client events and Valve GSI-style events feed the auto-clip pipeline.
- Catbox, Litterbox, and custom multipart HTTP upload adapters are implemented; the UI can choose providers.
2026-09-10 13:55:32 +02:00
- Native WASAPI system-audio and mic capture are wired into the native Windows Graphics Capture path; FFmpeg remains the fallback capture path.
2026-09-09 10:21:29 +02:00
## Commands
```powershell
2026-09-09 15:36:53 +02:00
pnpm install
pnpm run build
2026-09-09 10:21:29 +02:00
cargo test
2026-09-09 15:36:53 +02:00
cargo check - -manifest-path src-tauri \ Cargo . toml
2026-09-09 10:21:29 +02:00
```
2026-09-09 15:36:53 +02:00
For the desktop app:
2026-09-09 10:21:29 +02:00
```powershell
pnpm run tauri dev
2026-09-09 15:36:53 +02:00
pnpm run desktop : build
2026-09-09 10:21:29 +02:00
```
2026-09-09 15:36:53 +02:00
`pnpm run desktop:build` prepares the FFmpeg sidecar, builds the frontend, builds the Tauri app, and produces MSI/NSIS installers under `src-tauri/target/release/bundle/` .
2026-09-09 10:21:29 +02:00
## Architecture
See `docs/architecture.md` and `docs/product-spec.md` .
## Desktop Installer
2026-09-09 15:36:53 +02:00
The verified build outputs are:
- `src-tauri/target/release/bundle/msi/ClipForge_0.1.0_x64_en-US.msi`
- `src-tauri/target/release/bundle/nsis/ClipForge_0.1.0_x64-setup.exe`
2026-09-09 10:21:29 +02:00