Quick Start
Get up and running with Webui in under 5 minutes. This guide covers installation, project scaffolding, and launching your first interactive UI component.
1. Installation
Install the Webui CLI globally using your preferred package manager:
Verify the installation by checking the version:
2. Scaffold a Project
Create a new Webui project using the built-in scaffolding tool. This will generate a fully functional starter template with routing, theming, and component examples.
webui create --help to see all available templates including landing, admin, and blank.
3. Start the Dev Server
Launch the local development server with hot module replacement and live preview:
Open http://localhost:3000 in your browser. You'll see a fully interactive dashboard with pre-configured components, dark/light mode toggle, and responsive layouts.
4. Project Configuration
Webui uses a webui.config.js file at the root of your project. Here's a basic configuration example:
Environment Variables
Use .env.local for sensitive configuration. Webui automatically loads variables prefixed with WEBUI_:
| Variable | Type | Description | Default |
|---|---|---|---|
WEBUI_PORT |
Number | Dev server port | 3000 |
WEBUI_API_URL |
String | Backend endpoint | https://api.webui.io |
WEBUI_DEBUG |
Boolean | Enable verbose logging | false |
.env files to version control. Add them to your .gitignore immediately.
What's Next?
Now that you have a working project, explore these guides to extend your application:
- Learn how to build reusable Components with props and slots
- Configure Routing for multi-page applications
- Connect to external APIs using the Fetch Hook
- Deploy to production with Vercel or Docker