> For the complete documentation index, see [llms.txt](https://help.tellius.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.tellius.com/settings/kaiya-and-ai/kaiya-app-libraries.md).

# Kaiya App Libraries

When Kaiya generates an App, the generated code can call on third-party JavaScript libraries such as a mapping library, a charting library, a rich text editor. Under **Settings → Intelligence → Kaiya & AI → Kaiya App Libraries,** admins can register those libraries so generated Apps can actually load them at runtime.

<figure><img src="https://3138146484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM1pa9Nct9EmVU4Ol8Mol%2Fuploads%2Fp6Bs1TEEuYkg0vf5QfUJ%2Fimage.png?alt=media&amp;token=5e6be0fc-30dd-4ec2-9677-4c52273329f3" alt="" width="563"><figcaption></figcaption></figure>

A common set of npm libraries is already bundled with each Tellius release, so you don't need to upload those. This page is for anything beyond that set: custom libraries specific to your organization's apps, or ones not covered by the default bundle.

Libraries uploaded here are stored on the Tellius CDN and shared across three places at once — the Kaiya Apps preview, Settings, and the TSX generator. One upload covers all three; you don't register a library separately per surface.

### The libraries list

Registered libraries appear in a list on this page. Before anything is uploaded, the area reads **No libraries configured yet.**

From the list you can enable a library, disable it, or remove it. Disabling is the safer first step when you suspect a library is causing problems, since it leaves the files in place.

### Uploading a library

Click **Upload library**. It expects a UMD JavaScript bundle plus any companion assets it needs, so generated apps can reference the library at runtime.The dialog has two parts: a file drop zone and a name field.

<figure><img src="https://3138146484-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM1pa9Nct9EmVU4Ol8Mol%2Fuploads%2FTJ0BF2fGxNDVpATBVT00%2Fimage.png?alt=media&amp;token=f15c7a2b-3b98-4c0c-8e61-bcc8c584c1ce" alt="" width="563"><figcaption></figcaption></figure>

Drag files onto the drop zone, or click it to browse. The limits are **20 files per library, 5 MB each**, and the accepted types are `.js`, `.css`, fonts, images, and `.map`.

A library is usually more than one file, so upload everything it needs in a single go. The dialog spells out what each file type is for:

| File type             | Extension                                 | When you need it                                                                                                                                         |
| --------------------- | ----------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **JavaScript bundle** | `.js`                                     | **Required.** The UMD build of the library. This is what registers the global names that generated apps reference at runtime.                            |
| **Stylesheet**        | `.css`                                    | Needed only when the library ships visual styles — chart themes, editor toolbars, map controls. Without it, components still render but appear unstyled. |
| **Fonts**             | `.woff`, `.woff2`, `.ttf`, `.otf`, `.eot` | Include only when the stylesheet calls for custom typography, such as an icon font. Otherwise glyphs fall back to system fonts.                          |
| **Images & icons**    | `.png`, `.jpg`, `.svg`, `.gif`, `.webp`   | Include any icons, sprites, or illustrations the library or its stylesheet loads at runtime.                                                             |
| **Source maps**       | `.map`                                    | Optional. Helps when debugging the library in browser devtools, and safe to skip in production.                                                          |

The **UMD build** requirement is the part worth getting right. UMD (Universal Module Definition) is the build format that exposes the library under a global name rather than requiring an import statement. A library published only as an ESM or CommonJS build won't register correctly here. Most libraries ship a UMD file in their `dist` folder, often named something like `library.umd.js` or `library.min.js`.

**Library name**

Type a name in the **Library name** field. This appears in the libraries list and in app build logs.

Click **Upload library** to register it, or **Cancel** to discard. The **Upload library** button stays inactive until you have both attached at least one file and entered a name.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://help.tellius.com/settings/kaiya-and-ai/kaiya-app-libraries.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
