How add-ons work
FL450 add-ons extend the desktop app (Windows, macOS, Linux) — the browser version does not load them. There are three kinds:
- Aircraft — a new aircraft in the hangar, built on one of FL450's flight-model bases (performance, liveries, extra or replacement 3-D geometry).
- Scenery — 3-D objects placed anywhere in the world by latitude / longitude: buildings, landmarks, airport details, animated objects.
- Utility — tools that read the simulator and drive it: cockpit panels, trackers, checklists, integrations with your own web service.
You own the business side. You sell, deliver and license your add-on through your own store and checkout — FL450 takes no cut and never handles payments. What FL450 provides is the runtime, the listing that makes your add-on visible in the simulator's Marketplace and on /addons, and optional licence-key activation against your server.
.zip (and a licence key if you use one) → they install it with Add-ons → Install from .zip → FL450 loads it on the next start, after checking the key with your server.Quick start
Download the SDK & examples. An add-on is a folder:
my-addon/
fl450-addon.json the manifest
main.js ES module, default export = your add-on
textures/, data/ … anything else you need (load it with api.asset())
fl450-addon.json:
{
"id": "com.yourstudio.hello",
"name": "Hello FL450",
"version": "1.0.0",
"kind": "utility",
"entry": "main.js",
"minSimVersion": "1.11.0",
"author": "Your Studio"
}
main.js:
export default function (api) {
api.sim.on('touchdown', (t) => api.sim.toast(`Hello from ${api.manifest.name}: ${t.fpm} fpm`));
}
In FL450 desktop: Add-ons → Installed → Install folder…, choose my-addon, then Reload simulator. Edit, reload, repeat. When it's ready, pack it into a .zip.
The manifest
| Field | Meaning | |
|---|---|---|
id | required | 3–64 characters: lower-case letters, digits, . - _. Reverse-DNS is recommended (com.yourstudio.a321xlr). It's the install folder; a new version with the same id replaces the old one. |
name | required | Shown in the Add-ons list. |
version | required | Semantic version, 1.2.0. |
kind | required | aircraft, scenery or utility. |
entry | main.js | Your ES module, relative to the folder. |
minSimVersion | Older FL450 versions show “Update FL450” instead of loading it. | |
author, description, homepage | Shown in the simulator. | |
listing | The slug of your listing. The Marketplace then marks the add-on “Installed”. | |
license.verifyUrl | HTTPS endpoint of your licence server. When set, the add-on only loads after the pilot enters a key your server accepts. See Selling & licences. |
JSON schema for editor validation: /sdk/fl450-addon.schema.json.
The api object
Your module's default export (or a named register export) is called once at start-up with api. It may be async. Everything runs in the simulator page: you get the full web platform (fetch, Canvas, WebGL, Web Audio, localStorage) but no Node.js and no file system.
api.id, api.manifest | Your id and manifest. |
api.simVersion, api.sdk | FL450 version (e.g. 1.11.0) and SDK level (1). |
api.THREE | The simulator's three.js (r170). You can also import * as THREE from 'three' in any of your modules — it is the same instance. |
api.asset(path) | URL of a file in your add-on folder: new THREE.TextureLoader().load(api.asset('textures/roof.jpg')), fetch(api.asset('data/gates.json')). |
api.storage.get(key, default) / .set(key, value) | Persistent JSON storage, private to your add-on. |
api.log(...) | Console log prefixed with your id. |
api.sim, api.aircraft, api.liveries, api.scenery, api.ui | Below. |
Relative imports work as usual (import { x } from './lib/x.js'), so you can split your add-on into many modules.
api.sim
state()
A snapshot of the flight, or null before the first flight:
{ lat, lon, altFt, aglFt, iasKt, gsKt, vsFpm, hdg, pitch, bank, mach,
onGround, gearDown, flapsIdx, parkBrake, fuelLb,
aircraft: { id, name }, paused, simRate,
wind: { dirDeg, kt }, timeOfDay, // local hours, 13.5 = 13:30
autopilot: { on, lat, vert, hdg, alt, spd } }
on(event, fn)
flightStart | { id, mission } — a flight was started from the menu, a scenario, or a saved flight. |
frame | dt in simulated seconds, every frame while flying (not while paused). Keep it light. |
takeoff | Logbook record so far (departure, time). |
touchdown | { fpm, g, rating }. |
flightEnd | The finished logbook record (route, block / air time, distance, landing, status). |
aircraft | The aircraft type changed. |
model | The player's 3-D model was (re)built. |
on() returns a function that removes the listener.
act(command)
Runs a simulator command — the same as the keyboard. Available: gear flapsDown flapsUp speedbrake speedbrakeFull parkBrake ap apDisc at toga idle toPower reverseToggle lights pause simRate camera cam1…cam5 hud panel panels fpl mcdu atc taxiMap mapToggle ground pushback jetway speeds crew emergency.
toast(message, level, ms)
Shows a notification; level is info, good or warn.
Aircraft add-ons
An aircraft add-on registers one or more aircraft on an FL450 base type. The base supplies the flight model, engines, systems, flight deck, MCDU and ATC behaviour; you supply what makes it yours. It appears in Hangar → Add-ons with its own name, specs, liveries and 3-D preview, and it is logged under its own name.
api.aircraft.register({
id: 'a321xlr', // unique inside your add-on
name: 'A321XLR',
base: 'a321', // FL450 type id (table below)
description: 'Shown in the hangar.',
registration: 'D-AXLR',
performance: { // all optional; pounds, knots, feet
mtowLb: 222667, mlwLb: 171961, emptyWeightLb: 112000, maxFuelLb: 70500,
thrustLbf: 35000, tsfc: 0.36, vmo: 350, mmo: 0.82, ceilingFt: 39800,
paxMax: 220, fuelDefault: 52000, paxDefault: 190, cruiseFL: 370, cruiseM: 0.78,
},
aero: { CD0: 0.0205 }, // optional: overrides of the base's aerodynamic coefficients
liveries: [ /* livery JSON, see below — shown only for this aircraft */ ],
hideBaseExterior: false, // true: hide the base aircraft's exterior and draw only yours
build(THREE, { model, length, span, base, preview }) {
// return an Object3D in model metres: +x right, +y up, -z forward, origin at the centre of gravity
return myMeshes;
},
});
Base types: business jets cj4 hj p300 lj75 cl350 g650 gx75 · A320 family a319 a19n a320c a320 a21c a321 · 737 b737 b738 b739 b37m b38m b39m b3xm · 787 b788 b789 b78x · 777 b772 b77l b77w b77f b778 b779 · A350 a359 a359u acj350 a35k a35ku a35f.
build() can return any three.js object — including meshes you load yourself (parse your own binary format with fetch(api.asset(…)), or bring a loader module in your add-on). Use hideBaseExterior: true to replace the base exterior completely. Moving parts follow the base aircraft's animation only for the base geometry; animate your own parts in an api.sim.on('frame') handler from api.sim.state().Liveries
api.liveries.add(list) adds liveries for any type (use types: an array of type ids, "airliner", "bizjet" or "all"). Liveries passed to aircraft.register are only offered for that aircraft. The format is the hangar's livery template (Hangar → Liveries → Livery template):
{ "name": "My Airline", "types": ["a320", "a321"],
"base": [247, 248, 250],
"belly": { "c": [20, 40, 90], "y": -0.3, "nose": 0.5, "tail": 0.9 },
"bands": [{ "c": [0, 150, 170], "y0": -0.33, "y1": -0.25, "u0": 0.04, "u1": 0.98, "slant": 0.4 }],
"title": { "text": "MY AIRLINE", "c": "#14285a", "y": 0.42, "u": 0.27, "size": 0.2, "weight": 700 },
"regC": "#14285a",
"fin": { "c": [20, 40, 90], "art": "sun", "c1": [246, 181, 60], "c2": [0, 150, 170], "image": null },
"nacelle": [20, 40, 90], "wing": [201, 206, 212], "winglet": [20, 40, 90] }
fin.image may be a data: URL of your tail artwork.
Scenery add-ons
const h = api.scenery.place({
lat: 41.9786, lon: -87.9048, // WGS-84
agl: 0, // metres above the terrain (or alt: metres MSL)
hdg: 90, // degrees true the object's -z axis faces
visibleKm: 8, // hidden beyond this distance from the aircraft (0 = always)
build: (THREE) => myObject3D, // metres; +x east, +y up, -z north before rotation
});
h.obj; // the Object3D (animate it)
h.remove();
Helpers: api.scenery.groundHeight(lat, lon) (metres MSL), api.scenery.toXZ(lat, lon) / toLatLon(x, z) (world metres), api.scenery.scene() (the three.js scene, for advanced use). Objects cast and receive the simulator's shadows.
Performance: merge static meshes per material (three/addons/utils/BufferGeometryUtils.js is available), use InstancedMesh for repeated objects (lights, trees, cars), compress textures to a sensible size (2048 px is plenty for most buildings) and set visibleKm. FL450 already draws photo scenery, OSM buildings and airports; your objects sit on top.
Utility add-ons
api.ui.addPanel({
id: 'fuel', title: 'Fuel planner', width: 320,
render(el) { el.innerHTML = '…'; }, // build your UI once
update(el, state) { … }, // ~4 times a second while open; state = api.sim.state()
onClose() { … },
});
Panels open from the ADD-ONS menu in the top bar, can be dragged, and remember their position. Keystrokes typed into a panel never reach the flight controls. Utilities can talk to your own web service with fetch (CORS must allow it) — for example a virtual-airline tracker that posts flightEnd records to your backend.
Selling & licences
Sell on any platform — your own site, Gumroad, Lemon Squeezy, Paddle, Shopify… Put the product page in your listing's Store field; FL450 opens it in the pilot's browser. Deliver the .zip as your platform does (download link, account area, e-mail).
Licence keys (optional)
Set "license": { "verifyUrl": "https://…" } in the manifest (and the same URL and “Licence key” in your listing). The add-on is then installed but stays inactive until the pilot enters a key in Add-ons → Installed. FL450 sends:
POST https://your-server/fl450/verify
Content-Type: application/json
{ "addon": "com.yourstudio.a321xlr", "version": "1.0.0", "key": "ABCD-1234-…",
"machine": "9f2c…", // anonymous, stable id of this installation
"sim": "1.11.0" }
Answer 200 {"valid": true} to activate, or {"valid": false, "message": "…"} (the message is shown to the pilot). Allow CORS (Access-Control-Allow-Origin: *). The key is checked again at every start; when your server can't be reached, a key that was accepted in the last 14 days keeps working. Use machine to limit activations. A complete example is in the SDK (examples/licence-server).
Packaging & updates
node tools/pack-addon.mjs my-addon # → com.yourstudio.hello-1.0.0.zip
The packer checks the manifest and writes a standard zip. Any zip works as long as fl450-addon.json is at its top level or inside its single top folder. Limits: 1 GB per file, 4 GB per zip (no ZIP64), 8 GB unpacked, no encryption. Pilots can also install an unpacked folder.
Updates: ship a zip with the same id and a higher version; installing it replaces the old files. Update the version and changelog in your listing so pilots see it.
Publishing a listing
- Sign in at the developer portal with your FL450 account and set your developer name.
- New listing: name, slug (put the same slug in your manifest's
listing), type, version, summary, description, price label, store page, optional direct download for free add-ons, licence settings, cover image (16:9), icon and up to 8 screenshots (uploaded to FL450 media storage, max 8 MB each). - Save as Draft (only you), Unlisted (reachable by link) or Published (in the Marketplace). Published listings appear in the simulator and on /addons within a minute.
A published listing needs a store page or a download link. You can edit, unpublish or delete it at any time; pilots who installed your add-on keep their copy.
Catalog API
Public, read-only, cached for a minute — use it for your own site or launcher:
GET https://fl450.shamsai.app/api/addons → { updated, count, addons: [ … ] }
GET https://fl450.shamsai.app/api/addons/<slug> → one listing
Each listing has slug name kind summary description version min_sim_version developer_name price_label is_free store_url download_url homepage_url support_url license_mode icon_url cover_url screenshots tags aircraft_base file_size_mb changelog published_at updated_at.
Security & guidelines
- Add-ons run inside the simulator page with no access to Node.js or the file system beyond their own folder. Pilots are told to install add-ons only from developers they trust — earn it.
- Don't collect personal data without telling the pilot and asking first. Don't send anything to your servers that your store page doesn't mention.
- Don't break the simulator: catch your own errors, keep
framehandlers fast, clean up what you add. - Only list what you have the rights to: real-world liveries, logos and models can be protected by trademarks and copyright.
- Listings that mislead, are malicious or violate these rules can be removed.
Debugging
- View → Developer tools (Ctrl / Cmd + Shift + I) in the desktop app opens the console: your
api.logoutput, errors, andwindow.simfor exploring. - Add-ons → Installed shows each add-on's status: Running, Off, Error (with the message), Needs licence, or Update FL450.
- Reload simulator (Ctrl / Cmd + Shift + R) restarts everything with your latest files. Open add-ons folder shows where they're installed, so you can edit in place while developing.