How mohammadmansour200/basset works
Basset is a local desktop media toolkit for selecting or downloading media, previewing it, choosing an operation, and producing an output. Its main workflow runs through the upload screen and operation screen into media-specific controls and execution hooks; FFmpeg, image processing, and Spleeter provide processing paths. The README also documents conversion, cutting, trimming, compression, quality reduction, instrument removal, localization, and theme support. Edges are limited to shown imports/calls or documented capabilities; unsampled operation implementations are represented without guessed processing links.
Main entry points: Operation/index.tsx Operation screen · FileUpload/index.tsx File upload · useSpleeter.tsx Spleeter runner · App.tsx Application shell
Components 26
Media intake
- File upload
src/components/screens/FileUpload/index.tsx - Internet download
src/components/screens/FileUpload/DownloadFromInternet.tsx - Onboarding dialog
src/components/screens/FileUpload/OnBoardDialog.tsx - Operation chooser
src/components/screens/FileUpload/OperationButtonsDialog.tsx
Media operations
- Operation screen
src/components/screens/Operation/index.tsx - Media info
src/components/screens/Operation/MediaInfoSidebar.tsx - Media preview and cut controls
src/components/ui/AVPlayer/index.tsx - Convert media
src/components/ui/Operations/Convert.tsx - Compress media
src/components/ui/Operations/Compress.tsx - Reduce quality
src/components/ui/Operations/Quality.tsx - Trim media
src/components/ui/Operations/Trim.tsx - Cut media
src/components/ui/Operations/Cut.tsx - Remove instruments
src/components/ui/Operations/RemoveMusic.tsx
Processing and files
- Media selection state
src/stores/useFileStore.ts - Execution controls
src/components/ui/ExecuteBtn.tsx - FFmpeg runner
src/hooks/useFFmpeg.tsx - Image processor
src/hooks/useImage.tsx - Spleeter runner
src/hooks/useSpleeter.tsx - FFmpeg helpers
src/utils/ffmpegHelperUtils.ts - Local media files
src/utils/fsUtils.ts - Operation state
src/stores/useOperationStore.ts - Spleeter helper
src/utils/SpleeterHelper.ts
Application shell
- Application shell
src/App.tsx - Theme provider
src/contexts/ThemeProvider.tsx - Localization
src/i18n.tsx
Other components
- User
Connections 31
- User → Application shell: uses
README.md - Application shell → File upload: shows when idle
src/App.tsx - Application shell → Operation screen: shows for operation
src/App.tsx - Application shell → Theme provider: wraps
src/App.tsx - File upload → Media selection state: stores selection
src/components/screens/FileUpload/index.tsx - File upload → FFmpeg helpers: extracts preview
src/components/screens/FileUpload/index.tsx - File upload → Internet download: renders
src/components/screens/FileUpload/index.tsx - File upload → Onboarding dialog: renders
src/components/screens/FileUpload/index.tsx - File upload → Operation chooser: renders
src/components/screens/FileUpload/index.tsx - Operation screen → Operation state: reads selection
src/components/screens/Operation/index.tsx - Operation screen → Media info: renders
src/components/screens/Operation/index.tsx - Operation screen → Convert media: renders
src/components/screens/Operation/index.tsx - Operation screen → Compress media: renders
src/components/screens/Operation/index.tsx - Operation screen → Reduce quality: renders
src/components/screens/Operation/index.tsx - Operation screen → Trim media: renders
src/components/screens/Operation/index.tsx - Operation screen → Cut media: renders
src/components/screens/Operation/index.tsx - Operation screen → Remove instruments: renders
src/components/screens/Operation/index.tsx - Media preview and cut controls → Media selection state: reads media path
src/components/ui/AVPlayer/index.tsx - Convert media → Execution controls: uses
src/components/ui/Operations/Convert.tsx - Execution controls → FFmpeg runner: runs FFmpeg
src/components/ui/ExecuteBtn.tsx - Execution controls → Image processor: uses image processing
src/components/ui/ExecuteBtn.tsx - Execution controls → Spleeter runner: runs Spleeter
src/components/ui/ExecuteBtn.tsx - FFmpeg runner → Local media files: copies and cleans output
src/hooks/useFFmpeg.tsx - FFmpeg runner → FFmpeg helpers: parses progress
src/hooks/useFFmpeg.tsx - FFmpeg runner → Operation state: updates status
src/hooks/useFFmpeg.tsx - Spleeter runner → Spleeter helper: prepares output
src/hooks/useSpleeter.tsx - Spleeter runner → FFmpeg helpers: gets duration
src/hooks/useSpleeter.tsx - Spleeter runner → Local media files: manages temporary files
src/hooks/useSpleeter.tsx - Spleeter runner → Operation state: updates status
src/hooks/useSpleeter.tsx - FFmpeg helpers → Local media files: ensures output directory
src/utils/ffmpegHelperUtils.ts - Localization → Application shell: supports languages
README.md