removed electron

This commit is contained in:
2026-04-07 23:08:27 -06:00
parent d80ff847d8
commit e25f8a9b63
20 changed files with 96 additions and 363 deletions

View File

@ -1,4 +1,4 @@
# CutScript
# TalkEdit
An open-source, local-first, Descript-like text-based audio and video editor powered by AI. Edit audio/video by editing text — delete a word from the transcript and it's cut from the audio/video.
@ -7,7 +7,7 @@ An open-source, local-first, Descript-like text-based audio and video editor pow
## Architecture
- **Electron + React** desktop app with Tailwind CSS
- **Tauri + React** desktop app with Tailwind CSS
- **FastAPI** Python backend (spawned as child process)
- **WhisperX** for word-level transcription with alignment
- **FFmpeg** for video processing (stream-copy and re-encode)
@ -25,7 +25,7 @@ An open-source, local-first, Descript-like text-based audio and video editor pow
### Install
```bash
# Root dependencies (Electron, concurrently)
# Root scripts
npm install
# Frontend dependencies (React, Tailwind, Zustand)
@ -37,32 +37,46 @@ cd backend && pip install -r requirements.txt && cd ..
### Run (Development)
Set a custom backend port once (optional):
```bash
# Start all three (backend + frontend + electron)
export BACKEND_PORT=8000
```
If you run frontend separately, you can also set:
```bash
export VITE_BACKEND_PORT=$BACKEND_PORT
```
```bash
# Start frontend in browser
npm run dev
# Or start the full desktop app (backend + tauri)
npm run dev:tauri
```
Or run them separately:
```bash
# Terminal 1: Backend
cd backend && python -m uvicorn main:app --reload --port 8642
cd backend && python -m uvicorn main:app --reload --port 8000
# Terminal 2: Frontend
cd frontend && npm run dev
# Terminal 3: Electron
npx electron .
# Terminal 3: Tauri app shell
cd frontend && cargo tauri dev
```
## Project Structure
```
cutscript/
├── electron/ # Electron main process
│ ├── main.js # App entry, spawns Python backend
── preload.js # Secure IPC bridge
│ └── python-bridge.js
talkedit/
├── src-tauri/ # Tauri Rust host
│ ├── src/main.rs # App entry and backend orchestration
── tauri.conf.json
├── frontend/ # React + Vite + Tailwind
│ └── src/
│ ├── components/ # VideoPlayer, TranscriptEditor, etc.
@ -97,7 +111,7 @@ cutscript/
| Speaker diarization | Done |
| Virtualized transcript (react-virtuoso) | Done |
| Encrypted API key storage | Done |
| Project save/load (.cutscript) | Done |
| Project save/load (.aive) | Done |
| AI background removal | Planned |
## Keyboard Shortcuts