Skip to content

App Builder

Build custom apps with AI assistance using a preview-first workflow.

Overview

The App Builder is Niuton's visual development environment for creating custom apps. It combines AI code generation with interactive editing tools.

Workflow

1. Describe your app → AI generates code
2. Full-screen preview → See the result immediately
3. Right-click to edit → Context-aware modifications
4. Chat with AI → Refine iteratively
5. Save → App appears in your dock

Interface

  • Full-screen preview — Your app runs at full size
  • Floating toolbar — Glassmorphism style, always accessible
  • Floating chat — AI conversation at the bottom
  • Slide-out editor — Code editor (42% width, right side)
  • Undo/Redo — Full history with Ctrl+Z / Ctrl+Y

Right-Click Context Editing

Right-click any element in the preview to:

  1. See the element tag and class (e.g., div.card-header)
  2. Get 12 AI-suggested modifications based on element type
  3. Choose from 8 quick color options
  4. Navigate to parent elements
  5. Enter custom modification instructions

AI Pipeline

StepModelPurpose
Generateqwen3-coderCreate initial app from description
Modifyqwen3-coderApply targeted changes
Auto-Fixqwen3-vlScreenshot analysis → automatic correction

Quick Fix Bar

After generation, 5 common fixes appear:

  • Zentrieren (Center)
  • Kompakter (More compact)
  • Mehr Abstand (More spacing)
  • Groessere Schrift (Larger font)
  • Farben anpassen (Adjust colors)

CSS Component Library

Apps built with the App Builder can use niuton-app.css classes:

html
<div class="n-app">
  <div class="n-toolbar">
    <h1>My App</h1>
    <button class="n-btn n-btn-primary">Action</button>
  </div>
  <div class="n-content">
    <div class="n-card">Card content</div>
  </div>
</div>

Template Library

6 built-in templates to start from:

TemplateDescription
RechnerCalculator
TodoTask list
NotizenQuick notes
TimerCountdown timer
WetterWeather display
EinheitenUnit converter

Saving & Publishing

  • Drafts — Auto-saved while editing
  • Save — Creates an app entry in the database
  • Dock — App immediately appears in the user's dock
  • Delete — Available via context menu or Aurora

Technical Details

  • Apps are single-file HTML/CSS/JS stored in the database
  • Each app runs in an isolated iframe
  • Custom apps track created_by_user_id for ownership
  • System apps (is_system=true) cannot be modified

v3.9 Improvements v3.9

13 fixes and improvements applied:

#FixDescription
1TimeoutExtended from 90s to 180s for complex apps
2Code Extraction5-strategy extraction: html, php, any block, DOCTYPE fallback, trim
3PHP Validationphp -l syntax check after extraction
4System PromptExplicit "no PHP" rule + niuton-app.css class reference
5Preview Sync100ms debounce for snappier updates
6Element Contextnth-child disambiguation for same-tag siblings
7PHP WarningWarns if generated code contains PHP
8CSS Auto-CorrectLevenshtein distance <= 2 for fuzzy class matching
9Context MenuTrimmed to 6 most relevant suggestions
10Modify Precision+-20 lines focused context instead of full file
11Form TemplateNew "Formular" template with n-form-group, n-input
12Error MessagesSpecific errors instead of generic "Fehler"
13Loading TimerReal-time seconds counter during generation

v3.12 Updates v3.12

Dynamische Modelle

Die Modell-Auswahl im App Builder wird jetzt dynamisch vom AI-Provider geladen:

  • /v1/models Endpoint — Modell-Liste wird live vom LM Studio / AI-Provider abgefragt
  • Automatische Aktualisierung — Neue Modelle erscheinen automatisch ohne Code-Aenderung
  • Fallback — Wenn der Provider nicht erreichbar ist, werden die zuletzt bekannten Modelle verwendet

AI-Powered Cloud Desktop OS