Skip to content

feat(site): add skills.sh directory with worker proxy - #3

Merged
taosher merged 1 commit into
masterfrom
t3/skills-sh-api-integration
Nov 11, 2026
Merged

taosher merged 1 commit into
masterfrom
t3/skills-sh-api-integration

Conversation

@taosher

@taosher taosher commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Added a public /registry page backed by skills.sh: search, All-time/Trending/Hot views, and an in-site skill detail drawer with install command, install counts, SKILL.md content, and related skills.
  • Converted the site from Cloudflare Pages to a Cloudflare Worker with static assets. The Worker serves the SPA and reverse-proxies /api/skills-sh/* to skills.sh, keeping HTML parsing and sanitization on the edge and avoiding browser CORS.
  • Added matching /api/skills-sh/* aliases to the Go catalog for self-hosted and Docker deployments.
  • Added SKILLS_SH_ENABLED and SKILL_REGISTRY_SKILLS_SH_URL configuration, plus site-local VITE_SKILLS_SH_PROXY and Worker bindings in wrangler.jsonc.
  • Updated CI, the Makefile deploy target, Docker/Zarf assets, and English/Chinese docs for the Worker-based deploy flow.
  • Moved the frame protection from the CSP meta tag to an X-Frame-Options: DENY response header so the policy is actually enforced.

Testing

  • Added worker tests for the skills.sh proxy (browse, search, detail, sanitization, and disabled mode).
  • Added page tests for the registry view, search behavior, tab switching, and the detail drawer.
  • Ran the site test suite and build with the existing apps/site scripts.
  • Ran the Go tests covering the public registry and skills.sh aliases.
  • Deployed the Worker and verified manually: / and /registry return 200, the directory renders 12 skill cards, tab switching and react search work, the detail drawer opens with content, /api/skills-sh/capabilities reports enabled, and the browser console has no errors.

- Add public /registry page with search, all-time/trending/hot views and detail drawer
- Serve the SPA and proxy /api/skills-sh/* through a Cloudflare Worker
- Expose matching /api/skills-sh aliases from the Go catalog with SKILLS_SH_ENABLED
- Deploy the site as a Worker with static assets instead of Pages
@taosher
taosher merged commit a49058b into master Nov 11, 2026
2 checks passed
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