You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 24b1a25
Browse filesBrowse the repository at this point in the historyBrowse files
Add "free alternatives to ..." pages with recorded licences (#189)
Developers search for free alternatives to well-known paid products,
and the results are listicles with no licence detail. Six generated
pages answer those searches from the catalog instead:
- site/alternatives.json defines each page: a title, one human-written
context sentence that says what the paid product is (no claims about
it), and the match: ids, or categories with tags or subcategories,
less an exclude list. Pages: Synty low-poly packs, Mixamo, Quixel
Megascans, Aseprite, Substance Painter, stock music subscriptions.
- site/lib/alternatives-page.mjs lists only active entries, with the
same cards (licence, commercial verdict, verified date), head and
CollectionPage structured data as category pages.
- The build writes dist/alternatives/<slug>/, adds them to the sitemap,
and links each from the category pages it lists entries in. It fails
on an unknown id or category, a bad or duplicate slug, or a page
with fewer than three matches.
- Tests cover matching, the checks, category links and the sitemap.
Fixes#189
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"_comment": "\"Free alternatives to ...\" pages (#189), one per common search, written to dist/alternatives/<slug>/. Each lists the active entries that match: any id in `ids`, or an entry in one of `categories` that carries one of `tags` or `subcategories`, less any id in `exclude`. Name the paid product only to describe the search; `context` says what it is and what to look for here, with no claims about it. The build fails when a page matches fewer than three active entries.",
3
+
"pages": [
4
+
{
5
+
"slug": "synty-low-poly-packs",
6
+
"title": "Free alternatives to Synty low-poly packs",
7
+
"context": "Synty sells themed low-poly 3D packs (towns, dungeons, sci-fi) for game engines. These catalog sources offer free low-poly 3D kits and characters in a similar flat, stylised look; each card shows the licence as read at the source.",
8
+
"categories": ["3d", "characters"],
9
+
"tags": ["low-poly", "modular"],
10
+
"subcategories": ["modular"]
11
+
},
12
+
{
13
+
"slug": "mixamo",
14
+
"title": "Free alternatives to Mixamo",
15
+
"context": "Mixamo is Adobe's online service for rigging characters and applying motion-capture animations. These catalog sources are free animation libraries, motion capture and rigging tools you can download and use directly.",
"context": "Megascans is a library of scanned 3D assets and surfaces, now sold through Fab. These catalog sources offer free PBR textures, scanned models and HDRI skies.",
"context": "Aseprite is a paid pixel-art and sprite animation editor. These catalog sources are free pixel-art editors and sprite tools; each tool's own licence is separate from the art you make with it.",
33
+
"categories": ["tools"],
34
+
"tags": ["sprite-editor"],
35
+
"subcategories": ["pixel"]
36
+
},
37
+
{
38
+
"slug": "substance-painter",
39
+
"title": "Free alternatives to Substance Painter",
40
+
"context": "Substance 3D Painter is Adobe's paid tool for painting textures onto 3D models. These catalog sources are free texturing, material and painting tools.",
"title": "Free alternatives to stock music subscriptions",
46
+
"context": "Subscription libraries license music for videos and games for a monthly fee. These catalog sources offer free music for games; several ask for credit, and each card shows what the licence asks.",
<p class="section-blurb">${esc(sources)}, active entries only. Licences are as the catalog read them at the source on each entry's verified date; re-check the live source before shipping.</p>
113
+
<div class="entry-list" id="entry-grid">
114
+
${grid}
115
+
</div>
116
+
</main>
117
+
${siteFooterHtml({root: "../../", stamp, total })}
<p class="category-search"><a href="../../?cat=${encodeURIComponent(cat)}#catalog">Search and filter on the catalog page</a> · <a href="feed.xml">Feed of new ${esc(label)} sources</a></p>
eq("alternatives: active matches by tag, subcategory and id, less exclude",alt.alternativesFor(altDef,altEntries).map((e)=>e.id).join(),"a,d,e");
2637
+
eq("alternatives: a valid page passes",alt.checkAlternatives([altDef],altEntries,{"3d": {},tools: {}}).length,0);
2638
+
has("alternatives: too few matches fails",alt.checkAlternatives([{ ...altDef,ids: [],subcategories: []}],altEntries,{"3d": {}}).join(),"needs at least 3");
2639
+
has("alternatives: an unknown id fails",alt.checkAlternatives([{ ...altDef,ids: ["nope"]}],altEntries,{"3d": {}}).join(),'unknown entry "nope"');
2640
+
has("alternatives: a bad slug fails",alt.checkAlternatives([{ ...altDef,slug: "Bad Slug"}],altEntries,{"3d": {}}).join(),"kebab-case");
2641
+
eq("alternatives: linked from the categories it lists",alt.alternativesForCategory([altDef],altEntries,"tools").length,1);
2642
+
eq("alternatives: not from a category it does not list",alt.alternativesForCategory([altDef],altEntries,"audio").length,0);
0 commit comments