MCPcopy Create free account
hub / github.com/cursor/community-plugins / getPluginBySlug

Function getPluginBySlug

apps/cursor/src/data/queries.ts:458–471  ·  view source on GitHub ↗
(slug: string)

Source from the content-addressed store, hash-verified

456}
457
458export async function getPluginBySlug(slug: string) {
459 "use cache";
460 cacheLife("hours");
461 cacheTag("plugins", `plugin-${slug}`);
462
463 const supabase = await createClient();
464 const { data, error } = await supabase
465 .from("plugins")
466 .select("*, plugin_components(*)")
467 .eq("slug", slug)
468 .single();
469
470 return { data: data as PluginRow | null, error };
471}
472
473export async function getPendingPlugins() {
474 const supabase = await createClient();

Callers 4

generateMetadataFunction · 0.90
PageFunction · 0.90
renderImageFunction · 0.90
EditPluginContentFunction · 0.90

Calls 1

createClientFunction · 0.90

Tested by

no test coverage detected