For developers of modules and of the server: what module API 5 adds to a module, what the server does with it, and how a module's feature reaches the apps unchanged. The plan this comes from, with the order modules move in, is plans/MODULAR-MODULES.md. The rest of the module contract is MODULES.md and SDUI-MODULES.md.
- In short
- integration.json
- Routes
- The host API
- Scan hooks
- Lifecycle
- The web part
- Building a web part
- Versions and what a server offers
- Testing
- Not yet
| A module of API 5 has | Where | What the server does with it |
|---|---|---|
integration.json |
beside module.json and sdui.json, in every archive |
Reads it strictly at install and at every start; refuses a version whose file doesn't pass; applies it while the version is in use |
| HTTP routes | its service, under /http |
Mounts each at /api/modules/<id><path>, checks who may call it, passes the request on; apps call it there |
A web part that exports register(host) |
web/ in its archive |
Tells the web app what the module claims; loads the bundle when one of its screens is first needed |
| Its own data | a SQLite database in its data folder | Backs it up |
| Scan hooks | its service (service.Config.Scan) |
Scans the libraries of the kinds it names through it, and applies what it answers |
| Lifecycle calls | its service, on the helper protocol | Calls them at a version's first start and before the module is taken off |
wittymodule.API and the server's API and MinAPI are 5. A server takes API 5 only: no other module API is supported (the owner, 2026-11-13: no backwards compatibility). A version built for another API isn't installed, even with an override, and isn't used; the store says why. Every helper, program or web bundle carries sdui.json and integration.json (wittymodule check and catalog-add refuse one without them). The kinds of media that are part of the server (WittyVideo, WittyChannels, WittyShorts, WittyAudio, WittyPodcasts) are listed with the modules as builtin modules of API 5: they carry neither file, as nothing of theirs is installed.
Read strictly: one object, at most 256 KiB, and an unknown field anywhere is refused. The Go types are wittymodule.Integration; wittymodule check checks it the way a server does.
| Field | What it is |
|---|---|
host |
Ranges of what the module needs of the server, by host feature: http (routes), web (the web host API), sdui (the catalogue revision), host (the host API). ">=1 <2", ">=5", "5" |
feature |
The parental feature everything here belongs to (games, recordings, …, one the server knows). A profile without it can't call the routes |
http |
Routes |
web |
The web part |
sdui.ops |
Its SDUI commands, each answered by one of its own routes ("METHOD /path") |
data |
Its own database: store is sqlite; backup is the part of a backup it goes in (settings, saves, library). Needs the data permission and a dataFormat in module.json. It starts empty |
lifecycle |
Which lifecycle calls it answers |
live |
sessions: it reports live sessions (games, streams) to the server |
scan |
The kinds of library it scans (libraryKinds), whether it answers scan.identify and scan.describe, and the facet it holds a library to (console). See Scan hooks |
Routes, data, lifecycle and scan need a module with a service (delivery helper, with service.Config.HTTP).
Each route is mounted at /api/modules/<id><path> and /api/v1/modules/<id><path>. A module's path can't start with one of the server's own names under /api/modules/{id}/ (install, versions, web, enable, secrets, …: modules.ReservedPaths).
| Field | What it does |
|---|---|
path |
Go ServeMux style: /games/{id}/play, /kasm/{sid}/{rest...} |
methods |
GET, HEAD, POST, PUT, PATCH, DELETE |
auth |
user: anyone signed in. admin. ticket: nobody's sign-in; the module checks a secret in the path, the request carries no identity and no cookie, and only GET/HEAD |
item |
A path parameter that is a library item's id. The server checks the profile may see it (404 otherwise), and tells the module about it with its files |
plays |
Calling it starts or goes on playing: it counts towards screen time and is refused when that's used up (a DELETE never is) |
upgrade |
websocket: the route takes a WebSocket. One from another site's page is refused |
stream |
The answer is a stream, sent as it comes, with no size or time limit |
limits |
body (default 1 MB), answer (default 16 MB), time (default 1 minute) |
csp |
sandboxed-page, for a ticket route whose answer is a page: it's shown in a sandboxed frame with an origin of nobody's |
confirm |
The request may carry the person's password in X-WMS-Confirm-Password (and X-WMS-Confirm-Code with two-factor sign-in). The server checks it as for its own careful actions, refuses a wrong one itself (403, counted as a failed sign-in), and tells the module only X-Witty-Confirmed: 1. Without confirm, the headers are dropped: no module ever sees a password |
What the server checks, before the module hears of a request: sign-in, administrator, the profile's feature and screen time, the item, the size of the request, and for a WebSocket that it comes from this site. What it drops: the Authorization header, its sign-in cookie, a stream token in the query (token, st), and every X-Witty- header a browser sent. What it adds (wittymodule/service, service.Who(r)):
| Header | Value |
|---|---|
X-Witty-Service-Token |
The secret of this start of the service |
X-Witty-User, X-Witty-Admin |
Who is asking (none on a ticket route) |
X-Witty-Item |
The item a route's item names: id, library, kind, title, facets (console), and its files in order as paths to read (files; the first is the item's path, then its other discs). base64url JSON |
X-Witty-Features |
The features this profile may use, space separated |
X-Witty-Kind |
The profile's kind: adult, kids or guest |
X-Witty-Confirmed |
1 on a confirm route when the person gave their password and it was right |
X-Witty-SignIn |
An opaque name for the sign-in the request came from, the same for each of its requests and new each time the server starts. A session names it so that signing out there ends it |
X-Witty-Away |
1 when the server counts the device as away from home |
X-Witty-Limited |
1 when the profile has limits set on it |
X-Witty-Reached |
The host (and port) the device reached the server by |
X-Witty-Machine |
1 when the request came from the server's own machine |
What it does with the answer: drops Set-Cookie, adds X-Content-Type-Options: nosniff, holds a non-stream answer to its limit, and leaves Cache-Control to the module.
A module checks again what matters to it (service.People, service.Admins), and decides what's whose: a save, a session, a person's settings.
A route never takes a file path from a browser. A file comes from X-Witty-Item, or from the host API's Item, both opened after the server's own access check.
A module's way back to the server: package wittymodule/host. The server listens on this machine only, on an address of its own (never its public one), and tells each service where, and a secret of its own, when it starts it (service.StartParams, service.Host()). host.New() is a client for it.
Every call that's on someone's behalf says who (host.On{User}, or host.For(r) from a route's request), and the server answers with that person's access: a module can't see through the host what the person asking couldn't. A module only ever sees libraries of the kinds its module.json lists in libraries.
| Call | Path (/host/v1) |
What it does |
|---|---|---|
Hello |
GET /hello |
The module the server thinks this is, the server's version, what it offers, and machine: what whoever runs the machine allows (gamingCustomCores, gamingTestCore) |
Item |
GET /items/{id} |
An item, with its files in order (files) and facets (console), if the person may see it (403) and it's in one of the module's kinds of library (404). An item that is another version of one (a scan's versionOf) says which in versionOf (that item's id) and what this version is called in versionLabel |
Items |
GET /items?libraryKind=&library=&kind=&facet.console=&search=&offset=&limit= |
Items the person may see, without files, at most 500 |
Facets |
GET /items/facets?library= |
What one library holds as the person may see it, by the generic facets only: genres, decades, rated, letters (a module works out its own, such as players or series) |
May |
GET /may?feature= |
Whether the person may use a feature now: their limits, parental rules and screen time |
Settings |
GET /settings |
The module's settings (from sdui.json): the server's, then the person's own |
Secret |
GET /secrets/{name} |
A secret an administrator gave the module (kept as module.<id>.secret.<name>), or "". An administrator sets one with PUT /api/modules/{id}/secrets/{name} {"value"} ("" removes it; the value is never shown again or logged, the audit log says it was set or removed) and sees which are set with GET /api/modules/{id}/secrets ({"set": [names]}) |
PutImage |
POST /images?item=&role= |
Keeps a picture (PNG, JPEG, GIF or WebP, up to 8 MB) and says where pages show it: /api/module-images/<module>/<name> |
StartSession, EndSession |
POST /sessions, DELETE /sessions/{id} |
Something live (kind, user, item, title, signIn). The server shows it in "playing now" and metrics, counts its time as screen time, adds a game's time to "Continue playing", and ends it when its sign-in ends, its profile's screen time runs out, games are turned off for the profile or the account goes: it then sends the event session.stop ({id, user, reason}) and the module stops it |
Users |
GET /users |
Every account: id, name, display name, kind, administrator, when a sign-in of theirs was last used |
Tools |
GET /tools |
The server's FFmpeg and FFprobe, the encoders it has, and its test of hardware encoders |
Events |
GET /events?after=&wait= |
Waits up to wait (at most 55s) for events after a number: server.started, scan.finished, user.deleted {user}, library.removed {library}, … |
Libraries |
GET /libraries |
The libraries of the module's kinds, with their folders, for its own work: {id, name, kind, console, paths, foreignNfo, scan}. scan is there while the library's scan runs or waits to carry on after a restart: {mode, since}, mode changes or full (every file and its details from scratch), since when that run began (see Scan hooks) |
Task |
POST /tasks/{name} {done, total, error} |
A long piece of work, shown with the server's tasks (administrators only). The name scan-<library> is a scan call's progress instead, never a task of its own |
SetItem |
PATCH /items/{id} |
What the module found out about an item later (ItemFields, as scan.describe answers). Only items in libraries of a kind the module scans (404 otherwise). A field a person typed is never changed. poster and backdrop must be addresses PutImage gave this module (400 otherwise). 204 |
Rescan |
POST /libraries/{id}/scan |
Scans a library again, after a person decided what a file is. Only libraries of a kind the module scans. 202 {"started"} |
(Do) |
GET /setup |
{"done": [ids]}: the module's setup steps done or skipped at the version it declares |
(Do) |
POST /setup/{id} {skip} |
On an administrator's behalf: the module's setup step id is done (or skipped) at the version it declares. Until then a step with a page is a "Finish setting up " notice on administrators' Home, on every app, opening that SDUI page. Written to the audit log |
(Do) |
GET /programs/{id} |
How to run a program module this module is built on (its requires, or theirs): {path, args, version}, 404 when it isn't installed and on (WittyCouch Host for WittyCouch and WittyRigs) |
(Do) |
POST /libraries {name}, PATCH/DELETE /libraries/{id} |
A games library the module holds (console: rig), whose games come from somewhere other than files: nothing scans it. Only a module serving games libraries, and only such libraries |
(Do) |
PUT /libraries/{id}/items {path, title, tagline}, DELETE /items/{id} |
A game in such a library: {id, new}; path is rig://…, naming nothing on disk; a new one is described by the module that scans games (scan.describe) |
(Do) |
PUT/DELETE /items/{id}/poster |
Such a game's picture from where it comes (the bytes, up to 8 MB), or none; a picture someone chose by hand is never replaced |
(Do) |
GET /discs/{id}?page=1&rank=1 |
WittyDVD and WittyBluray, each for its own kind of disc, on someone's behalf: what the server keeps of a disc (its ranking, without the feature's cells; the film, the engine's pick, an administrator's choice and, for administrators, who chose; whether it's encrypted; noPlay when the person's screen time is up), with page=1 the disc's page from the engine's checked answers, and with rank=1 the ranking worked out first when the kept one is another engine's (pending on a server set to go easy) |
(Do) |
POST /discs/{id}/rank {secondOpinion}, PUT /discs/{id}/choice {ttn} |
On an administrator's behalf: rank the disc again (a Blu-ray's with a libbluray's second opinion, when the server's setting allows), or choose its film (-1 forgets the choice). The answer is the disc as GET gives it |
(Do) |
GET /discs/libbluray |
WittyBluray, for an administrator: whether a libbluray can give a second opinion, and where it is |
(Do) |
GET /cds/{id}/matches, PUT /cds/{id}/release {releaseId} |
WittyCD, for an administrator: what an audio CD could be (the server asks MusicBrainz with its table of contents, as its scan does), and using a release's names and cover ("" for the disc's own); the answer is the disc as GET /api/cd/{id} gives it |
Refusals are JSON {"error"} with the status; an X-Witty-Host header tells a refusal of the host API's from a call this server doesn't have (host.ErrNotOffered).
A module that knows a kind of library better than the server does scans it through the server. Its integration.json says which kinds:
"scan": { "libraryKinds": ["games"], "identify": true, "describe": true, "facet": "console" }A library of a kind a module's scan lists, with that module installed and on, is scanned like this. The calls go to the module's service (service.Config.Scan, *service.ScanHooks, types in wittymodule/scan.go), and the scan's stop ends them.
-
The walk. The server walks every folder of the library. Names starting with
.or$are skipped, only regular files are taken, and a symlinked folder isn't followed. A folder that is empty or can't be read is offline: what was under it is kept. -
scan.identify. The server sends the files in walk order, in batches of at most 256, each with its path, root, size and time (each answered{}). Then it sends one call withdone: trueand no files. That answer lists every item the library holds now (items[]):Field What it is filesThe item's files in order: the first is the item's path, then its other discs kind,title,sortTitle,tagline,yearWhat the item is ( kindisgamefor games)container,size,mtimeIts file's format, size and time facets{"console": "…"}versionOf,versionLabelThe path of the item this is another version of, and what to call this version It also carries
problemsandresult(the words the scan ends with). The server adds or updates items by their first file, keeps each item's files in order (tableitem_files;X-Witty-Itemand the host'sItemlist them asfiles), links versions (item_links, linkversion, with the label), and marks missing what isn't listed, unless it was under an offline folder. The task shows the scan's phases and progress. A stopped scan sends nodonecall. -
scan.describe. For the items that are new or whose files changed, in batches of 50. Each item comes withedited: the fields a person typed in the item editor (PUT /api/items/{id}keeps them for every item, in tableitem_edits). The answer isItemFieldsfor each item:title,sortTitle,tagline,overview,year,genres,rating,contentRating,studio,posterandbackdrop(addressesPutImagegave),provider,providerId,titles(native,english) andclear(fields to empty). The server applies it, except the fields a person typed.
No time limit; progress; stuck scans. A scan, and each of its calls, runs until it is done or a person stops it: on a big library the last scan.identify call can take a long time, and a service answering one isn't stopped as idle meanwhile. What stops one by itself is nothing moving for 10 minutes: the walk, each call answered, and the module's own reports of how far a call has got all count. While it answers a scan call (any batch of scan.identify, the done call, scan.describe), a module reports its progress with the host's Task call named scan-<library>, {done, total}: during identify and the done call in files, during describe in that call's items. It may add title: what it's working on now, in a few words that are a name rather than a sentence (WittyPlay sends the console it's sorting), shown beside the count ("Sorting Nintendo 64: 1,200 of 12,709"); a server before 0.8.1-alpha ignores it. Report as the work moves (at most a few times a second), not on a timer: a report is what tells the server the call isn't stuck. The scan's task shows it ("Putting what was found together: 12,400 of 16,780 files"); a report when the module isn't scanning that library is dropped. A stuck scan fails, saying what it was waiting for.
Scan for changes and Full rescan. A scan for changes (the usual one, and the one every 6 hours) describes what's new or changed. A Full rescan (POST /api/libraries/{id}/scan {"mode": "full"}) reads everything again from scratch: the host's Libraries says scan: {mode: "full", since} for that library while it runs, so the module works out every file again rather than trusting what it kept (once per since), and every item is sent to scan.describe with refresh: true.
Carrying on after a restart. Each run is written down as it starts (table library_scans) with the items still to be described (scan_describe), so a scan a restart cut short starts again by itself when the server is back, with the same mode and since: it walks and identifies again (another scan id; what the module kept makes that quick) and describes only what's left.
A game added to a held (rig) library is described the same way. Refresh in the item editor sends one scan.describe for that item with refresh: true. What the module finds out later (an internet lookup it queued) it sets with the host's SetItem; after a person decided what a file is, it asks for Rescan.
scan.choices {libraryKind, testing} → {facet, values: [{id, name, short}]}: the values a library can be held to (consoles). The server checks a library's console against it (auto is always allowed; anything else is refused as "unknown console") and takes cards' short console names from it. It's kept per module version.
Without the module. A library of a kind that needs a scanning module (games) can't be made or changed unless such a module is installed and on: POST/PUT /api/libraries answers 409 {"error", "code": "module-missing", "modules"}. When the module is missing or off, a scan of an existing library keeps its items as they are and says why.
Calls on the helper protocol's pipe, to the service (service.Config.Lifecycle), with wittymodule.LifecycleArgs:
| Call | When | Args |
|---|---|---|
lifecycle.install |
The first start of the module's first version of API 5 on this server | to |
lifecycle.upgrade |
The first start of a version after another was set up | from, to |
lifecycle.uninstall |
Before the module is taken off (POST /api/modules/{id}/remove, ?keepData=0 to remove its data; kept otherwise) |
keepData |
A version isn't used until its install or upgrade went through: an error stops the start, is reported as a failure of that version, and the next start tries again (three failures in a day take the version out of use, as for any failure). The version that was set up is kept in the module's state (integrated). A module that can't be told it's being taken off still goes.
What web claims, the web app learns from GET /api/modules/web (each bundle's integration), and keeps for the next visit, so a module's screen isn't first drawn by the app's own copy. The bundle's register(host) export hands over the components, loaded when one is first needed (web/src/moduleRegistry.tsx).
| Claim | What the web app does |
|---|---|
routes with frame: "fullscreen" |
The route takes the window in place of the app's frame (as the players and WittyPlay's frame do) |
routes with frame: "app" or "tv" |
The route's page comes before the app's own, inside the app's frame |
cards |
Cards of that media kind take their art, detail panel and link from the module (game today). The card-art context's bio draws the panel under a card's row (WittyPlay: logo, console, maker, rating, pictures, achievements) |
settings |
A section of Settings: one with a built-in section's id takes its place, one with after goes after that one, any other under "From modules" |
takeover |
A library of that kind goes to the module's own view of it (/library/2 → /wittyplay/library/2) |
routes with frame: "tv" |
In TV mode only, the route's TV screen is the module's |
setup |
The setup wizard's step of that id is the module's, given the wizard's own step props. New steps of a module's own come next (Not yet) |
readers |
A book of that format (epub, pdf, cbz, as the server's book answer names its reader) opens in the module's reader: the app loads WittyInk's bundle first (the reader kit every reader's @wittywilla/wittyink is), and pdf.js for a PDF, then the module's, and draws register(host).readers[format] inside WittyInk's HostContext with the app's reader host. No module claiming the format: the reader says none is in use |
players |
The player for a media kind: a disc (disc, WittyDisc's) or an audio CD (cd, WittyCD's). With a player, register can also hand over itemMenu (what a title's "Manage" menu offers for that kind, each opening a dialog of its own) and audioEngines (an engine that plays through the app's own audio element, so the music carries on when the player's page is left) |
navFold |
Declared and checked now; drawn from the module as each module that needs one moves (Not yet) |
register(host) returns a Registration (types in WittyModule kit/web/host, package @wittywilla/wms-host):
import type { ModuleHost, Registration } from '@wittywilla/wms-host'
export function register(host: ModuleHost): Registration {
return {
routes: { '/wittyplay/*': PlayFrame, '/game/:id': GamePage },
cards: { game: { art: (a) => <GameArt {...a} />, link: (to) => playLink(to) } },
readers: { epub: EpubReader }, // WittyEbook's: integration.json web.readers [{format: "epub"}]
settings: { gaming: GamingSettings },
}
}A screen moved out of the app keeps importing the app's own parts it used, as @wms/app/<path> (the app's web/src/<path>): WittyModule's builder turns each into the app's own copy at run time, from moduleHost.app (web/src/moduleApp.ts, exports listed in WittyModule kit/web/app-exports.json by scripts/export-module-kit.mjs). A part, or an export of one, is only ever added until the next web host API. WittyPlay 0.5.0 is the first: scripts/import-server-ui.mjs in WittyPlay copied its screens.
What a module is given (ModuleHost): the app's API client (http) and its own routes (moduleApi), the app's state (useApp, useTvMode), toast and ask, the app's UI kit (ui) and icons, ModuleMissing and LegalNote, the SDUI renderer's contexts (sdui), TV focus (input), television levels (tv, with has('tvLevels'): the server's table by address and by part, the card that says to use a computer, a part's note and dialog, and a wrapper that shows content with its controls off; see TV mode), the app's language (i18n: language(), useLanguage(), onLanguage(), rtl() and number and date formatting, offered as has('i18n'); see TRANSLATION.md), and has(feature). A screen that crashes is reported as the module's failure and replaced with what's missing; the app goes on.
Looking the same. A module draws with the app's own components, and its stylesheet uses the app's design tokens as var(--name) (WittyModule kit/web/tokens.json, from scripts/export-module-kit.mjs), never copies of their values, so every theme and the server's own colours follow. A bundle's stylesheet is on only while its screen is.
A module's web part (routes and frames) is drawn by the browser and the desktop app only: tvOS has no web view, and the TV apps draw natively. So every screen a person needs from a module also has an SDUI page in its sdui.json (the TV apps draw it, as the phone and tablet apps do), or is one of the apps' own screens fed by the module's routes (a game's page and player). A TV screen works with a d-pad and a remote: focus moves, Back leaves, text and targets are sized for across a room, and nothing needs hover or touch. A module's SDUI sources are told the viewer (viewer.user, profileKind, formFactor), and its cards can carry switches, choices, actions and detail-panel buttons, so settings and stores can be SDUI pages too. Check every module screen on tvOS and Android TV as well as in a browser.
WittyModule kit/web/build-bundle.mjs is the one builder (no module keeps a copy of its own any more):
node ../WittyModule/kit/web/build-bundle.mjs . distIt writes index.js and style.css. React, react-dom, the JSX runtime, react-router-dom, WittyInk and pdf.js become stand-ins for the app's own copies (globalThis.__wmsModuleHost): a second copy of any of them is refused at build time, because its context would be nobody's. It uses Vite 8's codeSplitting: false (and the old name on Vite 6).
A server offers each host feature at a version (modules.Offers()): http 1, web 5, sdui its catalogue revision, host 2 (SetItem and Rescan; WittyPlay asks ">=2"). A version whose host ranges this server doesn't meet is refused, with the reason. Adding to a host feature raises its version; a module asks for ">=n" and uses host.has(…) (web) or Client.Has(…) (Go) for anything newer that it can do without.
- The apps' contract:
internal/server/contract_modules_test.gosends the apps' own calls (from WittyMediaClient) and compares each answer's status and shape (every key, and the kind of every value) withtestdata/contract/<state>.json: the module absent, and installed.WMS_UPDATE_CONTRACT=1rewrites them; only ever on purpose, agreed with the apps. - Routes:
module_routes_test.go: identity, sign-in dropped, forged headers dropped, admin routes, features, items, ticket routes, paths out of a route, a missing module. - Host API:
host_api_test.go;SetItem,Rescan, the module secrets routes and a games library without its module ininternal/server/scan_hooks_test.go. - Scan hooks:
internal/library/scan_hooks_test.go: the walk, batches,done, versions, missing and offline folders,describeand edited fields, a missing module. - The host object:
web/src/moduleHost.test.mjskeepshostForand WittyModulekit/web/hostthe same (WITTYMODULE=<checkout>if it isn't beside this one).
These are designed in the plan and come with the module that needs them:
- Hooks for a web part's screens that aren't routes: the audio player's visualizer place (WittyVisualizer's
VisualizerStageandcurrentSession), the folder picker's window (WittyIntegratedFileBrowser's default export) and an SDUI page's views (views, WittyStats' dashboard). WittyModule 0.5.2'sintegration.jsonandRegistrationhave none, so these modules claim nothing and the app takes those named exports from the bundle, as before. Theirregister(host)returns nothing yet. - A module's own new setup steps placed in the web wizard by
after/before(the "Finish setting up" notice and page work:POST /setup/{id}), and menu folding from the web part. - The readers hook in the catalogue's summary of a version, so a missing reader can be named by its format.
itemMenuandaudioEnginesas integration.json fields: today they come with aplayersclaim, fromregisteralone.- Doctor checks from modules.
- Module databases in backups.
/capabilitiesfeatures from what modules are in use (today they are the server's fixed list; changing that is agreed with the apps first).wittymodule web preview: a module's screens without a server.- Generated parental path prefixes and module menu folding from the manifests.
WittyMediaServer documentation
{ "format": "wittymodule-integration", "formatVersion": 1, "module": "wittyplay", "host": { "http": ">=1 <2", "web": ">=5", "host": ">=2" }, "feature": "games", "http": [ { "path": "/games/{id}/play", "methods": ["POST"], "auth": "user", "item": "id", "plays": true, "limits": { "body": "256KB", "time": "3m" } }, { "path": "/play/{sid}/stream", "methods": ["GET", "POST"], "auth": "user", "upgrade": "websocket", "stream": true }, { "path": "/kasm/{sid}/{ticket}/{rest...}", "methods": ["GET"], "auth": "ticket", "csp": "sandboxed-page" } ], "web": { "routes": [ { "path": "/wittyplay/*", "frame": "fullscreen" }, { "path": "/game/:id", "frame": "fullscreen" } ], "cards": [ { "mediaKind": "game", "art": true, "detail": true, "link": true } ], "settings": [ { "id": "gaming", "label": "Games & emulators", "admin": true, "search": ["cores", "BIOS"] } ], "setup": [ { "id": "games" } ], "navFold": [ { "libraryKind": "games", "into": "wittyplay-online" } ] }, "sdui": { "ops": [ { "id": "wittyplay.room.create", "http": "POST /rooms" } ] }, "data": { "store": "sqlite", "backup": "saves" }, "lifecycle": { "install": true, "upgrade": true, "uninstall": "ask-keep-data" }, "live": { "sessions": true }, "scan": { "libraryKinds": ["games"], "identify": true, "describe": true, "facet": "console" } }