What the key is

Commercial use of Carnival3 needs a license. With the license you receive a license key: one long line of text that starts with C3L1.. It names the licensee, the domains it covers (each with all its subdomains), the premium modules it includes and, for a license with an end date, the last valid day.

  • The key is signed. Carnival3 checks the signature with a public key built into the code, so a changed key is rejected.
  • The check runs on your own server, offline. Carnival3 never contacts a license server, sends nothing anywhere, and cannot be switched off from outside.
  • Nothing is ever turned off. Without a valid key the site, the admin, every module and the static export keep working. Staff only see a notice in the admin. Visitors never see anything.

Where to paste it

Either place works; use one of them.

  1. Admin > Settings > License (administrators): paste the whole key in License key and click Save. Line breaks and spaces that crept in while copying are ignored. The table above the field shows at once what the key says.
  2. LICENSE_KEY in .env (or your host's environment variables): handy when the same configuration is deployed to several servers. When it is set, it wins over the field in Settings, and the License tab says so. Restart the server after changing it.

To check a key without the admin, run bun run cli license:verify <key>. It prints what the key contains and its state for the current APP_URL; it changes nothing.

Which domain counts

The key is matched against the host name in APP_URL (.env), the address Carnival3 uses for links in emails and the sitemap. A key for example.com covers example.com, www.example.com and shop.example.com; it does not cover example.org. Ports and paths do not matter.

localhost, 127.0.0.1, ::1 and any *.localhost name count as development: no key is needed and no notice is shown.

So APP_URL must be the site's real address. When it is not set, Carnival3 falls back to http://localhost:3000 and the license check sees a development install. If the admin is then opened at a public address, staff see "APP_URL is not set for this site" in the admin header and on the Dashboard, and Settings > License explains that the state is only development because of it. Set APP_URL and restart.

Ask for keys for the bare domain, for example acme.com: it covers www.acme.com and every other subdomain. A key for www.acme.com does not cover acme.com.

What each state means

StateWhenWhat staff see
LicensedThe key is valid, covers the domain in APP_URL and has not expired.Nothing.
DevelopmentAPP_URL is localhost (see above), with or without a key.Nothing.
UnlicensedNo key in Settings or in LICENSE_KEY."Unlicensed: no license key" in the admin header, and an item under Needs attention on the Dashboard.
InvalidThe text is not a Carnival3 key, is incomplete, or was changed after it was issued."Invalid license key" in the header and on the Dashboard.
Wrong domainThe key is genuine but issued for other domains than the one in APP_URL."License key is for another domain" in the header and on the Dashboard.
ExpiredThe key's last valid day has passed."License expired" in the header and on the Dashboard.

The header notice is shown to every staff member on admin pages; for administrators it links to Settings > License. It is never part of the public site, of cached pages or of a static export.

Premium modules

Paid modules are delivered to customers as ordinary module folders (modules/<id>/) and mark themselves with premium: true. When such a module is enabled but the key does not include it, Settings > License lists it under Enabled but not licensed and the Dashboard shows an item under Needs attention. The module keeps working. A key that includes all premium modules covers any you add later.

Renewing or changing a key

Paste the new key over the old one and save (or change LICENSE_KEY and restart). Moving the site to another domain needs a key for that domain: change APP_URL first, then ask for a key that covers the new address.