Skip to content

Editor ​

The editor lets you build your application using layouts and visual logic. It consists of several panels that serve different purposes. Every panel can be resized, and its size is remembered.

Overview of the Luna Park editor

The Workspace ​

The Workspace buttons, at the top left of the editor, open the views that apply to the whole project. Each view opens as a tab in the main view, next to your files.

Workspace buttons above the explorer, with the Tokens workspace open in the main view
WorkspaceContent
TokensDesign tokens (colors, fonts, lengths) and the responsive strategy.
LibrariesBuilt-in node libraries, plugins, and npm packages.
SettingsGeneral (app name, history mode), Progressive Web App (see Web App), Backend (proxy, cookie salt), the Cookies set in the editor, and the Stores (reset them, or clear their persisted values).
InjectionCode injected in the app: Head, Body, Script, and Style (see Advanced Style).

Each workspace is split into sections: the toolbar at its top jumps to a section.

The Explorer ​

The explorer is located at the top left of the editor, below the Workspace. It lists the files of your project. Create a new file with a right-click, open it with a double-click, rename it with F2, and delete it with the Del key. You can create folders to better organize your project, but the structure does not affect the logic of your application.

The sort button switches between sorting by type and by name.

Explorer panel with the project files

Options Panel ​

The options panel is located at the bottom left of the editor. Its content depends on the open file:

  • for a page or component, it displays the layout tree (use Collapse layout to fold it), see Builder;
  • for a script, a route, or a store, it lists its Local Variables and Functions.
Options panel showing the layout tree of a component

Tabs ​

Each opened file gets a tab above the main view. Right-click a tab to Close it, Close other tabs, or Close all tabs.

The Inspector ​

The inspector is located on the right side of the editor. It displays information related to the selected element (a file, a layout element, a logic node, etc.). Use the pin button to keep it on the current element while selecting others.

Inspector displaying the properties of a layout element

The Console ​

The console is located at the bottom of the editor. It lets you log values to debug your application. To display a value in it, use the Log node in the logic editor. The value is also sent to your browser's console.

The bottom panel has a second tab, Templates, listing ready-made blocks provided by your plugins. Drag one into your layout to use it.

Point your cursor at the panel's border and drag it to resize it, or use the toggle button to hide it.

Console panel with logged values

The Main View ​

The main view is the central part of the editor. It displays the working file. For a page or component, three modes are available:

ModeDescription
BuilderEdit the layout visually. Side panels give access to Quick style, Properties, Events, Rendering, Classes, Style, Media query, and Hover. See Builder to add elements and Events to react to clicks.
PreviewUse the component as in the final app.
LogicEdit the component's visual scripting graph.

Other options let you Open preview in new window, Block interactions, Lock preview mode, and show or hide the insert mode.

Main view in builder mode

Press Shift twice to open the Navigator:

  • press F for the Finder: search any file or element of the project, move with the arrow keys and open with Enter. Shortcut: Ctrl + Shift + F;
  • press S for Sidekick, the AI assistant. Shortcut: Ctrl + Shift + X.

Esc closes it.

The Top Bar ​

Project-wide views (tokens, libraries, settings, injection) are in the Workspace.

ButtonContent
Save / Auto-saveSave the project, or toggle automatic saving.
Undo / RedoUndo or redo the last change.
Sidekick AIOpen or close Sidekick, the AI assistant.
CompileDeploy or export the app (see Compilation).
PluginsOne button per installed plugin, with its Config and Settings.
HistoryLocal undo snapshots of the current file. They are not saved.
DebugImport/Export: copy the whole project to the clipboard, or paste one.
FlagsEditor flags (Autosave, Immersive, Light Mode) and session flags (animation, debug output...).
HelpLinks to Discord, YouTube, and this documentation.

The desktop app adds the MCP server and Native app buttons.

Keyboard Shortcuts ​

ContextShortcutAction
EverywhereCtrl + SSave
EverywhereCtrl + Z / Ctrl + YUndo / Redo
EverywhereShift ShiftNavigator
EverywhereCtrl + Shift + FFinder
EverywhereCtrl + Shift + XSidekick
Explorer, layout tree, variablesCtrl + X / C / VCut / Copy / Paste
Explorer, layout tree, variablesF2Rename
Explorer, layout tree, variablesDelDelete
BuilderHold CtrlDrag elements quickly
Logic graphSee The Graph

Right-click a layout element for more actions: Create before, Create after, Create inside, Wrap in component, Unwrap and delete, Copy Style, and Paste Style.

Immersive Mode ​

Immersive mode hides the side panels (explorer, inspector, console) to maximize the available space on the canvas. The panels reappear when you need them.

Enable it by checking Immersive in the Flags menu of the top bar.

Once closed, the panels appear as a thin bar with their name on the edges of the screen. Hover over a panel's bar to reopen it.

Immersive mode is ideal when working on complex layouts or when you want an unobstructed view of the canvas.

Editor in immersive mode with panels hidden