--- import { getCollection } from 'astro:content'; import Header from '../components/Header.astro'; import Footer from '../components/Footer.astro'; import PluginCard from '../components/PluginCard.astro'; import Hero from '../components/sections/Hero.astro'; import WhatIsAPlugin from '../components/sections/WhatIsAPlugin.astro'; import WhyHere from '../components/sections/WhyHere.astro'; import HowItWorks from '../components/sections/HowItWorks.astro'; import FrontRow from '../components/sections/FrontRow.astro'; import '../styles/global.css'; // Read at build time by the collection's loader (scripts/loader.mjs) — this site is static files // on cPanel. Under CI a registry that does not answer fails the build; off CI that entry is left out. const plugins = (await getCollection('plugins')) .map(({ id, data }) => ({ slug: id, name: data.pkg, description: data.description, repo: data.repo, npm: data.npm, jsr: data.jsr, version: data.version, runtimes: data.runtimes, // An internal plugin could be listed on npm alone and still be ours, so check both fields. internal: (data.jsr ?? data.npm ?? '').startsWith('@green-tea/'), })) .sort((a, b) => a.name.localeCompare(b.name)); --- Green Tea. plugins

The listing

Official plugins, and room for yours

Three to start. The version and runtimes on each card come straight from the registry.

{plugins.map((plugin) => )}