@grove-dev/cli 0.7.0 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (187) hide show
  1. package/README.md +53 -13
  2. package/dist/audit-cli.d.ts +1 -1
  3. package/dist/audit-cli.d.ts.map +1 -1
  4. package/dist/audit-cli.js +11 -11
  5. package/dist/audit-cli.js.map +1 -1
  6. package/dist/audit.d.ts +4 -4
  7. package/dist/audit.d.ts.map +1 -1
  8. package/dist/audit.js +91 -51
  9. package/dist/audit.js.map +1 -1
  10. package/dist/collection-cli.d.ts.map +1 -1
  11. package/dist/collection-cli.js +1 -1
  12. package/dist/collection-cli.js.map +1 -1
  13. package/dist/diff.d.ts +43 -0
  14. package/dist/diff.d.ts.map +1 -0
  15. package/dist/diff.js +70 -0
  16. package/dist/diff.js.map +1 -0
  17. package/dist/hash.d.ts +36 -0
  18. package/dist/hash.d.ts.map +1 -0
  19. package/dist/hash.js +82 -0
  20. package/dist/hash.js.map +1 -0
  21. package/dist/health-cli.d.ts +3 -0
  22. package/dist/health-cli.d.ts.map +1 -0
  23. package/dist/health-cli.js +15 -0
  24. package/dist/health-cli.js.map +1 -0
  25. package/dist/health.d.ts +7 -0
  26. package/dist/health.d.ts.map +1 -0
  27. package/dist/health.js +68 -0
  28. package/dist/health.js.map +1 -0
  29. package/dist/icons-cli.d.ts +1 -1
  30. package/dist/icons-cli.d.ts.map +1 -1
  31. package/dist/icons-cli.js +33 -14
  32. package/dist/icons-cli.js.map +1 -1
  33. package/dist/import-cli.d.ts +1 -1
  34. package/dist/import-cli.d.ts.map +1 -1
  35. package/dist/import-cli.js +6 -6
  36. package/dist/import-cli.js.map +1 -1
  37. package/dist/index.js +114 -70
  38. package/dist/index.js.map +1 -1
  39. package/dist/init.d.ts +52 -4
  40. package/dist/init.d.ts.map +1 -1
  41. package/dist/init.js +378 -57
  42. package/dist/init.js.map +1 -1
  43. package/dist/package-manager.d.ts +57 -0
  44. package/dist/package-manager.d.ts.map +1 -0
  45. package/dist/package-manager.js +157 -0
  46. package/dist/package-manager.js.map +1 -0
  47. package/dist/package.json +3 -2
  48. package/dist/r/about.json +23 -0
  49. package/dist/r/browse.json +90 -0
  50. package/dist/r/collections.json +60 -0
  51. package/dist/r/contributors.json +23 -0
  52. package/dist/r/default.json +439 -0
  53. package/dist/r/home.json +68 -0
  54. package/dist/r/not-found.json +23 -0
  55. package/dist/r/project-card.json +49 -0
  56. package/dist/r/record.json +60 -0
  57. package/dist/r/registry.json +916 -0
  58. package/dist/r/shell.json +76 -0
  59. package/dist/r/submit.json +29 -0
  60. package/dist/r/taxonomy.json +66 -0
  61. package/dist/r/ui.json +55 -0
  62. package/dist/readme-cli.d.ts +1 -1
  63. package/dist/readme-cli.d.ts.map +1 -1
  64. package/dist/readme-cli.js +37 -47
  65. package/dist/readme-cli.js.map +1 -1
  66. package/dist/registry.d.ts +80 -0
  67. package/dist/registry.d.ts.map +1 -0
  68. package/dist/registry.js +180 -0
  69. package/dist/registry.js.map +1 -0
  70. package/dist/run.d.ts +7 -0
  71. package/dist/run.d.ts.map +1 -0
  72. package/dist/run.js +20 -0
  73. package/dist/run.js.map +1 -0
  74. package/dist/unified-diff.d.ts +14 -0
  75. package/dist/unified-diff.d.ts.map +1 -0
  76. package/dist/unified-diff.js +103 -0
  77. package/dist/unified-diff.js.map +1 -0
  78. package/dist/update.d.ts +66 -0
  79. package/dist/update.d.ts.map +1 -0
  80. package/dist/update.js +311 -0
  81. package/dist/update.js.map +1 -0
  82. package/package.json +5 -4
  83. package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +0 -33
  84. package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +0 -20
  85. package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +0 -48
  86. package/dist/site/.github/pull_request_template.md +0 -27
  87. package/dist/site/.github/workflows/ci.yml +0 -21
  88. package/dist/site/.github/workflows/cleanup.yml +0 -27
  89. package/dist/site/.github/workflows/deploy.yml +0 -36
  90. package/dist/site/.github/workflows/readme.yml +0 -41
  91. package/dist/site/.github/workflows/sync-contributors.yml +0 -28
  92. package/dist/site/.github/workflows/sync-github.yml +0 -31
  93. package/dist/site/README.md +0 -89
  94. package/dist/site/astro.config.mjs +0 -26
  95. package/dist/site/content/records/crewai.md +0 -898
  96. package/dist/site/content/records/dify.md +0 -35
  97. package/dist/site/content/records/flowise.md +0 -38
  98. package/dist/site/content/records/llamaindex.md +0 -45
  99. package/dist/site/content/records/ollama.md +0 -39
  100. package/dist/site/content/records/open-webui.md +0 -35
  101. package/dist/site/data/collections/top-ai-agents.yml +0 -14
  102. package/dist/site/data/collections/top-flutter.yml +0 -12
  103. package/dist/site/data/health.yml +0 -13
  104. package/dist/site/data/records/.gitkeep +0 -0
  105. package/dist/site/data/records/crewai.yml +0 -23
  106. package/dist/site/data/records/dify.yml +0 -23
  107. package/dist/site/data/records/flowise.yml +0 -23
  108. package/dist/site/data/records/llamaindex.yml +0 -23
  109. package/dist/site/data/records/ollama.yml +0 -30
  110. package/dist/site/data/records/open-webui.yml +0 -23
  111. package/dist/site/data/taxonomy/categories.yml +0 -10
  112. package/dist/site/data/taxonomy/distribution-channels.yml +0 -43
  113. package/dist/site/data/taxonomy/licenses.yml +0 -16
  114. package/dist/site/data/taxonomy/platforms.yml +0 -20
  115. package/dist/site/data/taxonomy/stacks.yml +0 -15
  116. package/dist/site/data/taxonomy/topics.yml +0 -29
  117. package/dist/site/grove.config.ts +0 -110
  118. package/dist/site/package.json +0 -34
  119. package/dist/site/public/icons/.grove-icons.json +0 -47
  120. package/dist/site/public/icons/platforms/android.svg +0 -1
  121. package/dist/site/public/icons/platforms/app.svg +0 -4
  122. package/dist/site/public/icons/platforms/chrome.svg +0 -1
  123. package/dist/site/public/icons/platforms/desktop.svg +0 -4
  124. package/dist/site/public/icons/platforms/embedded.svg +0 -5
  125. package/dist/site/public/icons/platforms/ios.svg +0 -1
  126. package/dist/site/public/icons/platforms/linux.svg +0 -1
  127. package/dist/site/public/icons/platforms/macos.svg +0 -1
  128. package/dist/site/public/icons/platforms/ubuntu.svg +0 -1
  129. package/dist/site/public/icons/platforms/web.svg +0 -5
  130. package/dist/site/public/icons/platforms/windows.svg +0 -1
  131. package/dist/site/public/icons/stacks/android.svg +0 -1
  132. package/dist/site/public/icons/stacks/apple.svg +0 -1
  133. package/dist/site/public/icons/stacks/bun.svg +0 -1
  134. package/dist/site/public/icons/stacks/capacitor.svg +0 -1
  135. package/dist/site/public/icons/stacks/clojure.svg +0 -1
  136. package/dist/site/public/icons/stacks/dart.svg +0 -1
  137. package/dist/site/public/icons/stacks/deno.svg +0 -1
  138. package/dist/site/public/icons/stacks/django.svg +0 -1
  139. package/dist/site/public/icons/stacks/docker.svg +0 -1
  140. package/dist/site/public/icons/stacks/firebase.svg +0 -1
  141. package/dist/site/public/icons/stacks/flutter.svg +0 -1
  142. package/dist/site/public/icons/stacks/go.svg +0 -1
  143. package/dist/site/public/icons/stacks/graphql.svg +0 -1
  144. package/dist/site/public/icons/stacks/ionic.svg +0 -1
  145. package/dist/site/public/icons/stacks/java.svg +0 -1
  146. package/dist/site/public/icons/stacks/javascript.svg +0 -1
  147. package/dist/site/public/icons/stacks/kotlin.svg +0 -1
  148. package/dist/site/public/icons/stacks/llm.svg +0 -4
  149. package/dist/site/public/icons/stacks/mongodb.svg +0 -1
  150. package/dist/site/public/icons/stacks/nodejs.svg +0 -1
  151. package/dist/site/public/icons/stacks/python.svg +0 -1
  152. package/dist/site/public/icons/stacks/rag.svg +0 -6
  153. package/dist/site/public/icons/stacks/react-native.svg +0 -1
  154. package/dist/site/public/icons/stacks/react.svg +0 -1
  155. package/dist/site/public/icons/stacks/rust.svg +0 -1
  156. package/dist/site/public/icons/stacks/solidity.svg +0 -1
  157. package/dist/site/public/icons/stacks/sveltekit.svg +0 -1
  158. package/dist/site/public/icons/stacks/swift.svg +0 -1
  159. package/dist/site/public/icons/stacks/tauri.svg +0 -1
  160. package/dist/site/public/icons/stacks/tensorflow.svg +0 -1
  161. package/dist/site/public/icons/stacks/typescript.svg +0 -1
  162. package/dist/site/public/icons/stacks/vue.svg +0 -1
  163. package/dist/site/public/logo.svg +0 -16
  164. package/dist/site/src/components/DirectoryBrowse.astro +0 -246
  165. package/dist/site/src/components/PipelineStrip.astro +0 -121
  166. package/dist/site/src/components/TaxonomyList.astro +0 -108
  167. package/dist/site/src/pages/404.astro +0 -63
  168. package/dist/site/src/pages/[slug]/[recordSlug].astro +0 -71
  169. package/dist/site/src/pages/[slug]/index.astro +0 -19
  170. package/dist/site/src/pages/[slug]/page/[page].astro +0 -32
  171. package/dist/site/src/pages/[slug]/page/cards.astro +0 -50
  172. package/dist/site/src/pages/[slug]/page/records.json.ts +0 -24
  173. package/dist/site/src/pages/about.astro +0 -130
  174. package/dist/site/src/pages/categories/[name].astro +0 -35
  175. package/dist/site/src/pages/categories/index.astro +0 -33
  176. package/dist/site/src/pages/collections/[slug].astro +0 -45
  177. package/dist/site/src/pages/collections/index.astro +0 -32
  178. package/dist/site/src/pages/contributors.astro +0 -115
  179. package/dist/site/src/pages/empty.astro +0 -24
  180. package/dist/site/src/pages/index.astro +0 -161
  181. package/dist/site/src/pages/licenses/[name].astro +0 -35
  182. package/dist/site/src/pages/stacks/[name].astro +0 -35
  183. package/dist/site/src/pages/stacks/index.astro +0 -35
  184. package/dist/site/src/pages/submit.astro +0 -183
  185. package/dist/site/src/styles/global.css +0 -21
  186. package/dist/site/tsconfig.json +0 -13
  187. /package/{dist/site/LICENSE → LICENSE} +0 -0
