Skip to content

About

LoadBench Studio (Source Core) — Interior Ballistics & Propellant Thermodynamic Simulation Suite

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

LoadBench

LoadBench is a desktop interior ballistics simulator and reloading calculation workbench built with React, TypeScript, and Tauri v2. It models chamber gas pressure, projectile bore acceleration, burn progression, barrel transit time, recoil, gyroscopic stability, and downrange trajectories locally on your machine.

Website and signed downloads: 2a.patchcraft.dev/#loadbench

Capabilities

  • 4th-order Runge-Kutta (RK4) interior ballistics solver using the Noble-Abel equation of state, Vieille combustion law with propellant grain form functions, and Lagrange gas inertia scaling.
  • Built-in reference catalogs covering 385 cartridges (SAAMI, CIP, and Wildcats), 181 smokeless propellants, 1,120 projectiles across 27 manufacturers, and 109 centerfire primers across 15 manufacturers.
  • Exterior ballistics calculator integrating BRL G1 and G7 Mach-vs-Cd drag tables with iterative zero-angle convergence and atmospheric density scaling.
  • Load development tools: Safe Working Range and Charge Solver, Chris Long Optimal Barrel Time (OBT) harmonic nodes, incremental charge ladders, propellant ranking, chronograph Ba truing, barrel cut-down velocity stepping, thermal stability drift, CBTO/jump geometry, VMD powder measure sizing, free recoil dynamics, batch cost analysis, printable monochrome range cards, and QR ammo box labels.
  • File interchange for .loadbench / .ldb recipes, Wildcat Studio .wildcat / .wcs / .qdf cartridge definitions, and quote-aware .vol / .pro / .bul CSV files.

Architecture

  • Frontend & physics core: React 19, TypeScript, Vite 8, CSS, Lucide icons, and double-precision IEEE-754 ballistics solvers in src/utils/.
  • Desktop runtime: Rust and Tauri v2 (src-tauri/) providing native windowing, macOS/Windows/Linux file associations, least-privilege ACL capabilities, strict CSP, and optional non-forced updates from GitHub Releases.

Development

Prerequisites: Node.js 22+ and Rust stable toolchain.

# Install frontend dependencies
npm ci

# Run unit tests
npm test

# Typecheck and build production bundle
npm run typecheck
npm run build

# Run local desktop app in development
npm run tauri dev

# Run full local verification suite (TS, Vitest, Vite, Rust fmt/clippy/test)
npm run verify

Release Signing

GitHub Actions (.github/workflows/release.yml) signs macOS builds with Apple Developer ID code signing (plus optional notarization), signs Linux packages and SHA256SUMS.txt with GPG, and signs Tauri auto-updater payloads with Minisign. Configure the following repository secrets before tagging a release:

  • macOS code signing: APPLE_CERTIFICATE and APPLE_CERTIFICATE_PASSWORD (or CSC_LINK and CSC_KEY_PASSWORD), plus optional APPLE_SIGNING_IDENTITY.
  • macOS notarization (optional): either App Store Connect API credentials (APPLE_API_KEY, APPLE_API_ISSUER, APPLE_API_KEY_P8) or Apple ID credentials (APPLE_ID, APPLE_PASSWORD or APPLE_APP_SPECIFIC_PASSWORD, APPLE_TEAM_ID).
  • Linux GPG signing: GPG_PRIVATE_KEY (or LAUNCHPAD_GPG_KEY), plus optional GPG_PASSPHRASE (or LAUNCHPAD_GPG_PASSPHRASE) and GPG_KEY_ID.
  • Tauri updater signing: TAURI_SIGNING_PRIVATE_KEY and optional TAURI_SIGNING_PRIVATE_KEY_PASSWORD.

See SECURITY.md for artifact verification commands.

Related Projects

Safety Notice

All pressure, velocity, and trajectory values are mathematical approximations. Always consult published reloading manuals from component manufacturers, start at least 10% below maximum charges, and read docs/DISCLAIMER.md before assembling ammunition.

License

LoadBench is open-source software licensed under the BSD 3-Clause License.

About

LoadBench Studio (Source Core) — Interior Ballistics & Propellant Thermodynamic Simulation Suite

Topics

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages