---
title: UI Builder compiler
project: Total.js V4
version: 0.0.99
section: guides
language: en
license: MIT
url: https://totaljs.es/docs/total-js-v4/0-0-99/guides/ui-builder-compiler/
updated: 2026-11-16T15:41:15.818Z
---

# UI Builder compiler

> Prepare a schema of the UI Builder designer for production with F.uibuildercompiler().

`F.uibuildercompiler(opt, [callback])` prepares a schema from the UI Builder designer for production. It finds the components used in the schema, resolves their URLs, and with `download: true` embeds their HTML, so the client does not need to download them.

```js
exports.install = function() {
	ROUTE('POST /api/apps/', async function() {
		var $ = this;
		var app = await F.uibuildercompiler({ schema: $.body.schema, download: true });
		$.json(app);
	});
};
```

Use `local: true` when the components are already available on the client; then only the list of used components is returned.
