Skip to content

feat: add samples.json manifest for downstream catalogs - #302

Open
tmoreton wants to merge 2 commits into
strands-agents:mainfrom
tmoreton:add-samples-manifest
Open

feat: add samples.json manifest for downstream catalogs#302
tmoreton wants to merge 2 commits into
strands-agents:mainfrom
tmoreton:add-samples-manifest

Conversation

@tmoreton

@tmoreton tmoreton commented Sep 3, 2026

Copy link
Copy Markdown

What

Adds samples.json — a machine-readable index of every sample in the repo — plus generate-samples-manifest.mjs, the script that produces it from the repo tree.

Each entry carries: id, language, category + categoryLabel, title, description, tags, path, GitHub url, and notebook (when present). Categories are listed in their numbered order for grouped rendering.

Why

Downstream consumers — starting with the docs site (strandsagents.com) examples page — currently can't render a styled, grouped, filterable catalog of samples without scraping README prose, which is brittle. A committed manifest gives them structured metadata to read directly, and lets this repo own the card copy.

How it's built

node generate-samples-manifest.mjs walks python/** and typescript/**, treats the shallowest README/notebook-bearing directory under each category as a sample, derives the category from the numbered folder, and lifts each title/description/tags from the curated category-README tables — falling back to the sample README's first paragraph so every entry has a blurb. Re-run it after adding or changing samples.

Covers 86 samples across 8 Python + 2 TypeScript categories.

Timothy Moreton added 2 commits September 3, 2026 09:54
Add a machine-readable index of every sample (id, language, category,
title, description, tags, path, GitHub URL, notebook) so consumers like
the docs site can render a styled, grouped, filterable catalog without
scraping README prose.
Regenerate the manifest with `node generate-samples-manifest.mjs` after
adding or changing samples, so samples.json never drifts from the tree.
@github-actions

github-actions Bot commented Sep 4, 2026

Copy link
Copy Markdown

Latest scan for commit: 0be73db | Updated: 2026-09-04 00:19:07 UTC

✅ Security Scan Report (PR Files Only)

Scanned Files

  • generate-samples-manifest.mjs
  • samples.json

Security Scan Results

Critical High Medium Low Info
0 0 0 0 0

Threshold: High

No security issues detected in your changes. Great job!

This scan only covers files changed in this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant