# Packages

Source: https://docs.lightair.app/desktop/chat-and-widgets/packages

> Install widgets, scenes, looks, sounds and plugins as packages from Lightair's catalog, community catalogs or files, and add a whole package to a scene at once.

In short:
- Open **Window › Packages**. **Catalog** lists what you can install; **Installed** lists what you have.
- A package that asks for no permissions installs in one click. Anything else shows what it adds and asks first.
- On a package's page, **Add all to scene** adds every widget at once, in one group named after the package.
- Install a file with **File › Install Package…** or by dropping it on the window. Lightair checks the catalogs for updates every six hours.

In the app: Window › Packages; File › Install Package…; Packages › + › Catalogs…

A package brings things made for Lightair into your shows: widgets, scene templates, looks and
effects, transitions, sounds, media, automations and plugins. You install it once on your
computer, and each show remembers the packages it uses, so it opens the same elsewhere.

## Open the panel

Open **Window › Packages**. It has two tabs, each a grid of cards with the package's picture, its
name and what it holds:

- **Installed**: the packages on this computer. Search them with **Search installed**.
- **Catalog**: the packages in the catalogs you use, starting with Lightair's own. Search them with
  **Search the catalog**.

When a grid holds more than one kind of package, filters appear above it: **All**, **Widgets**,
**Scenes**, **Looks**, **Sounds**, **Media** and **Plugins**.

The **+** button holds **Install from a file…**, **Catalogs…**, **Check for updates** and **Show
packages in Finder** (**Show packages in Explorer** on Windows).

## Install from a catalog

1. Click the **Catalog** tab and click a package's card.
2. Look over its page: its pictures, publisher, what it holds, its description, what it asks for
   in plain words, and **About** (version, what it works on, where it's from).
3. Click **Install**.

A package that asks for no permissions installs at once: its page already showed everything.
Anything else opens the install screen first (below). While it installs, the button says
**Installing…**; then the package's page opens in **Installed**. A package from Lightair's catalog
carries a tick beside its publisher.

## Install from a file

Choose **File › Install Package…** or **+ › Install from a file…**, or drag the file onto the
Lightair window or the Packages panel (it shows **Drop to install**). Lightair installs:

- `.airpkg` files (a package in one file)
- package folders
- `.lwidget` files (a widget package)

Files always get the install screen.

## The install screen

It's titled with the package's name and version, for example **Install “Neon Pack” 1.2.0?**, and
says:

- what it adds;
- what it can do, one line per permission, or that it asks for no permissions;
- what it may ask for later, only when you turn on a feature that needs it, and you decide then;
- where it's from, its size, licence and author. "Checked by Lightair" means it came from
  Lightair's catalog. A package from a community catalog, a file or a git repository says it isn't
  checked by Lightair.

A plugin that needs full access to the computer gets a second question, **Give “…” full
access?**. Such a plugin runs like any app you install: it can read your files, use the network and
your devices, and Lightair can't limit or watch what it does. The **Give full access** button waits
3 seconds before you can press it, so you have time to read.

## Use an installed package

Click a card in **Installed** to open the package's page: its picture, name and description, and
**Add all to scene**.

- **Widgets** are shown as live previews. Click one to add it to the scene. To add several, tick
  them (the circle that appears on hover), then click **Add 3 to scene** (with your count).
- **Other contents** are rows, each with its action: **Add scene** (adds a template as a new
  scene), **Add** (pictures and media), **Add to soundboard** (each sound a pad), **Add to
  selected** (a LUT, as an effect on the selected object), and **Add to automations** (added
  switched off, for you to look over first).
- **PERMISSIONS** lists what the package may do, each with a switch, green while it's allowed. Turn
  one off to take it back. Those marked **Asks when needed** are asked for while it runs.
- **About** shows the version, size, where it's from, its author and licence.

The **⋯** menu has **Show in Finder** (**Show in Explorer** on Windows), **Remove unused from this
show** and **Remove…**. If several versions are installed, you can remove one.

Widgets from installed packages are also in the Add object list, under **Widgets › From
packages**.

## Add all and package layouts

**Add all to scene** (also on a card's picture when you hover it) adds every widget of the package
in one step, inside **one group named after the package**, for example "Added 10 widgets in Neon
Pack". It's one undo step.

- If the package says where its widgets go, they're placed as its designer laid them out, scaled to
  fit each canvas. Widgets the layout doesn't place go into the group hidden, ready to switch on.
- If it doesn't, Lightair packs the widgets in rows at their own sizes, scaled down together until
  they fit each canvas without overlapping.

Each widget then works like any other: see [Widgets](/desktop/chat-and-widgets/widgets).

## Updates

Lightair checks the catalogs when it opens and every six hours; **+ › Check for updates** checks
now. When updates are waiting, a line above the **Installed** grid says how many, with **Update
all**, and each card has an **Update** badge. A package's page says **Version 1.3.0 is out** (with
the real number) and what more the new version asks for, if anything.

A show keeps the exact version of each package it uses, so a show doesn't change until you update.

If a catalog withdraws a version, Lightair switches it off and says why on its card and page.

## A show that needs packages

When the open show uses packages that aren't installed, the panel says so in one line ("This show
needs …") with **Install**. What comes from a missing package is missing from the show until it's
installed. **Remove unused from this show** drops packages the show lists but no longer uses.

To take a show to another computer with everything it uses, choose **File › Export Workspace with
Packages…**. **File › Export as Package…** makes a package of your own from the selected objects
or a scene: see [Publish a package](/developers/extend/publish).

## Community catalogs

Anyone can publish a catalog. To add one:

1. Choose **+ › Catalogs…**.
2. Type the catalog's address (`https://…`) and add it.
3. Lightair asks **Add the catalog “…”?** and shows the catalog's key. Packages from it aren't
   checked by Lightair. If the catalog's own page shows a different key, don't add it.

The Catalogs sheet lists each catalog and how it's doing. Remove one with its remove button: what
you installed from it stays.

## lightair:// links

On a Mac, websites and other apps can open Lightair with a link:

| Link | What it does |
|---|---|
| `lightair://install?id=com.example.neon-pack` | Opens the install screen for that package from your catalogs. It can also name a `version` and a `catalog`. |
| `lightair://catalog?url=https://…` | Asks whether to add that catalog. |
| `lightair://install?git=https://…&rev=v1.0.0` | Installs a package straight from a git repository at that tag, branch or commit. |

A link never installs anything by itself: you always see the install screen or the add-catalog
question first.

## From the command line

Search every catalog you've added with
[packages.search](/developers/remote-api/packages.search):

```sh
lightair call packages.search '{"query": "lower third"}'
```

[packages.install](/developers/remote-api/packages.install) opens the same install screen in
Lightair when a package asks for permissions.

## Related

- [Widgets](/desktop/chat-and-widgets/widgets)
- [Make a package](/developers/extend/packages)
- [Publish a package](/developers/extend/publish)
