# Licensing

Source: https://docs.lightair.app/developers/core/licensing

> lightair-core and the desktop app are dual-licensed, GPL-3.0-or-later or commercial terms. What that means for apps, forks and the packages you publish.

In short:
- lightair-core and the desktop app can be used under the GPL, version 3 or later, or under a commercial licence from the copyright holder.
- Distribute something built on them under the GPL and you publish its source under the GPL. For anything else, ask for a commercial licence.
- The Lightair name, logo and icon aren't licensed under either. A fork carries its own name and icon.
- A package you publish carries its own licence, given in its manifest as an SPDX expression.

Two of Lightair's repositories are public, and both are **dual-licensed** the same way:

| Repository | What it is |
|---|---|
| [Lightair-Project/lightair-core](https://github.com/Lightair-Project/lightair-core) | The shared crates ([Crates](/developers/core/crates)) |
| [Lightair-Project/lightair](https://github.com/Lightair-Project/lightair) | Lightair, the desktop app |

You may use either under one of two licences:

1. **The GNU General Public License, version 3 or (at your option) any later version**
   (`GPL-3.0-or-later`). This is the licence everyone gets: use it, study it, change it and share
   it, on the GPL's terms. Those include publishing the source of anything you distribute that's
   built on it, under the GPL.
2. **A commercial licence from the copyright holder**, for use the GPL doesn't allow, such as a
   product whose own source isn't published. Ask the copyright holder through GitHub at
   [github.com/MoonGoblinDev](https://github.com/MoonGoblinDev).

The copyright holder of both is Bregas S. Wicaksono (MoonGoblin). Each repository's
`LICENSING.md` is the authoritative text; the full GPL is in its `LICENSE` file.

## How Lightair uses them

| Product | Licence it uses lightair-core under |
|---|---|
| Lightair, the desktop app | GPL-3.0-or-later |
| Lightair Live and Lightair Editor, the mobile apps | The copyright holder's commercial terms |

The GPL binds people who receive the code under it. It doesn't restrict the copyright holder, who
also licenses the code on other terms.

## Build an app on the crates

- **Under the GPL:** you can build anything on the crates. If you distribute it, you publish its
  source under the GPL too.
- **Under a commercial licence:** for an app whose source you don't publish, ask the copyright
  holder.

lightair-core's dependencies keep their own licences, and none is GPL-, LGPL- or AGPL-only. Files
in the repositories written by others are under permissive licences that keep their own notices;
each repository lists them (lightair-core in `docs/licence-audit.md`, the desktop in its
`LICENSING.md`).

## The name and the logo

"Lightair" and the Lightair logo and app icon are trademarks of Bregas S. Wicaksono (MoonGoblin).
Neither licence grants any right to use them; the GPL's section 7(e) allows declining trademark
rights, and both repositories do. The desktop's brand files are all rights reserved.

So you may build, change and share Lightair under the GPL, but a version you distribute that isn't
the owner's must carry its own name and icon. Saying factually that your work is built on Lightair
or Lightair Core is fine.

## Packages

A [package](/developers/extend/packages) you make is yours, under the licence you choose. Give it
in the manifest's `licence` field (`license` is accepted too) as an SPDX licence expression:

```json
{
  "licence": "MIT"
}
```

Before a catalog lists a package, its licence check requires:

- a `licence` that's a valid SPDX expression, such as `MIT`, `CC-BY-4.0` or `MIT OR Apache-2.0`;
- a `LICENSE`, `LICENCE` or `COPYING` file at the package's top when the package holds code
  (programs, Wasm, or JavaScript and HTML in a widget, extension or helper).

A font whose embedding permission is marked restricted can't be shared in a package. When the
manifest says OFL and a font in it doesn't mention the Open Font License, the check adds a note
asking you to check the font's licence.

Lightair's licences don't include a special exception for packages. If how the GPL applies to your
package matters to you, ask the copyright holder.

## Contributions

Because the copyright holder licenses both repositories on two sets of terms, a contribution can
only be accepted from someone who agrees that it may be licensed both ways. See
[Contributing](/developers/core/contributing).

## Related

- [Crates](/developers/core/crates)
- [Contributing](/developers/core/contributing)
- [Publish a package](/developers/extend/publish)
