JFM Frontend is the Windows desktop client for the JFM local media management system. It is built with Electron, React, and Vite, and it works with the local Spring Boot backend from jfm-backend.
The v1 desktop release packages the frontend, backend jar, Java runtime, and optional FFmpeg runtime into one Windows MSI installer.
- Movie library page with pagination and filtering.
- Filter by name, tags, artists, like status, freshness range, and sort order.
- Tag management and artist management pages.
- Local watched-folder settings managed by Electron.
- Pending review workflow for newly scanned files.
- Review modal for editing imported file metadata before saving to the backend.
- Bundled backend startup from the Electron main process.
- SQLite desktop database configured through the backend startup environment.
- Video cover generation through bundled FFmpeg when available.
- Electron 43
- React 19
- Vite
- Electron Forge
- WiX/MSI for the Windows release installer
- Local Spring Boot backend at
http://localhost:8080
jfm-frontend/
src/
main.js # Electron main process
preload.js # Safe renderer API bridge
main/
ipc/ # IPC handlers
services/ # Local settings, scanning, backend process, covers
renderer/ # React application
scripts/
prepare-release-v1.mjs # Copies backend jar and validates runtime assets
resources/ # Local release assets; ignored by git
backend/
jfm-backend.jar
runtime/
bin/
java.exe
ffmpeg.exe
- Node.js and npm
- A running local JFM backend, or the backend repository available locally
- Java 21 and Maven for building the backend
npm installnpm run startIn development, the renderer talks to:
http://localhost:8080
Local frontend settings are stored under:
jfm-frontend/user-config
From the backend repository:
mvn -DskipTests packageThis produces the backend jar under:
jfm-backend/target/
Place a Java 21 runtime under:
jfm-frontend/resources/runtime
The release script requires:
jfm-frontend/resources/runtime/bin/java.exe
The MSI release uses WiX. The local machine must have WiX v3 tools available in PATH:
candle.exe
light.exe
Typical WiX v3 path:
C:\Program Files (x86)\WiX Toolset v3.14\bin
Check from a new terminal:
where.exe candle.exe
where.exe light.exeFrom the frontend repository:
npm run release:v1The release script will:
- copy the newest backend jar from
../jfm-backend/targettoresources/backend/jfm-backend.jar; - verify that
resources/runtime/bin/java.exeexists; - copy
ffmpeg-statictoresources/runtime/bin/ffmpeg.exewhen available; - run Electron Forge packaging and WiX MSI creation.
If the backend repository is not next to the frontend repository, pass its path:
set JFM_BACKEND_DIR=D:\path\to\jfm-backend
npm run release:v1The MSI output is generated under:
out/make/wix/x64/
The MSI installer uses a classic Windows installation flow and allows the user to choose the install directory.
Default program location:
C:\Program Files\JFM
Runtime user data is not written to Program Files. It is stored under:
C:\ProgramData\JFM\user-config
Expected runtime data:
C:\ProgramData\JFM\user-config\config.json
C:\ProgramData\JFM\user-config\database\jfm.db
C:\ProgramData\JFM\user-config\covers\
When JFM starts in packaged mode:
- Electron creates or loads the user config folder.
- Electron starts the bundled Java runtime.
- Java runs the bundled Spring Boot backend jar.
- The backend listens on
127.0.0.1:8080. - Electron passes the SQLite database path to the backend.
- The React renderer talks to the backend over HTTP.
The following are local build/runtime artifacts and should stay out of git:
resources/backend/jfm-backend.jar
resources/runtime/
resources/user-config/
out/
node_modules/
*.msi
*.exe
*.db
Backend repository:
https://github.com/CompilingError/jfm-backend