Repository navigation
Closed
Labels
featureA new capability, not a fix to an existing onegodot-pluginGodot editor plugin (#116)help wantedExtra attention is neededpriority: mediumWorth doing soon
Description
Summary
Have the build publish a slim, versioned feed made for editor plugins, so the Godot plugin (and later Unity/Unreal ones) doesn't download the 496 KB data.json or re-implement site logic in GDScript.
Where
site/build.mjs(writesdata.json; add the new file next to it)site/lib/search.mjs(worksInEngine,engineRank,nativeEngines): the engine-fit logic to precomputesite/public/owes.js(creditsFile,owes): the credit wording to precomputedocs/data.md: document the new file
Details
data.json carries site-only fields (thumbs, licenseRank, search text, guides, stacks). Two things a plugin needs are computed in JavaScript today and would have to be ported:
- Engine fit:
worksInEngine(entry, "godot")andengineRank(tags, engine-native formats,engine_lock). - Credit line: only 49 of 422 entries have
attribution_string(see catalog: only 48 of 414 entries have a credit line, so "Copy credit line" is missing on most CC-BY and OFL pages #112). The site builds a credit text for the rest inowes.js.
A slim mapping of the core fields is about 117 KB before gzip.
Suggested fix
Write site/dist/plugin-feed.json:
{ "format": 1, "version": "vYYYY.MM.DD", "siteUrl": "...",
"entries": [ { "id", "name", "url", "page", "category", "license", "license_spdx",
"licenseFamily", "commercial", "attribution_required", "formats", "tags", "status",
"verified", "summary", "works_in": ["godot","unity","unreal"], "made_for": ["godot"],
"credit_line": "..." } ] }works_inandmade_forcome fromworksInEngineandengineRank.credit_lineuses the same wording the site's CREDITS export writes.formatis an integer that only goes up on a breaking change. Adding fields is not a breaking change.- Add a JSON Schema for it and check it in the build, as
data.schema.jsonis checked today. - List only
activeandneeds-reviewentries, as the site does.
Acceptance criteria
-
npm run buildwritesplugin-feed.jsonand checks it against its schema - A test in
site/lib/lib.test.mjscoversworks_infor a Godot addon, an Unreal-locked entry and an engine-agnostic pack, pluscredit_linewith and withoutattribution_string - Size stays under 150 KB uncompressed. The build warns if it grows past that.
-
docs/data.mdlists the file and states theformatpolicy
Getting started
- Run
npm run build, then look atsite/dist/data.json - Tests:
npm test; everything:npm run check
Part of #116. Effort: M. audit-key: enhancement|site/build.mjs|plugin-feed
Metadata
Metadata
Assignees
Labels
featureA new capability, not a fix to an existing onegodot-pluginGodot editor plugin (#116)help wantedExtra attention is neededpriority: mediumWorth doing soon
Activity
TMHSDigital commentedon Nov 10, 2026
Done in ce04c68 and live at https://tmhsdigital.github.io/Free-Game-Dev-Assets/plugin-feed.json: 419 entries,
format1. It is served gzipped with anETag, so #279 can send conditional requests.What shipped:
site/lib/plugin-feed.mjsbuildsplugin-feed.json.works_inandmade_forcome from the site's ownworksInEngineandengineRank. On today's data, 398 entries work in Godot and 33 are made for it.credit_lineis the recordedattribution_string, ornull. I changed this from the plan here: the site's CREDITS export doesn't invent a credit line either; it prints "no canned credit line; see the entry". The feed also carriesattribution_requiredandattributionClass, so the plugin can group credits exactly asowes.mjsdoes. Those groups overlap, so I didn't collapse them into one derived field.nullwhen unset.site/plugin-feed.schema.json, checked at build time; the entry schema rejects unknown keys. It is published next to the feed and attached to monthly releases, so a plugin can pin a version.site/lib/lib.test.mjs, covering a Godot addon, an Unreal-locked entry, an engine-agnostic pack, credit lines with and withoutattribution_string, deprecated entries left out, and a schema check that rejects unknown keys.docs/data.md.Verified with
npm run check(all passing) and a fetch of the deployed feed.Publish plugin-feed.json for editor plugins (TMHSDigital#277)