@team-antioch/sc2-asset-catalog 0.0.0-stage → 0.1.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.
Files changed (62) hide show
  1. package/LICENSE +21 -0
  2. package/LICENSE-DATA +412 -0
  3. package/README.md +18 -2
  4. package/THIRD-PARTY-NOTICES.md +54 -0
  5. package/bin/sc2-asset-catalog.js +7 -0
  6. package/data/doodad-descriptions.json +32705 -0
  7. package/data/doodad-uses/doodads/AlarmLight.json +6 -0
  8. package/data/doodad-uses/doodads/CompoundMansion_GratesExit.json +5 -0
  9. package/data/doodad-uses/doodads/DOM_Crate.json +8 -0
  10. package/data/doodad-uses/doodads/Decal.json +11 -0
  11. package/data/doodad-uses/doodads/Shadow_Platform_Rail_Long.json +5 -0
  12. package/data/doodad-uses/doodads/SpaceDockArch.json +6 -0
  13. package/dist/catalog/catalog-dirs.d.ts +20 -0
  14. package/dist/catalog/catalog-dirs.js +41 -0
  15. package/dist/catalog/catalog-sheets.d.ts +28 -0
  16. package/dist/catalog/catalog-sheets.js +48 -0
  17. package/dist/catalog/doodad-card-html.d.ts +12 -0
  18. package/dist/catalog/doodad-card-html.js +58 -0
  19. package/dist/catalog/doodad-catalog.d.ts +93 -0
  20. package/dist/catalog/doodad-catalog.js +85 -0
  21. package/dist/catalog/doodad-dependencies.d.ts +15 -0
  22. package/dist/catalog/doodad-dependencies.js +50 -0
  23. package/dist/catalog/doodad-facings.d.ts +158 -0
  24. package/dist/catalog/doodad-facings.js +174 -0
  25. package/dist/catalog/doodad-notes.d.ts +70 -0
  26. package/dist/catalog/doodad-notes.js +130 -0
  27. package/dist/catalog/doodad-search.d.ts +270 -0
  28. package/dist/catalog/doodad-search.js +443 -0
  29. package/dist/catalog/doodad-thumbnails.d.ts +34 -0
  30. package/dist/catalog/doodad-thumbnails.js +48 -0
  31. package/dist/catalog/doodad-uses.d.ts +63 -0
  32. package/dist/catalog/doodad-uses.js +109 -0
  33. package/dist/catalog/doodads.d.ts +42 -0
  34. package/dist/catalog/doodads.js +70 -0
  35. package/dist/catalog/extract-catalog.d.ts +80 -0
  36. package/dist/catalog/extract-catalog.js +255 -0
  37. package/dist/catalog/extract-doodads.d.ts +39 -0
  38. package/dist/catalog/extract-doodads.js +183 -0
  39. package/dist/catalog/render-thumbnails.d.ts +70 -0
  40. package/dist/catalog/render-thumbnails.js +161 -0
  41. package/dist/catalog/renderer-setup.d.ts +51 -0
  42. package/dist/catalog/renderer-setup.js +125 -0
  43. package/dist/catalog/whiteoutflakes-frames.d.ts +37 -0
  44. package/dist/catalog/whiteoutflakes-frames.js +180 -0
  45. package/dist/catalog/whiteoutflakes.d.ts +26 -0
  46. package/dist/catalog/whiteoutflakes.js +174 -0
  47. package/dist/cli.d.ts +19 -0
  48. package/dist/cli.js +96 -0
  49. package/dist/index.d.ts +10 -0
  50. package/dist/index.js +14 -0
  51. package/dist/util/file-lock.d.ts +25 -0
  52. package/dist/util/file-lock.js +94 -0
  53. package/dist/util/format-issues.d.ts +3 -0
  54. package/dist/util/format-issues.js +4 -0
  55. package/dist/util/parse-json.d.ts +8 -0
  56. package/dist/util/parse-json.js +21 -0
  57. package/dist/util/png.d.ts +13 -0
  58. package/dist/util/png.js +113 -0
  59. package/dist/util/write-whole.d.ts +5 -0
  60. package/dist/util/write-whole.js +17 -0
  61. package/package.json +58 -4
  62. package/scripts/build-whiteoutflakes.sh +89 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TeamAntioch
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/LICENSE-DATA ADDED
@@ -0,0 +1,412 @@
1
+ The doodad descriptions (packages/sc2-asset-catalog/data/doodad-descriptions.json) and the
2
+ Doodad Uses (packages/sc2-asset-catalog/data/doodad-uses/) are licensed under the Creative
3
+ Commons Attribution 4.0 International License (CC BY 4.0), below.
4
+
5
+ Copyright (c) 2026 TeamAntioch and the sc2-asset-catalog contributors.
6
+ Attribute as: "SC2 doodad descriptions and Doodad Uses from sc2-asset-catalog
7
+ (https://github.com/TeamAntioch/sc2-asset-catalog), CC BY 4.0."
8
+
9
+ They describe StarCraft II doodads in our own words, keyed by the game's doodad ids. StarCraft II
10
+ and its assets are Blizzard Entertainment's; nothing of the game ships here, and this project is
11
+ not affiliated with or endorsed by Blizzard Entertainment.
12
+
13
+ The code is licensed separately, under the MIT License (LICENSE).
14
+
15
+ -----------------------------------------------------------------------
16
+
17
+ Attribution 4.0 International
18
+
19
+ =======================================================================
20
+
21
+ Creative Commons Corporation ("Creative Commons") is not a law firm and
22
+ does not provide legal services or legal advice. Distribution of
23
+ Creative Commons public licenses does not create a lawyer-client or
24
+ other relationship. Creative Commons makes its licenses and related
25
+ information available on an "as-is" basis. Creative Commons gives no
26
+ warranties regarding its licenses, any material licensed under their
27
+ terms and conditions, or any related information. Creative Commons
28
+ disclaims all liability for damages resulting from their use to the
29
+ fullest extent possible.
30
+
31
+ Using Creative Commons Public Licenses
32
+
33
+ Creative Commons public licenses provide a standard set of terms and
34
+ conditions that creators and other rights holders may use to share
35
+ original works of authorship and other material subject to copyright
36
+ and certain other rights specified in the public license below. The
37
+ following considerations are for informational purposes only, are not
38
+ exhaustive, and do not form part of our licenses.
39
+
40
+ Considerations for licensors: Our public licenses are
41
+ intended for use by those authorized to give the public
42
+ permission to use material in ways otherwise restricted by
43
+ copyright and certain other rights. Our licenses are
44
+ irrevocable. Licensors should read and understand the terms
45
+ and conditions of the license they choose before applying it.
46
+ Licensors should also secure all rights necessary before
47
+ applying our licenses so that the public can reuse the
48
+ material as expected. Licensors should clearly mark any
49
+ material not subject to the license. This includes other CC-
50
+ licensed material, or material used under an exception or
51
+ limitation to copyright. More considerations for licensors:
52
+ wiki.creativecommons.org/Considerations_for_licensors
53
+
54
+ Considerations for the public: By using one of our public
55
+ licenses, a licensor grants the public permission to use the
56
+ licensed material under specified terms and conditions. If
57
+ the licensor's permission is not necessary for any reason--for
58
+ example, because of any applicable exception or limitation to
59
+ copyright--then that use is not regulated by the license. Our
60
+ licenses grant only permissions under copyright and certain
61
+ other rights that a licensor has authority to grant. Use of
62
+ the licensed material may still be restricted for other
63
+ reasons, including because others have copyright or other
64
+ rights in the material. A licensor may make special requests,
65
+ such as asking that all changes be marked or described.
66
+ Although not required by our licenses, you are encouraged to
67
+ respect those requests where reasonable. More considerations
68
+ for the public:
69
+ wiki.creativecommons.org/Considerations_for_licensees
70
+
71
+ =======================================================================
72
+
73
+ Creative Commons Attribution 4.0 International Public License
74
+
75
+ By exercising the Licensed Rights (defined below), You accept and agree
76
+ to be bound by the terms and conditions of this Creative Commons
77
+ Attribution 4.0 International Public License ("Public License"). To the
78
+ extent this Public License may be interpreted as a contract, You are
79
+ granted the Licensed Rights in consideration of Your acceptance of
80
+ these terms and conditions, and the Licensor grants You such rights in
81
+ consideration of benefits the Licensor receives from making the
82
+ Licensed Material available under these terms and conditions.
83
+
84
+
85
+ Section 1 -- Definitions.
86
+
87
+ a. Adapted Material means material subject to Copyright and Similar
88
+ Rights that is derived from or based upon the Licensed Material
89
+ and in which the Licensed Material is translated, altered,
90
+ arranged, transformed, or otherwise modified in a manner requiring
91
+ permission under the Copyright and Similar Rights held by the
92
+ Licensor. For purposes of this Public License, where the Licensed
93
+ Material is a musical work, performance, or sound recording,
94
+ Adapted Material is always produced where the Licensed Material is
95
+ synched in timed relation with a moving image.
96
+
97
+ b. Adapter's License means the license You apply to Your Copyright
98
+ and Similar Rights in Your contributions to Adapted Material in
99
+ accordance with the terms and conditions of this Public License.
100
+
101
+ c. Copyright and Similar Rights means copyright and/or similar rights
102
+ closely related to copyright including, without limitation,
103
+ performance, broadcast, sound recording, and Sui Generis Database
104
+ Rights, without regard to how the rights are labeled or
105
+ categorized. For purposes of this Public License, the rights
106
+ specified in Section 2(b)(1)-(2) are not Copyright and Similar
107
+ Rights.
108
+
109
+ d. Effective Technological Measures means those measures that, in the
110
+ absence of proper authority, may not be circumvented under laws
111
+ fulfilling obligations under Article 11 of the WIPO Copyright
112
+ Treaty adopted on December 20, 1996, and/or similar international
113
+ agreements.
114
+
115
+ e. Exceptions and Limitations means fair use, fair dealing, and/or
116
+ any other exception or limitation to Copyright and Similar Rights
117
+ that applies to Your use of the Licensed Material.
118
+
119
+ f. Licensed Material means the artistic or literary work, database,
120
+ or other material to which the Licensor applied this Public
121
+ License.
122
+
123
+ g. Licensed Rights means the rights granted to You subject to the
124
+ terms and conditions of this Public License, which are limited to
125
+ all Copyright and Similar Rights that apply to Your use of the
126
+ Licensed Material and that the Licensor has authority to license.
127
+
128
+ h. Licensor means the individual(s) or entity(ies) granting rights
129
+ under this Public License.
130
+
131
+ i. Share means to provide material to the public by any means or
132
+ process that requires permission under the Licensed Rights, such
133
+ as reproduction, public display, public performance, distribution,
134
+ dissemination, communication, or importation, and to make material
135
+ available to the public including in ways that members of the
136
+ public may access the material from a place and at a time
137
+ individually chosen by them.
138
+
139
+ j. Sui Generis Database Rights means rights other than copyright
140
+ resulting from Directive 96/9/EC of the European Parliament and of
141
+ the Council of 11 March 1996 on the legal protection of databases,
142
+ as amended and/or succeeded, as well as other essentially
143
+ equivalent rights anywhere in the world.
144
+
145
+ k. You means the individual or entity exercising the Licensed Rights
146
+ under this Public License. Your has a corresponding meaning.
147
+
148
+
149
+ Section 2 -- Scope.
150
+
151
+ a. License grant.
152
+
153
+ 1. Subject to the terms and conditions of this Public License,
154
+ the Licensor hereby grants You a worldwide, royalty-free,
155
+ non-sublicensable, non-exclusive, irrevocable license to
156
+ exercise the Licensed Rights in the Licensed Material to:
157
+
158
+ a. reproduce and Share the Licensed Material, in whole or
159
+ in part; and
160
+
161
+ b. produce, reproduce, and Share Adapted Material.
162
+
163
+ 2. Exceptions and Limitations. For the avoidance of doubt, where
164
+ Exceptions and Limitations apply to Your use, this Public
165
+ License does not apply, and You do not need to comply with
166
+ its terms and conditions.
167
+
168
+ 3. Term. The term of this Public License is specified in Section
169
+ 6(a).
170
+
171
+ 4. Media and formats; technical modifications allowed. The
172
+ Licensor authorizes You to exercise the Licensed Rights in
173
+ all media and formats whether now known or hereafter created,
174
+ and to make technical modifications necessary to do so. The
175
+ Licensor waives and/or agrees not to assert any right or
176
+ authority to forbid You from making technical modifications
177
+ necessary to exercise the Licensed Rights, including
178
+ technical modifications necessary to circumvent Effective
179
+ Technological Measures. For purposes of this Public License,
180
+ simply making modifications authorized by this Section 2(a)
181
+ (4) never produces Adapted Material.
182
+
183
+ 5. Downstream recipients.
184
+
185
+ a. Offer from the Licensor -- Licensed Material. Every
186
+ recipient of the Licensed Material automatically
187
+ receives an offer from the Licensor to exercise the
188
+ Licensed Rights under the terms and conditions of this
189
+ Public License.
190
+
191
+ b. No downstream restrictions. You may not offer or impose
192
+ any additional or different terms or conditions on, or
193
+ apply any Effective Technological Measures to, the
194
+ Licensed Material if doing so restricts exercise of the
195
+ Licensed Rights by any recipient of the Licensed
196
+ Material.
197
+
198
+ 6. No endorsement. Nothing in this Public License constitutes or
199
+ may be construed as permission to assert or imply that You
200
+ are, or that Your use of the Licensed Material is, connected
201
+ with, or sponsored, endorsed, or granted official status by,
202
+ the Licensor or others designated to receive attribution as
203
+ provided in Section 3(a)(1)(A)(i).
204
+
205
+ b. Other rights.
206
+
207
+ 1. Moral rights, such as the right of integrity, are not
208
+ licensed under this Public License, nor are publicity,
209
+ privacy, and/or other similar personality rights; however, to
210
+ the extent possible, the Licensor waives and/or agrees not to
211
+ assert any such rights held by the Licensor to the limited
212
+ extent necessary to allow You to exercise the Licensed
213
+ Rights, but not otherwise.
214
+
215
+ 2. Patent and trademark rights are not licensed under this
216
+ Public License.
217
+
218
+ 3. To the extent possible, the Licensor waives any right to
219
+ collect royalties from You for the exercise of the Licensed
220
+ Rights, whether directly or through a collecting society
221
+ under any voluntary or waivable statutory or compulsory
222
+ licensing scheme. In all other cases the Licensor expressly
223
+ reserves any right to collect such royalties.
224
+
225
+
226
+ Section 3 -- License Conditions.
227
+
228
+ Your exercise of the Licensed Rights is expressly made subject to the
229
+ following conditions.
230
+
231
+ a. Attribution.
232
+
233
+ 1. If You Share the Licensed Material (including in modified
234
+ form), You must:
235
+
236
+ a. retain the following if it is supplied by the Licensor
237
+ with the Licensed Material:
238
+
239
+ i. identification of the creator(s) of the Licensed
240
+ Material and any others designated to receive
241
+ attribution, in any reasonable manner requested by
242
+ the Licensor (including by pseudonym if
243
+ designated);
244
+
245
+ ii. a copyright notice;
246
+
247
+ iii. a notice that refers to this Public License;
248
+
249
+ iv. a notice that refers to the disclaimer of
250
+ warranties;
251
+
252
+ v. a URI or hyperlink to the Licensed Material to the
253
+ extent reasonably practicable;
254
+
255
+ b. indicate if You modified the Licensed Material and
256
+ retain an indication of any previous modifications; and
257
+
258
+ c. indicate the Licensed Material is licensed under this
259
+ Public License, and include the text of, or the URI or
260
+ hyperlink to, this Public License.
261
+
262
+ 2. You may satisfy the conditions in Section 3(a)(1) in any
263
+ reasonable manner based on the medium, means, and context in
264
+ which You Share the Licensed Material. For example, it may be
265
+ reasonable to satisfy the conditions by providing a URI or
266
+ hyperlink to a resource that includes the required
267
+ information.
268
+
269
+ 3. If requested by the Licensor, You must remove any of the
270
+ information required by Section 3(a)(1)(A) to the extent
271
+ reasonably practicable.
272
+
273
+ 4. If You Share Adapted Material You produce, the Adapter's
274
+ License You apply must not prevent recipients of the Adapted
275
+ Material from complying with this Public License.
276
+
277
+
278
+ Section 4 -- Sui Generis Database Rights.
279
+
280
+ Where the Licensed Rights include Sui Generis Database Rights that
281
+ apply to Your use of the Licensed Material:
282
+
283
+ a. for the avoidance of doubt, Section 2(a)(1) grants You the right
284
+ to extract, reuse, reproduce, and Share all or a substantial
285
+ portion of the contents of the database;
286
+
287
+ b. if You include all or a substantial portion of the database
288
+ contents in a database in which You have Sui Generis Database
289
+ Rights, then the database in which You have Sui Generis Database
290
+ Rights (but not its individual contents) is Adapted Material; and
291
+
292
+ c. You must comply with the conditions in Section 3(a) if You Share
293
+ all or a substantial portion of the contents of the database.
294
+
295
+ For the avoidance of doubt, this Section 4 supplements and does not
296
+ replace Your obligations under this Public License where the Licensed
297
+ Rights include other Copyright and Similar Rights.
298
+
299
+
300
+ Section 5 -- Disclaimer of Warranties and Limitation of Liability.
301
+
302
+ a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE
303
+ EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS
304
+ AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF
305
+ ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS,
306
+ IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION,
307
+ WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR
308
+ PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS,
309
+ ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT
310
+ KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT
311
+ ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU.
312
+
313
+ b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE
314
+ TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION,
315
+ NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT,
316
+ INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES,
317
+ COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR
318
+ USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN
319
+ ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR
320
+ DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR
321
+ IN PART, THIS LIMITATION MAY NOT APPLY TO YOU.
322
+
323
+ c. The disclaimer of warranties and limitation of liability provided
324
+ above shall be interpreted in a manner that, to the extent
325
+ possible, most closely approximates an absolute disclaimer and
326
+ waiver of all liability.
327
+
328
+
329
+ Section 6 -- Term and Termination.
330
+
331
+ a. This Public License applies for the term of the Copyright and
332
+ Similar Rights licensed here. However, if You fail to comply with
333
+ this Public License, then Your rights under this Public License
334
+ terminate automatically.
335
+
336
+ b. Where Your right to use the Licensed Material has terminated under
337
+ Section 6(a), it reinstates:
338
+
339
+ 1. automatically as of the date the violation is cured, provided
340
+ it is cured within 30 days of Your discovery of the
341
+ violation; or
342
+
343
+ 2. upon express reinstatement by the Licensor.
344
+
345
+ For the avoidance of doubt, this Section 6(b) does not affect any
346
+ right the Licensor may have to seek remedies for Your violations
347
+ of this Public License.
348
+
349
+ c. For the avoidance of doubt, the Licensor may also offer the
350
+ Licensed Material under separate terms or conditions or stop
351
+ distributing the Licensed Material at any time; however, doing so
352
+ will not terminate this Public License.
353
+
354
+ d. Sections 1, 5, 6, 7, and 8 survive termination of this Public
355
+ License.
356
+
357
+
358
+ Section 7 -- Other Terms and Conditions.
359
+
360
+ a. The Licensor shall not be bound by any additional or different
361
+ terms or conditions communicated by You unless expressly agreed.
362
+
363
+ b. Any arrangements, understandings, or agreements regarding the
364
+ Licensed Material not stated herein are separate from and
365
+ independent of the terms and conditions of this Public License.
366
+
367
+
368
+ Section 8 -- Interpretation.
369
+
370
+ a. For the avoidance of doubt, this Public License does not, and
371
+ shall not be interpreted to, reduce, limit, restrict, or impose
372
+ conditions on any use of the Licensed Material that could lawfully
373
+ be made without permission under this Public License.
374
+
375
+ b. To the extent possible, if any provision of this Public License is
376
+ deemed unenforceable, it shall be automatically reformed to the
377
+ minimum extent necessary to make it enforceable. If the provision
378
+ cannot be reformed, it shall be severed from this Public License
379
+ without affecting the enforceability of the remaining terms and
380
+ conditions.
381
+
382
+ c. No term or condition of this Public License will be waived and no
383
+ failure to comply consented to unless expressly agreed to by the
384
+ Licensor.
385
+
386
+ d. Nothing in this Public License constitutes or may be interpreted
387
+ as a limitation upon, or waiver of, any privileges and immunities
388
+ that apply to the Licensor or You, including from the legal
389
+ processes of any jurisdiction or authority.
390
+
391
+
392
+ =======================================================================
393
+
394
+ Creative Commons is not a party to its public
395
+ licenses. Notwithstanding, Creative Commons may elect to apply one of
396
+ its public licenses to material it publishes and in those instances
397
+ will be considered the “Licensor.” The text of the Creative Commons
398
+ public licenses is dedicated to the public domain under the CC0 Public
399
+ Domain Dedication. Except for the limited purpose of indicating that
400
+ material is shared under a Creative Commons public license or as
401
+ otherwise permitted by the Creative Commons policies published at
402
+ creativecommons.org/policies, Creative Commons does not authorize the
403
+ use of the trademark "Creative Commons" or any other trademark or logo
404
+ of Creative Commons without its prior written consent including,
405
+ without limitation, in connection with any unauthorized modifications
406
+ to any of its public licenses or any other arrangements,
407
+ understandings, or agreements concerning use of licensed material. For
408
+ the avoidance of doubt, this paragraph does not form part of the
409
+ public licenses.
410
+
411
+ Creative Commons may be contacted at creativecommons.org.
412
+
package/README.md CHANGED
@@ -1,3 +1,19 @@
1
- # Temporary Holding Version
1
+ # @team-antioch/sc2-asset-catalog
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ StarCraft II doodads described in words (look, kind, size, role, story, biome), what mappers have used them as (Doodad Uses), a keyword and facet search over them, and an extractor that builds the game's own fields (names, packages, categories, tilesets, variations, gallery pictures) from SC2Mapster's SC2GameData into your cache folder. No game data ships in this package.
4
+
5
+ ```sh
6
+ npx @team-antioch/sc2-asset-catalog extract
7
+ ```
8
+
9
+ ```js
10
+ import { readStockDoodadSources, searchDoodads } from "@team-antioch/sc2-asset-catalog";
11
+
12
+ const { results } = searchDoodads({ words: ["crate"], limit: 10 }, readStockDoodadSources());
13
+ ```
14
+
15
+ `sc2-asset-catalog setup-renderer` builds the WhiteoutFlakes model viewer, and `sc2-asset-catalog render` then renders reference sheets with it (optional; Apple silicon macOS with StarCraft II, Xcode and Homebrew). `--renderer <module>` renders with a model renderer of your own instead. The WhiteoutFlakes notice is in [THIRD-PARTY-NOTICES.md](THIRD-PARTY-NOTICES.md).
16
+
17
+ The [Doodad Finder](https://www.npmjs.com/package/@team-antioch/sc2-doodad-finder) is the page built on it. More: the [repo's README](https://github.com/TeamAntioch/sc2-asset-catalog#readme).
18
+
19
+ Not affiliated with or endorsed by Blizzard Entertainment. The code is under the MIT License (LICENSE). The descriptions and Doodad Uses in `data/` are under CC BY 4.0 (LICENSE-DATA).
@@ -0,0 +1,54 @@
1
+ # Third-party notices
2
+
3
+ ## WhiteoutFlakes
4
+
5
+ The built-in renderer (`src/catalog/whiteoutflakes.ts`, `src/catalog/whiteoutflakes-frames.ts`) runs the
6
+ [WhiteoutFlakes](https://github.com/FernandoS27/WhiteoutFlakes) model viewer, and
7
+ `scripts/build-whiteoutflakes.sh` builds it from its source at commit d2756ce, with build settings taken
8
+ from its CI. No WhiteoutFlakes code ships in this package. Its export recipe, its settings file and
9
+ its command line are used as WhiteoutFlakes documents and reads them, and the build script carries its
10
+ build pins, so its licence and AI-derived works notice are kept here:
11
+
12
+ ```text
13
+ BSD 3-Clause License
14
+
15
+ Copyright (c) 2026, Fernando Sahmkow
16
+
17
+ Redistribution and use in source and binary forms, with or without
18
+ modification, are permitted provided that the following conditions are met:
19
+
20
+ 1. Redistributions of source code must retain the above copyright notice, this
21
+ list of conditions and the following disclaimer.
22
+
23
+ 2. Redistributions in binary form must reproduce the above copyright notice,
24
+ this list of conditions and the following disclaimer in the documentation
25
+ and/or other materials provided with the distribution.
26
+
27
+ 3. Neither the name of the copyright holder nor the names of its
28
+ contributors may be used to endorse or promote products derived from
29
+ this software without specific prior written permission.
30
+
31
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
32
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
34
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
35
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
39
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
+ ```
42
+
43
+ ```text
44
+ AI-Derived Works Notice
45
+
46
+ For the purposes of the BSD-3-Clause License, any code generated
47
+ by automated systems, machine learning models, or AI tools that
48
+ is derived from, based on, or generated using this software as
49
+ input shall be considered a derivative work.
50
+
51
+ Redistributions of such AI-derived works must retain the original
52
+ copyright notice, license conditions, and disclaimer as required
53
+ by the BSD-3-Clause License.
54
+ ```
@@ -0,0 +1,7 @@
1
+ #!/usr/bin/env node
2
+ import { runCatalogCli } from "../dist/cli.js";
3
+
4
+ runCatalogCli(process.argv.slice(2)).catch((error) => {
5
+ console.error(error instanceof Error ? error.message : error);
6
+ process.exitCode = 1;
7
+ });