--- import { getCollection } from 'astro:content'; import { readEntry } from '../../scripts/registry.mjs'; // Remove this import together with scripts/preview.mjs once the seed plugins are published. import { PREVIEW } from '../../scripts/preview.mjs'; import PluginCard from '../components/PluginCard.astro'; import '../styles/global.css'; // Read at build time, never at request time — this site is static files on cPanel. Under CI a // registry that does not answer fails the build; off CI an unpublished package falls back to // preview data so the page can still be looked at. See scripts/registry.mjs. const entries = await getCollection('plugins'); const plugins = await Promise.all( entries.map(async (entry) => { const { version, runtimes } = await readEntry(entry.data, PREVIEW); return { name: entry.data.npm ?? entry.data.jsr, description: entry.data.description, repo: entry.data.repo, npm: entry.data.npm, jsr: entry.data.jsr, version, runtimes, // An internal plugin could be listed on JSR alone and still be ours, so check both fields. internal: (entry.data.npm ?? entry.data.jsr ?? '').startsWith('@green-tea/'), }; }), ); plugins.sort((a, b) => a.name.localeCompare(b.name)); --- green-tea plugins

green-tea plugins

A plugin is a named object that adds steps and providers to your graph. It imports green-tea as types only, so installing one never pulls a second copy of core.

Add your plugin →

Everything here needs @green-tea/core@26.9.0-beta.2 or newer. That is the release where a plugin became { name, mount } and app.boot() went public; on anything older these will not mount.

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