@@ -1,50 +0,0 @@
1
- ---
2
- /**
3
- * Card source for client-side filtering — `/{slug}/page/cards/`.
4
- *
5
- * Every record's card, rendered once by the same component the browse
6
- * page uses, as a bare fragment with no layout.
7
- *
8
- * Why it exists: browse pages prerender only their own 20 records, so
9
- * the page a visitor lands on is small and crawlable. Filtering happens
10
- * on the client and can surface any record in the directory, so the
11
- * controller needs cards it was not given. Fetching them from here —
12
- * lazily, once, after the page is interactive — keeps the card markup
13
- * to a single definition instead of a second one written in JavaScript.
14
- *
15
- * `noindex`: this is a machine surface. Every record it contains is
16
- * already indexable through the paginated browse pages and its own
17
- * detail page.
18
- */
19
- import siteConfig from "@grove/generated/site-config.json";
20
- import { getDirectoryIndexModel } from "@grove-dev/astro/server";
21
- import IndexRow from "@grove-dev/astro/components/IndexRow.astro";
22
-
23
- export function getStaticPaths() {
24
- const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
25
- return [{ params: { slug: routeSlug } }];
26
- }
27
-
28
- const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
29
- const { sorted } = getDirectoryIndexModel(new URLSearchParams(), siteConfig);
30
- ---
31
-
32
- <html lang="en">
33
- <head>
34
- <meta charset="utf-8" />
35
- <meta name="robots" content="noindex, nofollow" />
36
- <title>{`${slug} card source`}</title>
37
- </head>
38
- <body>
39
- <ul id="grove-index-cards">
40
- {sorted.map((item) => (
41
- <li class="m-0 p-0" data-record-slug={item.slug}>
42
- <IndexRow
43
- record={item as Parameters<typeof IndexRow>[0]["record"]}
44
- detailHref={`/${slug}/${item.slug}`}
45
- />
46
- </li>
47
- ))}
48
- </ul>
49
- </body>
50
- </html>
@@ -1,24 +0,0 @@
1
- /**
2
- * Record index for client-side filtering — `/{slug}/page/records.json`.
3
- *
4
- * The browse page used to inline this array in a `<script type=
5
- * "application/json">`. That put the entire directory into every
6
- * paginated page's HTML: at 300 records the browse page weighed over
7
- * 300 kB before a single card was read. Fetched instead, it arrives
8
- * once, on idle, and the browser caches it across every page of the
9
- * directory.
10
- */
11
- import siteConfig from "@grove/generated/site-config.json";
12
- import { getDirectoryIndexModel } from "@grove-dev/astro/server";
13
-
14
- export function getStaticPaths() {
15
- const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
16
- return [{ params: { slug: routeSlug } }];
17
- }
18
-
19
- export function GET() {
20
- const { clientItemsJson } = getDirectoryIndexModel(new URLSearchParams(), siteConfig);
21
- return new Response(clientItemsJson, {
22
- headers: { "content-type": "application/json; charset=utf-8" },
23
- });
24
- }
@@ -1,130 +0,0 @@
1
- ---
2
- /**
3
- * About page — generic.
4
- *
5
- * A continuous narrative in three movements: what this site is →
6
- * how it's built (the file-first pipeline: source files → Grove →
7
- * multiple outputs → ongoing sync) → how to contribute. Prose
8
- * sections, not a stack of cards — the reading experience is the
9
- * point here.
10
- *
11
- * The copy is generic — references "directory", "record",
12
- * "repository" — so it works for any blueprint, and every dynamic
13
- * value (`siteConfig.tagline`, `siteConfig.repoUrl`, item labels)
14
- * flows from the site config.
15
- */
16
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
17
- import Container from "@grove-dev/astro/layouts/Container.astro";
18
- import siteConfig from "@grove/generated/site-config.json";
19
- import { getAboutPageSeo, getPageContentHtml, indexSlug, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
20
- import { buttonClass } from "@grove-dev/astro/ui/button";
21
-
22
- const githubUrl = siteConfig.repoUrl;
23
- const seo = getAboutPageSeo(siteConfig);
24
- const slug = indexSlug();
25
- const item = itemLabel();
26
- const items = itemLabelPlural();
27
- const pageContentHtml = getPageContentHtml("about");
28
- ---
29
-
30
- <BaseLayout title={seo.title} description={seo.description} image={seo.image} jsonLd={seo.jsonLd} site={siteConfig}>
31
- <Container size="narrow">
32
- <article class="py-12 sm:py-16">
33
- <nav class="text-2xs text-muted-foreground" aria-label="Breadcrumb">
34
- <a href="/" class="hover:text-foreground">Home</a>
35
- <span class="mx-1.5 text-ink-300 dark:text-ink-700">/</span>
36
- <span class="text-foreground">About</span>
37
- </nav>
38
-
39
- {pageContentHtml ? (
40
- <section class="grove-prose mt-8" set:html={pageContentHtml} />
41
- ) : (
42
- <>
43
- <header class="mt-5">
44
- <span class="text-2xs font-medium uppercase tracking-wider text-muted-foreground">
45
- About
46
- </span>
47
- <h1 class="mt-1 m-0 text-[1.75rem] sm:text-[2.25rem] font-semibold tracking-[-0.02em] leading-[1.1] text-foreground">
48
- A directory that lives in files.
49
- </h1>
50
- <p class="mt-4 m-0 text-[1rem] sm:text-[1.0625rem] leading-relaxed text-foreground max-w-[62ch]">
51
- {siteConfig.name} is a curated, health-aware directory of open-source
52
- {items} — and every listing you see here is a plain YAML file in a
53
- public repository. This website is one of the outputs generated from
54
- those files.
55
- </p>
56
- </header>
57
-
58
- <section class="mt-10">
59
- <h2 class="m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground">
60
- Why it exists
61
- </h2>
62
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
63
- GitHub search and README lists optimize for the repository name and
64
- description. They rarely tell you whether a project is a real {item}
65
- or a demo, which stack it uses beyond the headline, how active it
66
- really is, or whether it has a clear license.
67
- </p>
68
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
69
- Each entry here carries the metadata a developer actually needs
70
- before opening the repo: stack, platforms, license, activity and
71
- health signals, plus curated notes — best for, why listed, caveats.
72
- Everything links back to real, runnable source. No SEO spam, no
73
- affiliate farms, no broken links.
74
- </p>
75
- </section>
76
-
77
- <section class="mt-10">
78
- <h2 class="m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground">
79
- How it's built
80
- </h2>
81
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
82
- The source of truth is a folder of files: one YAML record per
83
- {item}, taxonomy files for categories, stacks, platforms, and
84
- licenses, and Markdown for long-form notes. <a href="https://github.com/tortuvshin/grove" class="font-medium underline decoration-border underline-offset-2 hover:decoration-ring">Grove</a> validates
85
- those files, joins in synced GitHub metadata, and publishes them as
86
- multiple outputs — this website with its search and filters, a
87
- generated README, an <code class="font-mono text-[0.875em]">llms.txt</code> index
88
- for machines, and sitemap/SEO data.
89
- </p>
90
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
91
- Automation keeps the outputs current: weekly syncs refresh stars,
92
- activity, and contributor data, and every change to a source file
93
- rebuilds everything derived from it. There is no database and no
94
- server — the output is static HTML, and the content stays portable
95
- in files you can fork.
96
- </p>
97
- </section>
98
-
99
- <section class="mt-10">
100
- <h2 class="m-0 text-[1.25rem] sm:text-[1.375rem] font-semibold tracking-tight text-foreground">
101
- How to contribute
102
- </h2>
103
- <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-foreground">
104
- Because the content is files, contributing is a pull request: add a
105
- YAML record for a new {item}, fix a typo, or improve the metadata
106
- behind an existing listing. The <a href="/submit" class="font-medium underline decoration-border underline-offset-2 hover:decoration-ring">submit page</a> drafts
107
- the YAML for you from a repository URL, and every submission is
108
- reviewed against the curation bar before it lands.
109
- </p>
110
- </section>
111
-
112
- <section class="mt-10 flex flex-wrap items-center gap-3">
113
- <a href={`/${slug}`} class={buttonClass("primary", "sm")}>Browse the directory</a>
114
- {githubUrl && (
115
- <a
116
- href={githubUrl}
117
- target="_blank"
118
- rel="noopener noreferrer"
119
- class={buttonClass("secondary", "sm")}
120
- >
121
- View on GitHub
122
- </a>
123
- )}
124
- <a href="/submit" class={buttonClass("ghost", "sm")}>Submit a {item} →</a>
125
- </section>
126
- </>
127
- )}
128
- </article>
129
- </Container>
130
- </BaseLayout>
@@ -1,35 +0,0 @@
1
- ---
2
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
3
- import { getTaxonomyPageModel, itemLabelPlural } from "@grove-dev/astro/server";
4
- import siteConfig from "@grove/generated/site-config.json";
5
- import TaxonomyList from "../../components/TaxonomyList.astro";
6
-
7
- export function getStaticPaths() {
8
- const categories = siteConfig.taxonomy?.categories ?? [];
9
- return categories.map(({ id, name }) => ({
10
- params: { name: id },
11
- props: { displayName: name },
12
- }));
13
- }
14
-
15
- const { displayName } = Astro.props;
16
- const name = Astro.params.name;
17
- const model = getTaxonomyPageModel("categories", name, displayName, siteConfig);
18
- ---
19
-
20
- <BaseLayout
21
- title={model.seo.title}
22
- description={model.seo.description}
23
- image={model.seo.image}
24
- imageAlt={model.seo.imageAlt}
25
- jsonLd={model.seo.jsonLd}
26
- site={siteConfig}
27
- >
28
- <TaxonomyList
29
- name={name}
30
- eyebrow="Category"
31
- displayName={displayName}
32
- lede={`Browse ${itemLabelPlural()} in this directory in the ${displayName} category.`}
33
- records={model.records}
34
- />
35
- </BaseLayout>
@@ -1,33 +0,0 @@
1
- ---
2
- /**
3
- * Categories index — every category with live counts. Linked from the
4
- * default header nav; each tile opens the browse page pre-filtered to
5
- * the category (detail pages live at `/categories/<id>/`).
6
- */
7
- import siteConfig from "@grove/generated/site-config.json";
8
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
9
- import CategoryGrid from "@grove-dev/astro/components/CategoryGrid.astro";
10
- import { getTaxonomyIndexModel, getTaxonomyIndexSeo, itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
11
-
12
- const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
13
- const { categories } = getTaxonomyIndexModel();
14
- const itemNoun = { singular: itemLabel(), plural: itemLabelPlural() };
15
- const seo = getTaxonomyIndexSeo("categories", siteConfig);
16
- ---
17
-
18
- <BaseLayout
19
- title={seo.title}
20
- description={seo.description}
21
- image={seo.image}
22
- jsonLd={seo.jsonLd}
23
- site={siteConfig}
24
- >
25
- <CategoryGrid
26
- categories={categories}
27
- pathPrefix={`/${slug}`}
28
- itemLabelPlural={itemLabelPlural()}
29
- itemNoun={itemNoun}
30
- headingLevel={1}
31
- hrefFor={(categorySlug: string) => `/categories/${categorySlug}`}
32
- />
33
- </BaseLayout>
@@ -1,45 +0,0 @@
1
- ---
2
- import CollectionPage from "@grove-dev/astro/components/CollectionPage.astro";
3
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
4
- import {
5
- getCollectionPageModel,
6
- recordsToCollectionEntries,
7
- loadCollections,
8
- } from "@grove-dev/astro/server";
9
- import records from "@grove/generated/records.json";
10
- import siteConfig from "@grove/generated/site-config.json";
11
-
12
- export async function getStaticPaths() {
13
- const collections = await loadCollections(process.cwd());
14
- return collections.map((c) => ({ params: { slug: c.slug } }));
15
- }
16
-
17
- const { slug } = Astro.params;
18
- const collections = await loadCollections(process.cwd());
19
- const collection = collections.find((c) => c.slug === slug);
20
- if (!collection) return Astro.redirect("/404");
21
-
22
- const entries = recordsToCollectionEntries(
23
- (records as { records: unknown[] }).records as never,
24
- siteConfig,
25
- );
26
- const model = getCollectionPageModel(collection, entries, collections, siteConfig);
27
- ---
28
- <BaseLayout
29
- title={model.seo.title}
30
- description={model.seo.description}
31
- image={model.seo.image}
32
- imageAlt={model.seo.imageAlt}
33
- jsonLd={model.seo.jsonLd}
34
- noindex={model.seo.noindex}
35
- site={siteConfig}
36
- >
37
- <CollectionPage
38
- model={model}
39
- eyebrow={model.collection.kind === "curated" ? "Curated collection" : "Generated collection"}
40
- countNoun={{
41
- singular: siteConfig.blueprintConfig?.labelSingular ?? "item",
42
- plural: siteConfig.blueprintConfig?.labelPlural ?? "items",
43
- }}
44
- />
45
- </BaseLayout>
@@ -1,32 +0,0 @@
1
- ---
2
- import CollectionIndex from "@grove-dev/astro/components/CollectionIndex.astro";
3
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
4
- import {
5
- getCollectionIndexModel,
6
- recordsToCollectionEntries,
7
- loadCollections,
8
- } from "@grove-dev/astro/server";
9
- import records from "@grove/generated/records.json";
10
- import siteConfig from "@grove/generated/site-config.json";
11
-
12
- const collections = await loadCollections(process.cwd());
13
- const entries = recordsToCollectionEntries(
14
- (records as { records: unknown[] }).records as never,
15
- siteConfig,
16
- );
17
- const model = getCollectionIndexModel(collections, entries, siteConfig);
18
- const countNoun = {
19
- singular: siteConfig.blueprintConfig?.labelSingular ?? "item",
20
- plural: siteConfig.blueprintConfig?.labelPlural ?? "items",
21
- };
22
- const seo = model.seo;
23
- ---
24
- <BaseLayout
25
- title={seo?.title ?? "Collections"}
26
- description={seo?.description ?? "Curated and generated directories of related items."}
27
- image={seo?.image}
28
- jsonLd={seo?.jsonLd}
29
- site={siteConfig}
30
- >
31
- <CollectionIndex model={model} headingLevel={1} countNoun={countNoun} />
32
- </BaseLayout>
@@ -1,115 +0,0 @@
1
- ---
2
- /**
3
- * Contributors page — full list with per-user contribution counts.
4
- *
5
- * Generic: works for any blueprint (project-directory, resource-hub,
6
- * ecosystem-map) and any source of contributors. Reads from
7
- * `data/generated/contributors.json` if present, otherwise renders
8
- * a graceful empty state. The file is produced by the
9
- * `sync-contributors` GitHub Action (see `.github/workflows/`).
10
- *
11
- * The list represents contributors to the directory's own source
12
- * repository. Project owners in the directory are a separate metric.
13
- */
14
- import siteConfig from "@grove/generated/site-config.json";
15
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
16
- import EmptyState from "@grove-dev/astro/ui/EmptyState.astro";
17
- import { getContributorsPageModel } from "@grove-dev/astro/server";
18
-
19
- const { contributors: sorted, total, seo, contributorsGraphHref, showContributionCount } =
20
- getContributorsPageModel(siteConfig);
21
- ---
22
-
23
- <BaseLayout title={seo.title} description={seo.description} image={seo.image} jsonLd={seo.jsonLd} site={siteConfig}>
24
- <section class="py-12 sm:py-16">
25
- <div class="mx-auto w-full max-w-container px-5 sm:px-7">
26
- <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
27
- Community
28
- </span>
29
- <h1 class="m-0 mt-2 text-[2rem] sm:text-[2.5rem] font-semibold leading-[1.05] tracking-tight text-ink-900 dark:text-ink-100">
30
- {total > 0 ? `${total} community contributors` : "Community"}
31
- </h1>
32
- <p class="m-0 mt-3 max-w-2xl text-base leading-relaxed text-ink-700 dark:text-ink-200">
33
- {total > 0
34
- ? `People who have improved ${siteConfig.name} through code, curation, and review.`
35
- : `Community profiles will appear after ${siteConfig.name} syncs its source repository metadata.`}
36
- </p>
37
-
38
- {contributorsGraphHref && (
39
- <p class="m-0 mt-3 text-sm text-ink-500 dark:text-ink-400">
40
- <a
41
- href={contributorsGraphHref}
42
- target="_blank"
43
- rel="noopener noreferrer"
44
- class="font-medium underline decoration-ink-300 underline-offset-2 hover:decoration-ink-500 dark:decoration-ink-700 dark:hover:decoration-ink-400"
45
- >
46
- GitHub contributors graph →
47
- </a>
48
- </p>
49
- )}
50
- </div>
51
- </section>
52
-
53
- {sorted.length === 0 ? (
54
- <section class="pb-12 sm:pb-16">
55
- <div class="mx-auto w-full max-w-container px-5 sm:px-7">
56
- <EmptyState
57
- title="No contributors synced yet"
58
- description={`Contributor profiles come from data/generated/contributors.json, written by the weekly sync-contributors workflow. Run "grove sync contributors" (or wait for the scheduled sync) and every contributor avatar lands here.`}
59
- action={contributorsGraphHref
60
- ? { label: "View contributors on GitHub", href: contributorsGraphHref }
61
- : undefined}
62
- />
63
- </div>
64
- </section>
65
- ) : (
66
- <section class="py-12 sm:py-16" aria-label="Contributors list">
67
- <div class="mx-auto w-full max-w-container px-5 pb-16 sm:px-7">
68
- <ul
69
- class="m-0 grid list-none grid-cols-2 gap-3 p-0 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6"
70
- aria-label="Contributors"
71
- >
72
- {sorted.map((c) => {
73
- const href = c.profileUrl ?? `https://github.com/${c.username}`;
74
- const avatar =
75
- c.avatarUrl ??
76
- `https://avatars.githubusercontent.com/${c.username}?v=4&s=80`;
77
- return (
78
- <li class="m-0 p-0">
79
- <a
80
- href={href}
81
- target="_blank"
82
- rel="noopener noreferrer"
83
- class="group rounded-[calc(var(--radius)+0.25rem)] border border-border bg-card shadow-none transition-colors flex flex-col items-center gap-2 p-3 text-center no-underline hover:border-ink-300 dark:hover:border-ink-700"
84
- data-event="contributor_click"
85
- data-event-source="contributors_page"
86
- >
87
- <img
88
- src={avatar}
89
- alt={c.name ?? c.username}
90
- width="56"
91
- height="56"
92
- loading="lazy"
93
- decoding="async"
94
- class="h-14 w-14 rounded-full border border-ink-200 object-cover dark:border-ink-800"
95
- />
96
- <span class="line-clamp-1 text-sm font-medium text-ink-700 group-hover:text-ink-900 dark:text-ink-300 dark:group-hover:text-ink-100">
97
- {c.name ?? c.username}
98
- </span>
99
- <span class="text-2xs text-ink-500 dark:text-ink-400">
100
- @{c.username}
101
- </span>
102
- {showContributionCount && typeof c.contributions === "number" && (
103
- <span class="font-mono text-2xs text-ink-400">
104
- {c.contributions.toLocaleString()} contributions
105
- </span>
106
- )}
107
- </a>
108
- </li>
109
- );
110
- })}
111
- </ul>
112
- </div>
113
- </section>
114
- )}
115
- </BaseLayout>
@@ -1,24 +0,0 @@
1
- ---
2
- /**
3
- * Empty-state fixture (`audit.pages` type "empty") — renders the
4
- * shared `EmptyState` primitive so the audit sample represents what
5
- * visitors actually see when a directory has nothing to show.
6
- */
7
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
8
- import EmptyState from "@grove-dev/astro/ui/EmptyState.astro";
9
- import siteConfig from "@grove/generated/site-config.json";
10
-
11
- const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
12
- ---
13
- <BaseLayout title={`No results | ${siteConfig.name}`} description="Empty state fixture." site={siteConfig} noindex>
14
- <section class="py-16 sm:py-24">
15
- <div class="mx-auto w-full max-w-narrow px-5 sm:px-7">
16
- <h1 class="sr-only">No results</h1>
17
- <EmptyState
18
- title="Nothing to show right now"
19
- description="This view has no records yet — new entries land here as soon as their source files are added to the repository."
20
- action={{ label: `Browse ${slug}`, href: `/${slug}`, variant: "primary" }}
21
- />
22
- </div>
23
- </section>
24
- </BaseLayout>
@@ -1,161 +0,0 @@
1
- ---
2
- /**
3
- * Home page — generic.
4
- *
5
- * Mirrors the openapps structure: Hero → WhyThisExists → three
6
- * lens sections (hot / new / mature) → StackGrid → CategoryGrid →
7
- * ContributorsGrid → OriginalCollection.
8
- *
9
- * All data derives from `data/generated/records.{index,full}.json`
10
- * and `data/generated/site-config.json`. Nothing here is hardcoded
11
- * to a specific blueprint — section copy uses singular/plural
12
- * labels from `itemLabel()`/`itemLabelPlural()`.
13
- */
14
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
15
- import Hero from "@grove-dev/astro/components/Hero.astro";
16
- import PipelineStrip from "../components/PipelineStrip.astro";
17
- import RecordSection from "@grove-dev/astro/components/RecordSection.astro";
18
- import StackGrid from "@grove-dev/astro/components/StackGrid.astro";
19
- import CategoryGrid from "@grove-dev/astro/components/CategoryGrid.astro";
20
- import ContributorsGrid from "@grove-dev/astro/components/ContributorsGrid.astro";
21
- import OriginalCollection from "@grove-dev/astro/components/OriginalCollection.astro";
22
- import FinalCta from "@grove-dev/astro/components/FinalCta.astro";
23
- import CollectionTeaser from "@grove-dev/astro/components/CollectionTeaser.astro";
24
-
25
- import {
26
- getHomePageModel,
27
- getCollectionTeaserModel,
28
- recordsToCollectionEntries,
29
- loadCollections,
30
- } from "@grove-dev/astro/server";
31
- import records from "@grove/generated/records.json";
32
- import siteConfig from "@grove/generated/site-config.json";
33
-
34
- const home = getHomePageModel(siteConfig);
35
- const { slug, itemSingular, itemPlural } = home;
36
-
37
- // ── Lens sectioning (Hot / New / Mature) ────────────────────────
38
- const hotList = home.hot;
39
- const newList = home.recentlyAdded;
40
- const matureList = home.established;
41
-
42
- const { stacks, categories } = home;
43
-
44
- const { contributors, stats, title, description } = home;
45
-
46
- // ── Featured collections teaser ─────────────────────────────────
47
- const allCollections = await loadCollections(process.cwd());
48
- const teaserEntries = recordsToCollectionEntries(
49
- (records as { records: unknown[] }).records as never,
50
- siteConfig,
51
- );
52
- const collectionTeaser = getCollectionTeaserModel(allCollections, teaserEntries, 3);
53
- ---
54
-
55
- <BaseLayout title={title} description={description} image={home.seo.image} site={siteConfig}>
56
- <Hero
57
- name={`Find ${itemPlural} you can actually`}
58
- tagline="run, study, and contribute to."
59
- description={`Every listing is a YAML file in a public repository — Grove publishes those files as this site, a README, and machine-readable outputs, and keeps them in sync.`}
60
- eyebrow="Curated in plain files, published by Grove"
61
- stats={{
62
- totalApps: stats.apps,
63
- totalCategories: stats.categories,
64
- totalStacks: stats.stacks,
65
- totalOwners: stats.owners,
66
- totalStars: stats.stars,
67
- originalRepo: stats.originalRepo,
68
- }}
69
- itemsLabel={itemPlural}
70
- itemLabel={itemSingular}
71
- searchHref={`/${slug}`}
72
- searchPlaceholder={`Search ${itemPlural}, stacks, or categories...`}
73
- quickFilters={[
74
- { label: `Trending ${itemPlural}`, href: `/${slug}?label=hot` },
75
- { label: "Recently added", href: `/${slug}?sort=recently-added` },
76
- { label: "How this site works", href: "#pipeline" },
77
- ]}
78
- ctas={[
79
- { label: `Browse ${itemPlural}`, href: `/${slug}`, variant: "primary" },
80
- ]}
81
- />
82
-
83
- <PipelineStrip repoUrl={siteConfig.repoUrl} />
84
-
85
- <RecordSection
86
- id="hot"
87
- title="Trending now"
88
- description={`${itemPlural.charAt(0).toUpperCase() + itemPlural.slice(1)} gaining stars, activity, or attention recently.`}
89
- eyebrow="Hot"
90
- items={hotList}
91
- hrefFor={(r) => `/${slug}/${r.slug}`}
92
- viewAllHref={`/${slug}?label=hot`}
93
- viewAllLabel={`View all trending ${itemPlural}`}
94
- />
95
-
96
- <RecordSection
97
- id="new"
98
- title="Recently added"
99
- description={`${itemPlural.charAt(0).toUpperCase() + itemPlural.slice(1)} added to the directory in the last few weeks.`}
100
- eyebrow="New"
101
- items={newList}
102
- hrefFor={(r) => `/${slug}/${r.slug}`}
103
- viewAllHref={`/${slug}?sort=recently-added`}
104
- viewAllLabel={`View all recently added`}
105
- />
106
-
107
- <RecordSection
108
- id="mature"
109
- title="Established"
110
- description={`Long-running curated ${itemPlural} with strong history, active maintainers, and real-world usage.`}
111
- eyebrow="Mature"
112
- items={matureList}
113
- hrefFor={(r) => `/${slug}/${r.slug}`}
114
- viewAllHref={`/${slug}?label=mature`}
115
- viewAllLabel={`View all established`}
116
- />
117
-
118
- <StackGrid
119
- stacks={stacks}
120
- pathPrefix={`/${slug}`}
121
- itemLabelPlural={itemPlural}
122
- itemNoun={{ singular: itemSingular, plural: itemPlural }}
123
- hrefFor={(stackSlug: string) => `/stacks/${stackSlug}`}
124
- />
125
- <CollectionTeaser
126
- model={collectionTeaser}
127
- countNoun={{ singular: itemSingular, plural: itemPlural }}
128
- />
129
- <CategoryGrid
130
- categories={categories}
131
- pathPrefix={`/${slug}`}
132
- itemLabelPlural={itemPlural}
133
- itemNoun={{ singular: itemSingular, plural: itemPlural }}
134
- hrefFor={(categorySlug: string) => `/categories/${categorySlug}`}
135
- />
136
-
137
- <ContributorsGrid
138
- contributors={contributors}
139
- total={contributors.length || undefined}
140
- viewAllHref={`/contributors`}
141
- viewAllLabel="Meet the community"
142
- showContributionCount={siteConfig.contributors?.showContributionCount ?? true}
143
- />
144
-
145
- {siteConfig.stats?.originalRepo && (
146
- <OriginalCollection
147
- repoUrl={siteConfig.stats.originalRepo}
148
- stats={{
149
- stars: siteConfig.stats.originalStars,
150
- forks: siteConfig.stats.originalForks,
151
- contributors: siteConfig.stats.originalContributors,
152
- }}
153
- />
154
- )}
155
-
156
- <FinalCta
157
- itemLabel={itemSingular}
158
- itemsLabel={itemPlural}
159
- browseHref={`/${slug}`}
160
- />
161
- </BaseLayout>