@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,246 +0,0 @@
1
- ---
2
- /**
3
- * DirectoryBrowse — the browse page body, shared by the two routes
4
- * that render it: `/{slug}/` (page 1) and `/{slug}/page/{n}/`.
5
- *
6
- * Layout, top to bottom:
7
- * - PageHeader (the only place the page names itself)
8
- * - Search + Sort on one row
9
- * - Every facet filter on the next row
10
- * - Applied-filter chips + Clear all on their own row
11
- * - Result count / sort / page line
12
- * - Card grid, then pagination
13
- *
14
- * Navigation model: **pages are real paths.** Each route prerenders
15
- * only its own 20 records, so an unfiltered directory of any size is
16
- * crawlable, works without JavaScript, and never ships the whole
17
- * catalogue as DOM.
18
- *
19
- * Filtering stays client-side: these routes are PRERENDERED, so at
20
- * build time `Astro.url.searchParams` is empty. `DirectoryIndexClient`
21
- * re-reads `location.search` and re-derives the result list, chips,
22
- * pagination, and facet intersection counts with the same
23
- * `@grove-dev/core/directory` functions the server used. Filtered views
24
- * paginate with `?page=N` on the base route.
25
- */
26
- import siteConfig from "@grove/generated/site-config.json";
27
- import { getDirectoryIndexModel, itemLabel, itemLabelPlural, seoTitle, taxonomy, titleCaseFirst } from "@grove-dev/astro/server";
28
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
29
- import CardGrid from "@grove-dev/astro/components/CardGrid.astro";
30
- import RefinePanel from "@grove-dev/astro/components/RefinePanel.astro";
31
- import IndexRow from "@grove-dev/astro/components/IndexRow.astro";
32
- import Pagination from "@grove-dev/astro/components/Pagination.astro";
33
- import DirectoryIndexClient from "@grove-dev/astro/components/DirectoryIndexClient.astro";
34
- import { SORT_OPTIONS, sortDisplay } from "@grove-dev/astro";
35
- import { formatCount } from "@grove-dev/core";
36
- import { buttonClass, chipClass } from "@grove-dev/astro/ui/button";
37
- import PageHeader from "@grove-dev/astro/ui/PageHeader.astro";
38
- import SearchField from "@grove-dev/astro/ui/SearchField.astro";
39
- import FilterDrawer from "@grove-dev/astro/ui/FilterDrawer.astro";
40
-
41
- interface Props {
42
- /** 1-based page this route renders. */
43
- routePage?: number;
44
- }
45
-
46
- const { routePage = 1 } = Astro.props;
47
- const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
48
- const {
49
- total,
50
- filters,
51
- facetGroups,
52
- searchPlaceholder,
53
- sort,
54
- sorted,
55
- pageItems,
56
- pages,
57
- page,
58
- chips,
59
- clearFiltersHref,
60
- hrefForResultPage,
61
- seo,
62
- } = getDirectoryIndexModel(Astro.url.searchParams, siteConfig, { page: routePage });
63
-
64
- // Page 2+ gets a distinct title and skips the ItemList JSON-LD so the
65
- // list markup isn't duplicated across every paginated route. The
66
- // per-page description is built inside `getDirectoryIndexModel` so it
67
- // fits inside the 160-char cap; this view just forwards `seo.title`.
68
- const title =
69
- page > 1
70
- ? seoTitle(`Browse ${titleCaseFirst(itemLabelPlural())} — Page ${page}`, siteConfig.name)
71
- : seo.title;
72
- const description = seo.description;
73
- ---
74
-
75
- <BaseLayout
76
- title={title}
77
- description={description}
78
- image={seo.image}
79
- jsonLd={page > 1 ? undefined : seo.jsonLd}
80
- site={siteConfig}
81
- submitHref="/submit"
82
- submitLabel={`Submit ${itemLabel()}`}
83
- >
84
- <section class="border-b border-border bg-background">
85
- <div class="mx-auto w-full max-w-container px-5 pt-10 sm:px-7 sm:pt-12">
86
- <PageHeader
87
- eyebrow={slug}
88
- title={`Browse ${slug}`}
89
- description={`Search, filter, and explore ${formatCount(total, { singular: itemLabel(), plural: itemLabelPlural() })} in this directory.`}
90
- />
91
-
92
- {/* Row 1 — search and sort. Search filters as you type (see
93
- DirectoryIndexClient); the submit button is sr-only so Enter
94
- still works when JavaScript never arrives. */}
95
- <form
96
- method="get"
97
- action={`/${slug}`}
98
- id="search-form"
99
- class="mt-6 flex flex-col gap-2 sm:flex-row"
100
- role="search"
101
- >
102
- <SearchField
103
- class="flex-1"
104
- label={`Search ${itemLabelPlural()}`}
105
- value={filters.q ?? ""}
106
- placeholder={searchPlaceholder}
107
- shortcut
108
- />
109
- <label class="relative">
110
- <span class="sr-only">{`Sort ${itemLabelPlural()}`}</span>
111
- <select
112
- id="sort-select"
113
- name="sort"
114
- class="h-10 w-full cursor-pointer appearance-none rounded-md border border-input bg-background py-1.5 pl-3 pr-8 text-sm font-medium text-foreground transition-colors hover:border-ring focus:border-ring focus:outline-none focus:ring-2 focus:ring-ring/20 sm:w-auto"
115
- >
116
- {SORT_OPTIONS.map((o) => (
117
- <option value={o.value} selected={o.value === sort}>{o.label}</option>
118
- ))}
119
- </select>
120
- <svg
121
- viewBox="0 0 16 16"
122
- width="11"
123
- height="11"
124
- aria-hidden="true"
125
- class="pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-muted-foreground"
126
- fill="currentColor"
127
- >
128
- <path d="M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06Z" />
129
- </svg>
130
- </label>
131
- <button type="submit" class="sr-only">Search</button>
132
- </form>
133
-
134
- {/* Row 2 — every filter on one line. On mobile they collapse into
135
- a full-width "Filters (n)" button opening a bottom sheet. */}
136
- <div class="mt-3">
137
- <FilterDrawer label="Filters" activeCount={chips.length} clearHref={clearFiltersHref}>
138
- <RefinePanel
139
- class="max-md:flex-col max-md:items-stretch"
140
- groups={facetGroups}
141
- initial={filters}
142
- pathPrefix={`/${slug}`}
143
- hide={["sort"]}
144
- />
145
- </FilterDrawer>
146
- </div>
147
-
148
- {/* Row 3 — what is currently narrowing the list, and one way out
149
- of all of it. Server-rendered empty on this prerendered route;
150
- the client fills it from the live query string. */}
151
- <div
152
- id="active-filters"
153
- class:list={["mt-3 flex flex-wrap items-center gap-1.5 pb-6", chips.length === 0 && "hidden"]}
154
- aria-label="Active filters"
155
- >
156
- {chips.map((chip) => (
157
- <a href={chip.href} class={chipClass()} aria-label={`Remove filter: ${chip.label}`}>
158
- {chip.label} <span aria-hidden="true">×</span>
159
- </a>
160
- ))}
161
- {chips.length > 0 && (
162
- <a
163
- href={clearFiltersHref}
164
- class="text-2xs font-medium text-ink-500 underline decoration-border underline-offset-2 hover:text-ink-900 dark:hover:text-ink-100"
165
- aria-label="Clear all active filters"
166
- >
167
- Clear all
168
- </a>
169
- )}
170
- </div>
171
- {chips.length === 0 && <div class="pb-6"></div>}
172
- </div>
173
- </section>
174
-
175
- <section class="py-10 sm:py-12">
176
- <div class="mx-auto w-full max-w-container px-5 sm:px-7">
177
- {/* The count line IS the results heading — it carries a fact,
178
- which "All projects / Every item in the directory" did not,
179
- and it keeps the document's heading order intact above the
180
- cards' own h3s. */}
181
- <h2
182
- id="results-heading"
183
- class="m-0 mb-5 text-2xs font-normal text-ink-500 dark:text-ink-400"
184
- >
185
- <span id="results-count" class="font-mono font-semibold text-ink-900 dark:text-ink-100">
186
- {sorted.length} {sorted.length === 1 ? itemLabel() : itemLabelPlural()}
187
- </span>
188
- <span id="results-sort">{` · sorted by ${sortDisplay(sort)}`}</span>
189
- <span id="results-page">{pages > 1 ? ` · page ${page} of ${pages}` : ""}</span>
190
- </h2>
191
-
192
- <CardGrid id="results-list">
193
- {pageItems.map((item, i) => (
194
- <li class="m-0 p-0" data-record-slug={item.slug}>
195
- <IndexRow
196
- record={item as Parameters<typeof IndexRow>[0]["record"]}
197
- detailHref={`/${slug}/${item.slug}`}
198
- eager={i < 3}
199
- />
200
- </li>
201
- ))}
202
- </CardGrid>
203
-
204
- <div id="empty-state" class:list={["py-12 text-center", sorted.length > 0 && "hidden"]}>
205
- <p class="m-0 text-sm font-medium text-ink-700 dark:text-ink-200">
206
- {`No ${itemLabelPlural()} match these filters.`}
207
- </p>
208
- <a href={clearFiltersHref} class={buttonClass("secondary", "sm", "mt-4")}>Clear filters</a>
209
- </div>
210
- {/* Plain div wrapper — Pagination renders its own
211
- <nav aria-label="Pagination">, so a nav here would nest two
212
- identical landmarks. */}
213
- <div id="results-pagination" class="mt-8 flex flex-wrap items-center justify-center gap-1.5">
214
- <Pagination current={page} total={pages} hrefFor={hrefForResultPage} />
215
- </div>
216
- </div>
217
- </section>
218
-
219
- <section class="border-t border-ink-200 dark:border-ink-800">
220
- <div class="mx-auto w-full max-w-container px-5 sm:px-7">
221
- <div class="flex flex-col items-center gap-3 py-12 text-center">
222
- <h2 class="m-0 text-xl font-semibold tracking-tight text-ink-900 dark:text-ink-100">
223
- {`Know a real ${itemLabel()} that belongs here?`}
224
- </h2>
225
- <p class="m-0 max-w-2xl text-sm text-ink-500 dark:text-ink-400">
226
- {`Open a pull request with a YAML file. We review every submission against the bar — no marketing, no tutorials.`}
227
- </p>
228
- <a
229
- href="/submit"
230
- class={buttonClass("primary", "sm", "mt-2")}
231
- >
232
- {`Submit ${itemLabel()}`}
233
- </a>
234
-
235
- </div>
236
- </div>
237
- </section>
238
-
239
- <DirectoryIndexClient
240
- slug={slug}
241
- singular={itemLabel()}
242
- plural={itemLabelPlural()}
243
- taxonomy={taxonomy}
244
- routePage={page}
245
- />
246
- </BaseLayout>
@@ -1,121 +0,0 @@
1
- ---
2
- /**
3
- * PipelineStrip — the file-first publishing story, told with this
4
- * site's own data.
5
- *
6
- * Three beats: a real record YAML (source of truth) → the Grove build
7
- * → the published outputs (this site, README, llms.txt, sitemap),
8
- * plus the sync loop (edits arrive as pull requests, automation keeps
9
- * every output current). Consumer-owned: the copy and the sample
10
- * record are this directory's, not the framework's.
11
- */
12
-
13
- interface Props {
14
- /** Repository URL for the "read the source" link. */
15
- repoUrl?: string;
16
- /** Repo-relative path to the sample record. */
17
- samplePath?: string;
18
- class?: string;
19
- }
20
-
21
- const {
22
- repoUrl,
23
- samplePath = "apps/example/data/records/open-webui.yml",
24
- class: className = "",
25
- } = Astro.props;
26
-
27
- const sampleHref = repoUrl ? `${repoUrl.replace(/\/$/, "")}/blob/main/${samplePath}` : undefined;
28
-
29
- const outputs = [
30
- { label: "This website", detail: "browse, search, filters" },
31
- { label: "README", detail: "awesome-list generated" },
32
- { label: "llms.txt", detail: "machine-readable index" },
33
- { label: "Sitemap + SEO", detail: "structured data" },
34
- ];
35
- ---
36
-
37
- <section
38
- id="pipeline"
39
- class:list={["scroll-mt-20 border-b border-border py-12 sm:py-16", className]}
40
- aria-labelledby="pipeline-heading"
41
- >
42
- <div class="mx-auto w-full max-w-container px-5 sm:px-7">
43
- <header class="flex flex-col gap-2">
44
- <span class="text-2xs font-medium uppercase tracking-wider text-muted-foreground">
45
- How this site works
46
- </span>
47
- <h2
48
- id="pipeline-heading"
49
- class="m-0 max-w-[40ch] text-[1.5rem] font-semibold tracking-tight text-foreground sm:text-[1.75rem]"
50
- >
51
- Every listing is a plain YAML file.
52
- </h2>
53
- <p class="m-0 max-w-[64ch] text-[0.9375rem] leading-relaxed text-muted-foreground">
54
- The content you're browsing lives as files in a repository. Grove builds them
55
- into this site and its machine-readable outputs — and keeps everything in sync
56
- when a file changes.
57
- </p>
58
- </header>
59
-
60
- <div class="mt-7 grid grid-cols-1 gap-3 md:grid-cols-3">
61
- {/* Beat 1 — the source file */}
62
- <div class="flex flex-col rounded-[calc(var(--radius)+0.25rem)] border border-border bg-surface-raised p-4">
63
- <p class="m-0 text-2xs font-medium uppercase tracking-wider text-muted-foreground">
64
- 1 · Source file
65
- </p>
66
- <pre
67
- class="mt-3 flex-1 overflow-x-auto rounded-md bg-surface-sunken p-3 font-mono text-[0.75rem] leading-relaxed text-foreground"
68
- ><code>name: Open WebUI
69
- slug: open-webui
70
- category: interfaces
71
- stacks: [typescript, python]
72
- tags: [chat, self-host, llm]
73
- licenses: [mit]</code></pre>
74
- {sampleHref && (
75
- <a
76
- href={sampleHref}
77
- target="_blank"
78
- rel="noopener noreferrer"
79
- class="mt-3 text-2xs font-medium text-muted-foreground underline decoration-border underline-offset-2 hover:text-foreground"
80
- >
81
- Read this file on GitHub →
82
- </a>
83
- )}
84
- </div>
85
-
86
- {/* Beat 2 — the build */}
87
- <div class="flex flex-col rounded-[calc(var(--radius)+0.25rem)] border border-border bg-surface-raised p-4">
88
- <p class="m-0 text-2xs font-medium uppercase tracking-wider text-muted-foreground">
89
- 2 · Grove build
90
- </p>
91
- <ul class="m-0 mt-3 flex flex-1 list-none flex-col gap-2 p-0 text-[0.8125rem] leading-relaxed text-muted-foreground">
92
- <li>Validates every record against the schema</li>
93
- <li>Joins taxonomy labels, health, and GitHub metadata</li>
94
- <li>Generates one index consumed by every output</li>
95
- </ul>
96
- <p class="m-0 mt-3 font-mono text-2xs text-muted-foreground">grove check && astro build</p>
97
- </div>
98
-
99
- {/* Beat 3 — the outputs */}
100
- <div class="flex flex-col rounded-[calc(var(--radius)+0.25rem)] border border-border bg-surface-raised p-4">
101
- <p class="m-0 text-2xs font-medium uppercase tracking-wider text-muted-foreground">
102
- 3 · Published outputs
103
- </p>
104
- <ul class="m-0 mt-3 flex flex-1 list-none flex-col gap-2 p-0">
105
- {outputs.map((output) => (
106
- <li class="flex items-baseline justify-between gap-3 text-[0.8125rem]">
107
- <span class="font-medium text-foreground">{output.label}</span>
108
- <span class="text-right text-2xs text-muted-foreground">{output.detail}</span>
109
- </li>
110
- ))}
111
- </ul>
112
- </div>
113
- </div>
114
-
115
- <p class="m-0 mt-4 text-[0.8125rem] leading-relaxed text-muted-foreground">
116
- The loop: edits arrive as pull requests to the files, weekly automation refreshes
117
- GitHub metadata, and every output above is regenerated from the same source —
118
- nothing is entered twice, nothing goes stale.
119
- </p>
120
- </div>
121
- </section>
@@ -1,108 +0,0 @@
1
- ---
2
- /**
3
- * TaxonomyList.astro
4
- *
5
- * Shared body for the three taxonomy pages — `stacks/[name].astro`,
6
- * `categories/[name].astro`, `licenses/[name].astro`. The pages
7
- * differ only in the heading copy and the filterRecords field;
8
- * everything below the heading — the count, the card grid, the
9
- * empty state, the back link — is identical, so it lives here.
10
- *
11
- * Records render through the package's canonical `ProjectCard` inside
12
- * `CardGrid`, so taxonomy pages read as the same site as the browse
13
- * and collection pages.
14
- *
15
- * Lives under `apps/example/src/components/` because the page
16
- * shell (BaseLayout) and the SEO entry point (Seo) already ship
17
- * from `@grove-dev/astro`; a consumer-side body template is the
18
- * natural place for it.
19
- */
20
- import CardGrid from "@grove-dev/astro/components/CardGrid.astro";
21
- import ProjectCard from "@grove-dev/astro/components/ProjectCard.astro";
22
- import { itemLabel, itemLabelPlural } from "@grove-dev/astro/server";
23
- import { formatCount } from "@grove-dev/core";
24
-
25
- interface TaxonomyRecord {
26
- slug: string;
27
- name?: string;
28
- title?: string;
29
- description?: string;
30
- repoUrl?: string;
31
- }
32
-
33
- interface Props {
34
- /** URL slug from `Astro.params`. Echoed in the back link. */
35
- name: string;
36
- /** Eyebrow label above the heading ("Stack", "Category", "License"). */
37
- eyebrow: string;
38
- /** Display name shown in the heading and intro copy. */
39
- displayName: string;
40
- /** Lede copy under the heading. */
41
- lede: string;
42
- /**
43
- * Noun pair for the heading and count label. Defaults to the
44
- * blueprint's singular/plural labels so irregular plurals render
45
- * correctly on every blueprint.
46
- */
47
- itemNoun?: { singular: string; plural: string };
48
- /** Records filtered by `filterRecords` upstream. */
49
- records: TaxonomyRecord[];
50
- /** Index route (e.g. "/projects") for the back link and card hrefs. */
51
- backHref?: string;
52
- /** Back-link label. */
53
- backLabel?: string;
54
- }
55
-
56
- const {
57
- name,
58
- eyebrow,
59
- displayName,
60
- lede,
61
- itemNoun = { singular: itemLabel(), plural: itemLabelPlural() },
62
- records,
63
- backHref = "/projects",
64
- backLabel = `← Back to all ${itemLabelPlural()}`,
65
- } = Astro.props;
66
-
67
- const count = records.length;
68
- const hrefPrefix = backHref.replace(/\/$/, "");
69
- type CardRecord = Parameters<typeof ProjectCard>[0]["record"];
70
- ---
71
-
72
- <section class="mx-auto w-full max-w-container px-5 py-12 sm:px-7 sm:py-16">
73
- <p class="m-0 text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">{eyebrow}</p>
74
- <h1 class="m-0 mt-2 text-[1.875rem] font-semibold tracking-tight text-ink-900 sm:text-[2.125rem] dark:text-ink-100">
75
- {displayName} {itemNoun.plural}
76
- </h1>
77
- <p class="m-0 mt-3 max-w-2xl text-[0.9375rem] leading-relaxed text-ink-500 dark:text-ink-400">{lede}</p>
78
-
79
- <div class="mt-10">
80
- <p class="m-0 text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
81
- {formatCount(count, itemNoun)}
82
- </p>
83
-
84
- {count === 0 ? (
85
- <p class="mt-4 text-sm text-ink-500 dark:text-ink-400">No {itemNoun.plural} yet in {displayName}.</p>
86
- ) : (
87
- <CardGrid class="mt-6">
88
- {records.map((record, i) => (
89
- <li class="m-0 p-0">
90
- <ProjectCard
91
- record={record as CardRecord}
92
- href={`${hrefPrefix}/${record.slug}`}
93
- showCurated
94
- showLicense
95
- eager={i < 3}
96
- />
97
- </li>
98
- ))}
99
- </CardGrid>
100
- )}
101
- </div>
102
-
103
- <p class="mt-12 text-2xs text-ink-500 dark:text-ink-400">
104
- <a href={backHref} class="text-inherit no-underline hover:underline">
105
- {backLabel}
106
- </a>
107
- </p>
108
- </section>
@@ -1,63 +0,0 @@
1
- ---
2
- /**
3
- * 404 — generic fallback page.
4
- *
5
- * Renders the normal shell (header / footer / theme toggle) with a
6
- * short message and a search form pointing at the list page. Stays
7
- * on-brand regardless of blueprint.
8
- */
9
- import siteConfig from "@grove/generated/site-config.json";
10
- import { indexSlug } from "@grove-dev/astro/server";
11
- import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
12
- import { buttonClass } from "@grove-dev/astro/ui/button";
13
- import SearchField from "@grove-dev/astro/ui/SearchField.astro";
14
-
15
- const slug = indexSlug();
16
- const title = `Page not found | ${siteConfig.name}`;
17
- const description = `That page doesn't exist on ${siteConfig.name}. Search the directory or browse from the home page.`;
18
- ---
19
-
20
- <BaseLayout
21
- title={title}
22
- description={description}
23
- site={siteConfig}
24
- noindex
25
- >
26
- {/* One recovery hierarchy: search is the primary tool, Browse the
27
- single button action, home a quiet text link — no three
28
- competing primary CTAs. Centered so the wide viewport doesn't
29
- pin everything into the top-left corner. */}
30
- <section class="py-12 sm:py-16">
31
- <div class="mx-auto w-full max-w-narrow px-5 py-16 text-center sm:px-7 sm:py-24">
32
- <span class="text-2xs font-medium uppercase tracking-wider text-muted-foreground">
33
- 404
34
- </span>
35
- <h1 class="m-0 mt-2 text-[2.25rem] font-semibold leading-[1.05] tracking-tight text-foreground sm:text-[3rem]">
36
- Page not found
37
- </h1>
38
- <p class="mx-auto m-0 mt-4 max-w-xl text-lg leading-relaxed text-muted-foreground">
39
- The page you're looking for doesn't exist on {siteConfig.name}.
40
- It may have been moved, renamed, or never existed.
41
- </p>
42
-
43
- <form
44
- class="mx-auto mt-8 flex max-w-xl flex-col gap-2 sm:flex-row sm:items-center"
45
- role="search"
46
- action={`/${slug}`}
47
- method="get"
48
- >
49
- <SearchField class="flex-1" label="Search" placeholder={`Search ${slug}...`} id="not-found-search" />
50
- <button type="submit" class={buttonClass("primary", "bare", "h-10 px-4 text-sm max-sm:min-h-11")}>
51
- Search
52
- </button>
53
- </form>
54
-
55
- <div class="mt-6 flex flex-wrap items-center justify-center gap-4">
56
- <a href={`/${slug}`} class={buttonClass("secondary", "sm")}>Browse {slug}</a>
57
- <a href="/" class="text-sm font-medium text-muted-foreground underline decoration-border underline-offset-2 hover:text-foreground">
58
- Back to home
59
- </a>
60
- </div>
61
- </div>
62
- </section>
63
- </BaseLayout>
@@ -1,71 +0,0 @@
1
- ---
2
- /**
3
- * Detail page — thin consumer wiring up the package's
4
- * RecordHeader, EditorialSummary, TableOfContents, MarkdownBody,
5
- * and RecordSidebar components. All rendering logic, prose
6
- * styling, sidebar visibility, and activity-badge rules live in
7
- * `@grove-dev/astro`; this file only composes them.
8
- */
9
- import siteConfig from '@grove/generated/site-config.json';
10
- import { getRecordDetailModel, recordDetailPaths } from '@grove-dev/astro/server';
11
- import BaseLayout from '@grove-dev/astro/layouts/BaseLayout.astro';
12
- import RecordHeader from '@grove-dev/astro/components/RecordHeader.astro';
13
- import EditorialSummary from '@grove-dev/astro/components/EditorialSummary.astro';
14
- import TableOfContents from '@grove-dev/astro/components/TableOfContents.astro';
15
- import MarkdownBody from '@grove-dev/astro/components/MarkdownBody.astro';
16
- import RecordSidebar from '@grove-dev/astro/components/RecordSidebar.astro';
17
-
18
- export function getStaticPaths() {
19
- return recordDetailPaths(siteConfig);
20
- }
21
-
22
- const dirSlug = siteConfig.blueprintConfig?.routeSlug ?? 'projects';
23
- const detail = getRecordDetailModel(
24
- Astro.params.recordSlug ?? '',
25
- siteConfig,
26
- Astro.params.slug ?? dirSlug,
27
- );
28
- if (!detail) return Astro.redirect(`/${dirSlug}`);
29
- const { record, itemSingular, seo } = detail;
30
- ---
31
-
32
- <BaseLayout
33
- title={seo.title}
34
- description={seo.description}
35
- image={seo.image}
36
- imageAlt={seo.imageAlt}
37
- site={siteConfig}
38
- type="article"
39
- jsonLd={seo.jsonLd}
40
- submitHref="/submit"
41
- submitLabel={`Submit ${itemSingular}`}
42
- >
43
- <article class="py-8 sm:py-10">
44
- <div class="mx-auto w-full max-w-container px-5 sm:px-7">
45
- <RecordHeader detail={detail} />
46
-
47
- <div
48
- class="grid grid-cols-1 gap-10 lg:grid-cols-[minmax(0,1fr)_300px] lg:gap-12"
49
- >
50
- {/* Reading column: editorial context, then the article —
51
- no TOC panel pushing the body down. */}
52
- <div class="min-w-0">
53
- <EditorialSummary bestFor={detail.bestFor} caveats={detail.caveats} />
54
- <MarkdownBody
55
- recordSlug={record.slug}
56
- fallback={record.content ? "This record doesn't have notes yet." : undefined}
57
- />
58
- </div>
59
- {/* Right rail: the TOC and nothing else. */}
60
- <div class="min-w-0 lg:sticky lg:top-20 lg:max-h-[calc(100vh-5rem)] lg:self-start lg:overflow-y-auto">
61
- <TableOfContents items={detail.toc} />
62
- </div>
63
- </div>
64
-
65
- {/* Metadata panels — full width below the article. */}
66
- <section class="mt-12 border-t border-border pt-8" aria-label="Project details">
67
- <RecordSidebar detail={detail} sticky={false} layout="grid" />
68
- </section>
69
- </div>
70
- </article>
71
- </BaseLayout>
@@ -1,19 +0,0 @@
1
- ---
2
- /**
3
- * List page — page 1 of the discovery / browse page.
4
- *
5
- * The body lives in `DirectoryBrowse` because two routes render it:
6
- * this one and `/{slug}/page/{n}/`. The URL slug (e.g. `/projects/`,
7
- * `/resources/`, `/entities/`) is derived from the blueprint, so the
8
- * same page works for every blueprint without per-blueprint forks.
9
- */
10
- import siteConfig from "@grove/generated/site-config.json";
11
- import DirectoryBrowse from "../../components/DirectoryBrowse.astro";
12
-
13
- export function getStaticPaths() {
14
- const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
15
- return [{ params: { slug: routeSlug } }];
16
- }
17
- ---
18
-
19
- <DirectoryBrowse routePage={1} />
@@ -1,32 +0,0 @@
1
- ---
2
- /**
3
- * Browse pages 2..n — `/{slug}/page/2/`, `/{slug}/page/3/`, …
4
- *
5
- * Real prerendered paths rather than a `?page=` query, so every record
6
- * in a large directory is reachable by a crawler and by a visitor with
7
- * no JavaScript. The `/page/` segment keeps these clear of
8
- * `/{slug}/{recordSlug}`, which would otherwise claim `/projects/2/`
9
- * for a record slugged "2".
10
- *
11
- * Page 1 is the bare `/{slug}/` route — it is not duplicated here, so
12
- * there is one canonical URL for the first page.
13
- */
14
- import siteConfig from "@grove/generated/site-config.json";
15
- import { getDirectoryIndexModel } from "@grove-dev/astro/server";
16
- import DirectoryBrowse from "../../../components/DirectoryBrowse.astro";
17
-
18
- export function getStaticPaths() {
19
- const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
20
- // Page count comes from the model, not from `stats.totalRecords` —
21
- // the browse list is scoped to the blueprint's own records.
22
- const { pages: count } = getDirectoryIndexModel(new URLSearchParams(), siteConfig);
23
- return Array.from({ length: Math.max(0, count - 1) }, (_, index) => ({
24
- params: { slug: routeSlug, page: String(index + 2) },
25
- props: { routePage: index + 2 },
26
- }));
27
- }
28
-
29
- const { routePage } = Astro.props;
30
- ---
31
-
32
- <DirectoryBrowse routePage={routePage} />