System Requirements
Node.js
Version 20 or newer required
npm
Included with Node.js installation
Disk Space
~1GB for dependencies and browser binaries
Operating System
Windows, macOS, or Linux
Installing Node.js
AutoMFlows requires Node.js 20 or newer. Choose your operating system below:Windows
- Official Installer
- winget
- Chocolatey
- nvm-windows
- Download the LTS (20.x) installer from nodejs.org
- Run the installer and follow the prompts
- Restart your terminal after installation
macOS
- nvm (Recommended)
- Homebrew
- Official Installer
Install nvm and Node.js 20:
Linux
- nvm (Recommended)
- Ubuntu/Debian (NodeSource)
- Package Manager
Install nvm and Node.js 20:
Verify Installation
After installing Node.js, verify the installation:Installing AutoMFlows
Once Node.js is installed, follow these steps to set up AutoMFlows:Clone the repository
Clone the AutoMFlows repository from GitHub:
AutoMFlows uses an npm workspaces monorepo structure with
backend, frontend, shared, and mcp-server packages.Install dependencies
Install all workspace dependencies:This command installs dependencies for all four workspaces:
- backend: Express server with Playwright execution engine
- frontend: React + ReactFlow visual editor
- shared: TypeScript types and utilities
- mcp-server: Model Context Protocol server for AI/IDE integration
The backend package has a postinstall script that automatically installs Playwright Chromium browser.
Build the shared package
The shared package must be built before running the application:This compiles TypeScript types and utilities that both backend and frontend depend on.
Running AutoMFlows
AutoMFlows provides convenient startup scripts that handle the entire launch process:Using Startup Scripts (Recommended)
- Unix/Linux/macOS
- Windows PowerShell
The startup scripts automatically:
- Install dependencies if needed
- Install Playwright browsers (Chromium, Firefox, WebKit)
- Build the shared package
- Kill processes on conflicting ports (3003, 5173)
- Start backend and frontend servers concurrently
- Display access URLs and LAN IP (with
--lanflag)
LAN Access
To access AutoMFlows from other devices on your network, use the--host or --lan flag:
Manual Startup
You can also start the servers manually using npm workspace scripts:- Development Mode
- Production Build
Start backend and frontend in separate terminals:Terminal 1 - Backend:Terminal 2 - Frontend:For LAN access (frontend):
Available npm Scripts
The rootpackage.json defines these workspace scripts:
Accessing the Application
Once the servers are running, access AutoMFlows at:Frontend
Visual workflow builder
http://localhost:5173Backend API
RESTful API server
http://localhost:3003Swagger Docs
Interactive API documentation
http://localhost:3003/api-docsDocker Installation
For containerized deployment, AutoMFlows includes Docker support:Docker Configuration
Thedocker-compose.yml configuration:
Screenshots are persisted to the
./screenshots directory on your host machine.Workspace Structure
AutoMFlows uses npm workspaces for monorepo management:Environment Configuration
AutoMFlows works out of the box with sensible defaults. For advanced configuration:Backend Configuration
The backend uses these environment variables:PORT: Backend server port (default: 3003)NODE_ENV: Environment mode (developmentorproduction)HOST: Bind address (default:localhost, set to0.0.0.0for LAN access)
Frontend Configuration
The frontend (Vite) uses:- Default port: 5173
- Use
--hostflag for LAN access - Vite automatically finds next available port if 5173 is in use
Troubleshooting
npm install fails
npm install fails
Ensure you have Node.js 20+ installed:If the version is correct but install still fails, try:
Shared package build fails
Shared package build fails
Playwright browsers fail to install
Playwright browsers fail to install
Manually install Playwright browsers:If that fails, you may need to install system dependencies:
Port already in use
Port already in use
The startup scripts automatically kill processes on ports 3003 and 5173. If this fails:Find and kill the process manually:Or change the port:
- Backend: Set
PORTenvironment variable - Frontend: Vite will automatically use next available port
Backend starts but frontend doesn't connect
Backend starts but frontend doesn't connect
Check that the frontend is configured to connect to the correct backend URL. The frontend should automatically connect to
http://localhost:3003 by default.Verify the backend is accessible:Permission denied on start scripts
Permission denied on start scripts
Unix/Linux/macOS:Windows PowerShell:
Next Steps
Quickstart
Create your first workflow in minutes
Node Types
Explore 20+ available node types
Plugin Development
Build custom nodes to extend functionality
API Reference
Interactive Swagger API documentation
For additional help, visit the GitHub repository or check the server logs for detailed error messages.
