Plan, simulate, and manufacture composite parts with precision fiber winding.
Download Β· Documentation Β· Examples
FiberPath automates the complex process of filament windingβwrapping fiber-reinforced composites around mandrels to create lightweight, high-strength cylindrical parts like pressure vessels, pipes, and aerospace structures.
Design multi-layer winding patterns in a visual interface, simulate the full manufacturing process, and stream G-code directly to Marlin-based hardware. FiberPath handles the winding mathematics β hoop and helical path generation, tow coverage, and machine kinematics across cylindrical, conical and curved mandrels β so you can focus on part design.
- Visual Layer Editor β Design winding patterns with live preview
- Winding Path Planning β Automatic hoop, helical, and skip pattern generation on cylinders, reducing cones, and Von KΓ‘rmΓ‘n nose profiles
- Hardware Simulation β Validate motion before manufacturing
- Direct Machine Control β Stream G-code to Marlin controllers with pause/resume
- XAB-Native Axis Output β Standardized rotational-axis output with clear logical axis mapping
- Cross-Platform Desktop GUI β Native Windows, macOS, and Linux applications
- Command-Line Tools β Scriptable workflows for automation and CI/CD
- Comprehensive Documentation β Architecture guides, examples, and API reference
Scope & roadmap: FiberPath plans cylinders, reducing cones (
schemaVersion 1.1) and Von KΓ‘rmΓ‘n nose profiles (1.2) with hoop, helical and skip layers. Cylinders and cones are developable, so their paths are closed-form; the Von KΓ‘rmΓ‘n profile is non-developable and is solved by integrating the geodesic (Clairaut) relation over the meridian. Optional friction-assisted non-geodesic winding (frictionLambda,1.3) shrinks the bare polar cap a geodesic leaves near the tip. Full tip coverage on steep profiles additionally needs 3-D delivery-eye kinematics, which is hardware-gated β see #328 and the roadmap.
Download the installer for your platform from the latest release:
- Windows:
.msior.exeinstaller - macOS:
.dmgdisk image - Linux:
.debpackage or.AppImage
Launch the application, load an example from the File menu, and explore the visual editor.
Install via pip or uv:
pip install fiberpath
# or
uv pip install fiberpathGenerate G-code from an example:
fiberpath plan examples/simple_cylinder/input.wind -o simple.gcode
fiberpath plot simple.gcode --output simple.pngThe plot command creates a 2D unwrapped visualization of the toolpath for quick inspection.
π¦ Download: github.com/fiberpath/fiberpath/releases/latest
No Python installation requiredβthe GUI is a fully self-contained native application with the FiberPath backend bundled inside. Just download, install, and run.
- Windows:
.msior.exeinstaller - macOS:
.dmgdisk image - Linux:
.debpackage or.AppImage
All desktop installers include the complete FiberPath toolchain for planning, simulation, and streaming.
Requirements: Python 3.11+
# Install from PyPI
pip install fiberpath
# Install with optional dependencies
pip install fiberpath[cli] # CLI tools
pip install fiberpath[api] # FastAPI server
pip install fiberpath[dev] # Development toolsDevelopment Install:
git clone https://github.com/fiberpath/fiberpath.git
cd fiberpath
uv pip install -e .[dev,cli,api]
pytestπ‘ Using uv is recommended for faster installs, but standard
pipworks fine.
# Generate G-code from a .wind configuration
fiberpath plan examples/simple_cylinder/input.wind -o output.gcode# Create 2D unwrapped plot
fiberpath plot output.gcode --output preview.png --scale 0.8# Simulation summary (time/material estimates; no interactive 3D viewer)
fiberpath simulate output.gcode# Test streaming without hardware connection
fiberpath stream output.gcode --dry-run
# Connect and stream to Marlin controller
fiberpath stream output.gcode --port COM5 --baud-rate 250000Streaming runs through the marlin-host library, which handles the connection handshake (waiting for Marlin's startup banner and negotiating capabilities) plus reliable line-numbered/checksummed framing. Press Ctrl+C to abort a live stream gracefully β it stops before the next line. Interactive pause/resume lives in the desktop GUI.
The GUI provides two main workflows:
Main Tab:
- Visual layer editor with add/remove/reorder
- Real-time unwrapped toolpath preview
- Parameter forms for mandrel, tow, and machine settings
- Export to G-code or save as
.windproject file
Stream Tab:
- Serial port selection and connection management
- Manual G-code command input for testing
- File streaming with pause/resume/cancel controls
- Real-time position tracking and status updates
# Run GUI in development mode
cd fiberpath_gui
npm install
npm run tauri dev
# Run tests
pytest # Python tests
cd fiberpath_gui && npm test # TypeScript tests
# Run API server
fiberpath-api --port 8000 # Requires fiberpath[api] installFiberPath is organized as a planning core and a machine-protocol library, fronted by three parallel interfaces (GUI, CLI, API):
βββββββββββββββββββββββββββββββββββββββββββββββββββ
β Desktop GUI (Tauri + Svelte) β
β β’ Visual layer editor β’ 2D preview canvas β
β β’ Machine control panel (connect/stream/e-stop) β
βββββββββββββββββββββββββ¬βββββββββββββββββββββββββββ
β HTTP (typed client; polls a job resource)
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββ
β Local API sidecar (FastAPI) β bundled in app β
β β’ Planning / validation / plot endpoints β
β β’ Machine control: owns the serial port, β
β /machine/* routes + background job runner β
ββββββββββββ¬ββββββββββββββββββββββββββββββ¬βββββββββββ
β imports β uses
βΌ βΌ
ββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββ
β Core Engine (Python) β β marlin-host (PyPI library) β
β β’ Winding path planning β β β’ Marlin serial-protocol β
β (hoop / helical / skip) β β host: reliable framing, β
β β’ Layer strategies β β handshake, M112 e-stop β
β β’ G-code generation β β β
ββββββββββββββββββββββββββββββ ββββββββββββββββββββββββββββββ
β² β²
ββββββββββββββββ¬ββββββββββββββββ
β imports
βββββββββββββββββββββββββββ΄βββββββββββββββββββββββββ
β CLI (Typer + Python) β
β β’ plan β’ plot β’ simulate β’ stream β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Design Principles:
- GUI, CLI, and API are parallel interfaces over the same Core Engine and
marlin-hostlibrary - The desktop GUI drives a bundled local API over HTTP β no separate server to run, and no bespoke subprocess protocol
- The sidecar owns the serial port; the GUI polls a job resource for streaming progress rather than holding the connection itself
- Machine I/O lives in
marlin-hostβ a standalone, conformance-tested library, kept independent of FiberPath - Core is deterministic and thoroughly tested
- Modular architecture lets each component be used independently
See Architecture Documentation for detailed design rationale.
FiberPath uses XAB rotational-axis output in built-in workflows:
X= Carriage position (linear, mm)A= Mandrel rotation (rotational, degrees)B= Delivery head rotation (rotational, degrees)
Legacy XYZ programs should be re-generated under current versions. Simulation and plotting reject auto-detected XYZ files with an explicit error so stale programs are surfaced early.
Comprehensive documentation is available at fiberpath.org/fiberpath:
- Getting Started Guide β Installation and first steps
- Architecture Overview β System design and components
- Usage Guides β Visualization, streaming, WIND format
- API Reference β Core functions and CLI commands
- GUI Documentation β Desktop application architecture
- Development Guide β Contributing, tooling, release process
Contributions are welcome! FiberPath is actively developed and maintained.
Before contributing:
- Read the Contributing Guide
- Check existing issues and pull requests
- Open an issue to discuss major changes before implementing
Development setup:
git clone https://github.com/fiberpath/fiberpath.git
cd fiberpath
uv pip install -e .[dev,cli,api]
pytest
cd fiberpath_gui
npm install
npm testCode standards:
- Python code follows PEP 8 (enforced by CI)
- TypeScript/Svelte follows the project type-check and lint configuration
- All new features require tests and documentation
- Commit messages use conventional commits format
See Development Documentation for tooling, CI/CD, and release process details.
FiberPath is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0).
This means:
- β Free to use, modify, and distribute
- β Source code must be made available to users
β οΈ Network use (e.g., hosting as a service) triggers copyleft
See LICENSE for full terms.
Questions? Open an issue or check the documentation.
Found a bug? Report it on GitHub Issues with steps to reproduce.