Skip to content

Commit c38c58a

Browse files
committed
fix(site): list software and websites on the homepage
The endpoint list stopped at brands and never gained the collections added since: software, and websites (40,084 records, added this week). The playground resource picker was missing websites too, so the two newest collections were unreachable from the site even though the API serves them. Games are deliberately still absent: deploy-pages strips /v1/games from the published artifact (a million per-record files exceed the Pages deployment window), so listing them would hand visitors a 404. Also widens the meta description, which advertised only smartphone/SoC/GPU/CPU. Verified by building the site and grepping dist/index.html: v1/websites and v1/software render, games does not. Refs #1
1 parent 13b566c commit c38c58a

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

site/src/pages/index.astro

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ const endpoints = [
1818
{ label: "/v1/socs/{slug}", desc: "System-on-chip detail", href: `${base}v1/socs/snapdragon-8-elite-gen-5/index.json` },
1919
{ label: "/v1/gpus/{slug}", desc: "Discrete GPU detail", href: `${base}v1/gpus/geforce-rtx-5090/index.json` },
2020
{ label: "/v1/cpus/{slug}", desc: "Desktop / laptop CPU", href: `${base}v1/cpus/core-i9-14900k/index.json` },
21+
{ label: "/v1/software", desc: "List all software", href: `${base}v1/software/index.json` },
22+
{ label: "/v1/websites", desc: "List all websites", href: `${base}v1/websites/index.json` },
2123
{ label: "/v1/brands", desc: "All brands", href: `${base}v1/brands/index.json` },
2224
];
2325
---
@@ -39,7 +41,7 @@ const endpoints = [
3941
})();
4042
</script>
4143
<title>TechAPI — open data for consumer electronics specs</title>
42-
<meta name="description" content="A free, open, static dataset of smartphone, SoC, GPU and CPU specs with computed scores. No key, no server — just fetch JSON." />
44+
<meta name="description" content="A free, open, static dataset of smartphone, laptop, SoC, GPU and CPU specs — plus games, software and websites — with computed scores. No key, no server — just fetch JSON." />
4345
<link rel="preconnect" href="https://fonts.googleapis.com" />
4446
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
4547
<link href="https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap" rel="stylesheet" />
@@ -168,6 +170,7 @@ const endpoints = [
168170
<option value="watches">watches</option>
169171
<option value="pdas">pdas</option>
170172
<option value="software">software</option>
173+
<option value="websites">websites</option>
171174
<option value="socs">socs</option>
172175
<option value="gpus">gpus</option>
173176
<option value="cpus">cpus</option>

0 commit comments

Comments
 (0)