@ranx729/ducktape-assets 0.0.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AGENTS.md +52 -0
- package/README.md +42 -2
- package/bin/ducktape-assets.mjs +34 -0
- package/catalog.json +6617 -0
- package/index.json +51 -0
- package/package.json +51 -1
- package/schemas/index.schema.json +38 -0
- package/sets/illuminated-acanthus.json +8046 -0
- package/sets/medieval-cutouts.json +8492 -0
- package/sets/walters-w102.json +759 -0
- package/src/copy.mjs +131 -0
- package/src/generate.mjs +190 -0
- package/src/node.mjs +9 -0
- package/src/resolver.mjs +235 -0
- package/src/rungs.mjs +34 -0
- package/src/thumbhash.mjs +163 -0
- package/src/urls.mjs +34 -0
package/index.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": 1,
|
|
3
|
+
"generatedAt": "2026-10-26T21:29:18.072Z",
|
|
4
|
+
"sets": {
|
|
5
|
+
"illuminated-acanthus": {
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"package": "@ranx729/ducktape-assets-illuminated-acanthus",
|
|
8
|
+
"parts": [],
|
|
9
|
+
"mastersPackage": "@ranx729/ducktape-assets-illuminated-acanthus-masters",
|
|
10
|
+
"mastersParts": [],
|
|
11
|
+
"cdn": "https://cdn.jsdelivr.net/npm/@ranx729/ducktape-assets-illuminated-acanthus@1.0.0/",
|
|
12
|
+
"mastersCdn": "https://cdn.jsdelivr.net/npm/@ranx729/ducktape-assets-illuminated-acanthus-masters@1.0.0/",
|
|
13
|
+
"assets": 36,
|
|
14
|
+
"license": {
|
|
15
|
+
"artwork": "CC-BY-4.0"
|
|
16
|
+
},
|
|
17
|
+
"contentHash": "sha256:bebadbe305ae62fddfc9fb389b058748e74e6fac15f70014cddbb0fa71cb17f9",
|
|
18
|
+
"status": "active"
|
|
19
|
+
},
|
|
20
|
+
"medieval-cutouts": {
|
|
21
|
+
"version": "1.0.0",
|
|
22
|
+
"package": "@ranx729/ducktape-assets-medieval-cutouts",
|
|
23
|
+
"parts": [],
|
|
24
|
+
"mastersPackage": "@ranx729/ducktape-assets-medieval-cutouts-masters",
|
|
25
|
+
"mastersParts": [],
|
|
26
|
+
"cdn": "https://cdn.jsdelivr.net/npm/@ranx729/ducktape-assets-medieval-cutouts@1.0.0/",
|
|
27
|
+
"mastersCdn": "https://cdn.jsdelivr.net/npm/@ranx729/ducktape-assets-medieval-cutouts-masters@1.0.0/",
|
|
28
|
+
"assets": 41,
|
|
29
|
+
"license": {
|
|
30
|
+
"artwork": "CC-BY-4.0"
|
|
31
|
+
},
|
|
32
|
+
"contentHash": "sha256:3a32da2486e69bf5ce5152ce0105f383428d78c74ff75a96f82b7fdbdb13e4f2",
|
|
33
|
+
"status": "active"
|
|
34
|
+
},
|
|
35
|
+
"walters-w102": {
|
|
36
|
+
"version": "1.0.0",
|
|
37
|
+
"package": "@ranx729/ducktape-assets-walters-w102",
|
|
38
|
+
"parts": [],
|
|
39
|
+
"mastersPackage": "@ranx729/ducktape-assets-walters-w102-masters",
|
|
40
|
+
"mastersParts": [],
|
|
41
|
+
"cdn": "https://cdn.jsdelivr.net/npm/@ranx729/ducktape-assets-walters-w102@1.0.0/",
|
|
42
|
+
"mastersCdn": "https://cdn.jsdelivr.net/npm/@ranx729/ducktape-assets-walters-w102-masters@1.0.0/",
|
|
43
|
+
"assets": 4,
|
|
44
|
+
"license": {
|
|
45
|
+
"artwork": "CC0-1.0"
|
|
46
|
+
},
|
|
47
|
+
"contentHash": "sha256:af3a33a4e36be1b741107aef88b7abcd613fb23e5d951f334e97f1c8176b8947",
|
|
48
|
+
"status": "active"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +1,51 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"name": "@ranx729/ducktape-assets",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Index, catalog and build-time resolver for the Ducktape Assets library. Metadata only, no images.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": "./src/resolver.mjs",
|
|
9
|
+
"./copy": "./src/copy.mjs",
|
|
10
|
+
"./generate": "./src/generate.mjs",
|
|
11
|
+
"./node": "./src/node.mjs",
|
|
12
|
+
"./index.json": "./index.json",
|
|
13
|
+
"./catalog.json": "./catalog.json",
|
|
14
|
+
"./sets/*.json": "./sets/*.json",
|
|
15
|
+
"./schemas/*.json": "./schemas/*.json",
|
|
16
|
+
"./package.json": "./package.json"
|
|
17
|
+
},
|
|
18
|
+
"bin": {
|
|
19
|
+
"ducktape-assets": "./bin/ducktape-assets.mjs"
|
|
20
|
+
},
|
|
21
|
+
"files": [
|
|
22
|
+
"src",
|
|
23
|
+
"bin",
|
|
24
|
+
"schemas",
|
|
25
|
+
"sets",
|
|
26
|
+
"index.json",
|
|
27
|
+
"catalog.json",
|
|
28
|
+
"README.md",
|
|
29
|
+
"AGENTS.md"
|
|
30
|
+
],
|
|
31
|
+
"scripts": {
|
|
32
|
+
"test": "node --test 'test/**/*.test.mjs'"
|
|
33
|
+
},
|
|
34
|
+
"engines": {
|
|
35
|
+
"node": ">=22.14"
|
|
36
|
+
},
|
|
37
|
+
"publishConfig": {
|
|
38
|
+
"access": "public"
|
|
39
|
+
},
|
|
40
|
+
"repository": {
|
|
41
|
+
"type": "git",
|
|
42
|
+
"url": "git+https://github.com/adrian729/ducktape-assets.git",
|
|
43
|
+
"directory": "index"
|
|
44
|
+
},
|
|
45
|
+
"ducktape": {
|
|
46
|
+
"kind": "index",
|
|
47
|
+
"inputsHash": "sha256:6613217d4789e52db3127c6c7e7eb580b32c0e4303fd82e4a922cc3ed6b78bd2",
|
|
48
|
+
"contentHash": "sha256:90f6eef5bcac792d12dfe6ce2cfc3173233983fd4e65bfd74561cb08bc094c1c",
|
|
49
|
+
"schema": 1
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"$id": "https://github.com/adrian729/ducktape-assets/index/schemas/index.schema.json",
|
|
4
|
+
"title": "Ducktape Assets index",
|
|
5
|
+
"description": "index.json of the index package: the pinned version, packages and CDN bases of every set. The resolver and the copy command read it; the host is only the cdn base.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"additionalProperties": false,
|
|
8
|
+
"required": ["schema", "generatedAt", "sets"],
|
|
9
|
+
"properties": {
|
|
10
|
+
"schema": { "const": 1 },
|
|
11
|
+
"generatedAt": { "type": "string", "format": "date-time" },
|
|
12
|
+
"sets": {
|
|
13
|
+
"type": "object",
|
|
14
|
+
"propertyNames": { "pattern": "^[a-z0-9]+(-[a-z0-9]+)*$" },
|
|
15
|
+
"additionalProperties": { "$ref": "#/$defs/set" }
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$defs": {
|
|
19
|
+
"set": {
|
|
20
|
+
"type": "object",
|
|
21
|
+
"additionalProperties": false,
|
|
22
|
+
"required": ["version", "package", "parts", "mastersPackage", "mastersParts", "cdn", "mastersCdn", "assets", "license", "contentHash", "status"],
|
|
23
|
+
"properties": {
|
|
24
|
+
"version": { "type": "string", "pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+$" },
|
|
25
|
+
"package": { "type": "string", "description": "Delivery package, first volume." },
|
|
26
|
+
"parts": { "type": "array", "items": { "type": "string" }, "description": "Additional delivery volume packages, in order." },
|
|
27
|
+
"mastersPackage": { "type": "string" },
|
|
28
|
+
"mastersParts": { "type": "array", "items": { "type": "string" } },
|
|
29
|
+
"cdn": { "type": "string", "pattern": "/$", "description": "Base URL of the first delivery package at this exact version, ending in a slash. Volume packages are derived from it." },
|
|
30
|
+
"mastersCdn": { "type": "string", "pattern": "/$" },
|
|
31
|
+
"assets": { "type": "integer", "minimum": 0, "description": "Number of assets in the manifest." },
|
|
32
|
+
"license": { "type": "object", "required": ["artwork"], "additionalProperties": false, "properties": { "artwork": { "type": "string" } } },
|
|
33
|
+
"contentHash": { "type": "string", "pattern": "^sha256:[0-9a-f]{64}$" },
|
|
34
|
+
"status": { "enum": ["active", "frozen", "archived"] }
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|