Overview
When you start ServFlow Pro, you choose how to run it:- Dashboard Mode — Visual UI for building and managing APIs interactively
- Headless Mode — YAML-first approach for production deployments and code-based workflows
Dashboard Mode
Dashboard Mode starts the visual web interface alongside the API server. This is the recommended mode for:- Learning ServFlow — Visual feedback helps you understand how workflows connect
- Rapid prototyping — Quickly build and test APIs without writing configuration files
- Interactive development — See changes immediately in the builder interface
Starting Dashboard Mode
| Server | Default Port | Purpose |
|---|---|---|
| API Server | 8080 | Handles incoming API requests |
| Dashboard | 3000 | Visual builder interface |
What You Get
- Visual workflow builder — Drag-and-drop interface for creating API workflows
- Real-time editing — Changes saved in the dashboard are immediately available
- Secrets management UI — Store and manage API keys through the interface
- Integration management — Configure database connections and external services visually
When to Use Dashboard Mode
| Use Case | Why Dashboard Mode |
|---|---|
| New to ServFlow | Visual interface provides guided experience |
| Building new APIs | Faster iteration with immediate visual feedback |
| Debugging workflows | See the flow structure and test interactively |
| Team demos | Easy to show and explain API logic visually |
Headless Mode
Headless Mode runs the API server without the dashboard interface. ServFlow reads YAML configuration files directly from yourconfig_folder and serves the defined APIs. This is the recommended mode for:
- Production deployments — No UI overhead, minimal attack surface
- CI/CD pipelines — Deploy APIs from version-controlled YAML files
- Code-first workflows — Write configurations in your editor with full control
- Containerized environments — Smaller footprint without dashboard dependencies
Starting Headless Mode
8080). No dashboard is available.
What You Get
- Lightweight execution — Only the API server runs
- File-based configuration — All APIs defined in YAML files
- Version control friendly — YAML files can be tracked in Git
- Reproducible deployments — Same config files produce same behavior
When to Use Headless Mode
| Use Case | Why Headless Mode |
|---|---|
| Production deployment | No UI overhead, security-focused |
| GitOps workflows | YAML configs stored in repositories |
| Automated deployments | CI/CD pipelines deploy config changes |
| Resource-constrained environments | Lower memory and CPU usage |
Feature Comparison
Not all features are available in both modes. Here’s what each mode supports:| Feature | Dashboard Mode | Headless Mode |
|---|---|---|
| API execution | ✅ | ✅ |
| YAML config files | ✅ | ✅ |
| Visual workflow builder | ✅ | ❌ |
| Secrets management UI | ✅ | ❌ |
| Integration management UI | ✅ | ❌ |
| Metrics dashboard | ✅ | ❌ |
| OAuth integrations | ✅ (requires SQLite) | ❌ |
| File-based storage | ✅ | ✅ |
| SQLite storage | ✅ | ✅ |
Some dashboard features like secrets management and OAuth integrations require SQLite storage. See Configuration Reference for SQLite setup.
Typical Workflow: Dashboard to Production
A common pattern is to use Dashboard Mode during development, then deploy with Headless Mode:1. Develop with Dashboard
Start with the dashboard to build and test your APIs visually:config_folder.
2. Version Control Your Configs
The YAML files inconfig_folder are your source of truth. Commit them to Git:
3. Deploy in Headless Mode
In production, run without the dashboard:4. Update via CI/CD
When you need to update APIs:- Make changes in the dashboard (development environment)
- Commit the updated YAML files
- CI/CD pipeline deploys new configs to production
Importing Existing Configs
If you have existing YAML configurations and want to manage them in the dashboard with SQLite storage, use the--import-configs flag:
config_folder into the SQLite database, making them editable in the dashboard.
Choosing Your Mode
| Question | Recommended Mode |
|---|---|
| Are you new to ServFlow? | Dashboard Mode |
| Building APIs for the first time? | Dashboard Mode |
| Deploying to production? | Headless Mode |
| Using GitOps or CI/CD? | Headless Mode |
| Need visual debugging? | Dashboard Mode |
| Running in containers? | Headless Mode |
| Want full code control? | Headless Mode |
Next Steps
Quickstart (Dashboard)
Build your first API using the visual dashboard interface.
Quickstart (YAML)
Build your first API using YAML configuration files.
Configuration Reference
Explore all TOML configuration options for both modes.
Actions Overview
Learn about the actions available for your workflows.