Package Exports
- @bourgils/forward
- @bourgils/forward/src/cli/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@bourgils/forward) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
π forward (CLI: fwd
)
Isolated, throwaway runtime for modern frontend projects No
node_modules
, no pollution β just run, dev, and it disappears.
β¨ Features
- π§Ό Run any project without installing deps locally
- π§ͺ Use
vite
,react-scripts
,next
, etc. with hot reload - π Dependencies are installed in a temp session, never your project
- ποΈ When the server stops, everything is cleaned
- π§ Supports
install
,uninstall
, and custom commands
π Quick Start
npm install -g @bourgils/forward
Inside a project with a package.json
fwd env init # Initialize environment and detect pipe & package manager
fwd env show # Show current environment configuration
fwd env set # Set specific environment configuration
fwd env reset # Reset environment to default state
fwd doctor # Check system compatibility and configuration
fwd dev # β vite dev or next dev
fwd run build # β npm run build (in temp env)
fwd exec echo Hello
fwd add react react-dom
fwd remove react
π§ CLI Commands
Command | Alias | Description |
---|---|---|
fwd env init |
Initialize environment and detect pipe & pkg manager | |
fwd env show |
Show current environment configuration | |
fwd env set |
Set specific environment configuration | |
fwd env reset |
Reset environment to default state | |
fwd doctor |
Check system compatibility and configuration | |
fwd run [script] |
Run npm script from package.json | |
fwd exec [cli] [cmd [args...]] |
Execute any raw command in session | |
fwd add |
Add a package | |
fwd remove |
Remove a package |
π How it works
- Creates an isolated environment for your project
- Manages dependencies in a temporary location
- Provides runtime checks for compatibility
- Launches your pipe (vite, next, etc.) with full hot reload support
- Cleans everything after Ctrl+C
π§ͺ Supported pipes (auto-detected)
- vite
- next
- nuxt
- react-scripts
- bun
- astro
Environment not detected? Just use:
fwd env set
π‘ Why?
Because node_modules
folders are huge.
And every time you clone a project, you run npm install
and forget to clean.
With fwd, you just run it and forget it β nothing is written in your project unless you want it.
π Dev mode
Want to test locally?
git clone https://github.com/bourgils/forward
cd
npm install
npm link
Then go into any project and run:
fwd env init
fwd dev or fwd start
π«Ά Author
Made with β€οΈ by @bourgils
πΊοΈπ§ Roadmap
π§ Planned Features
- π§Ή Code cleanup & architecture: refactor into classes/services for better structure β coming soon
- β‘οΈ Remote execution UX: support
fwd dist [github_repo]
to fetch & run a repo temporarily β coming soon