Development environment
The monorepo contains TypeScript packages, a React/Tauri desktop application, and Rust installation code. Documentation is a separate Astro project.
Prerequisites
Section titled “Prerequisites”| Tool | Version or requirement |
|---|---|
| Git | To obtain the source checkout |
| Node.js | 22.12 or newer |
| pnpm | 10.15.1, matching the repository |
| Rust | Stable toolchain, including Cargo |
| Native build dependencies | Tauri 2 prerequisites for your operating system |
On Windows, Tauri needs Microsoft C++ build tools and WebView2. On Linux, it needs WebKitGTK and the development libraries for your distribution. Follow the official Tauri prerequisites before attempting the build. CI runs on Windows and Ubuntu.
Check your terminal:
node --versionpnpm --versionrustc --versioncargo --versiongit --versionIn Windows PowerShell, if execution policy blocks pnpm.ps1, use pnpm.cmd wherever these docs say pnpm. You don’t need to change the execution policy.
On Linux, Electron integration tests also need a graphical display or xvfb. The CI workflow records the additional system packages used by the test runners.
Build and run the injector from source
Section titled “Build and run the injector from source”The following sequence works in PowerShell and in a Linux shell:
git clone https://github.com/Fer2G/FluxPlugsTemp.git fluxplugscd fluxplugspnpm install --frozen-lockfilepnpm buildpnpm --filter @fluxplugs/injector-ui tauri devRun pnpm from the project root, the directory containing the root package.json and Cargo.toml. The build creates the runtime and the bundled-plugin catalog; leave the checkout in place while using the development launcher. The Tauri development command runs its configured frontend/runtime/catalog preparation before launching the native app.
The first launch compiles the Rust application and takes longer than later launches. Keep the terminal running. You should see a FluxPlugs window with Scan for installs; from there, installing into Fluxer works as in the user guide.
If the build fails
Section titled “If the build fails”A missing linker, C++ compiler, or WebKitGTK library usually means the native prerequisites are incomplete. Check the first error in the terminal and finish the Tauri setup.
If pnpm cannot find a package, confirm that you are in the project root and that dependency installation completed. Don’t mix a source revision with a runtime generated from a different one.
Update a source build
Section titled “Update a source build”Pull the newer revision, preserving any local changes, then run pnpm install –frozen-lockfile and pnpm build from the project root. Relaunch the injector and use Check status, then Update injection, as described in the user update guide.
Build documentation separately
Section titled “Build documentation separately”pnpm --dir docs install --frozen-lockfilepnpm --dir docs buildpnpm --dir docs check:linksThe docs folder has its own lockfile and workspace configuration. Root pnpm install does not install the website’s dependencies.
For background documentation development use pnpm –dir docs exec astro dev –background. Manage it with astro dev status, astro dev logs, and astro dev stop through the same pnpm invocation.
Generated output
Section titled “Generated output”Runtime bundles, catalogs, TypeScript declarations, native targets, and Electron fixtures are build artifacts. Do not edit them as the source of a change. Generated contract types are the exception: regenerate them through the documented command and commit the expected diff.
FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.