Generate a stylish app frontend
app_frontendBuild a polished, responsive front end for an app and host it instantly. Layouts: 'dashboard' (sidebar, animated KPI cards, live chart, searchable sortable table), 'crud' (a full create/edit/delete data manager for any record type with modal forms), 'chat' (an AI-chat style interface with typing indicator). Themes: glass (frosted, gradient), neon (terminal glow), paper (warm editorial), brutal (bold neo-brutalist). Includes dark/light mode, mobile drawer navigation and accessible controls. Runs on sample data out of the box and connects to your real API with api_base_url (crud: GET/POST/PUT/DELETE on /), data_url (dashboard JSON) or chat_endpoint (POST {message, history} returns {reply}). Output is plain HTML/CSS/JS you can edit with site_files. Pages run sandboxed, so settings are kept in memory only. Cost: 2 credits per call.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat | No | ||
| crud | No | ||
| name | Yes | App name | |
| theme | No | glass | |
| accent | No | #6366f1 | |
| layout | No | dashboard | |
| publish | No | ||
| site_id | No | Overwrite the front end of an existing site | |
| data_url | No | dashboard: URL returning {kpis, chart, table} | |
| dashboard | No | ||
| nav_items | No | Sidebar links. The first one shows the app; others are placeholder pages to wire up later | |
| api_base_url | No | crud: base URL of your REST API | |
| default_mode | No | auto | |
| chat_endpoint | No |