@grove-dev/cli 0.3.1 → 0.3.4

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 (106) hide show
  1. package/README.md +8 -93
  2. package/dist/index.d.ts +1 -2
  3. package/dist/index.d.ts.map +1 -1
  4. package/dist/index.js +95 -1931
  5. package/dist/index.js.map +1 -1
  6. package/dist/init.d.ts +11 -0
  7. package/dist/init.d.ts.map +1 -0
  8. package/dist/init.js +94 -0
  9. package/dist/init.js.map +1 -0
  10. package/dist/package.json +6 -17
  11. package/dist/site/.github/ISSUE_TEMPLATE/bug_report.md +33 -0
  12. package/dist/site/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
  13. package/dist/site/.github/ISSUE_TEMPLATE/record_submission.md +48 -0
  14. package/dist/site/.github/pull_request_template.md +27 -0
  15. package/dist/site/.github/workflows/ci.yml +21 -0
  16. package/dist/site/.github/workflows/cleanup.yml +23 -0
  17. package/dist/site/.github/workflows/deploy.yml +36 -0
  18. package/dist/site/.github/workflows/sync-contributors.yml +28 -0
  19. package/dist/site/.github/workflows/sync-github.yml +31 -0
  20. package/dist/site/README.md +44 -0
  21. package/dist/site/astro.config.mjs +26 -0
  22. package/dist/site/data/health.yml +13 -0
  23. package/dist/site/data/records/.gitkeep +0 -0
  24. package/dist/site/data/records/crewai.yml +21 -0
  25. package/dist/site/data/records/dify.yml +21 -0
  26. package/dist/site/data/records/flowise.yml +21 -0
  27. package/dist/site/data/records/llamaindex.yml +21 -0
  28. package/dist/site/data/records/ollama.yml +28 -0
  29. package/dist/site/data/records/open-webui.yml +21 -0
  30. package/dist/site/data/taxonomy/categories.yml +10 -0
  31. package/dist/site/data/taxonomy/distribution-channels.yml +43 -0
  32. package/dist/site/data/taxonomy/platforms.yml +27 -0
  33. package/dist/site/data/taxonomy/stacks.yml +18 -0
  34. package/dist/site/grove.config.ts +76 -0
  35. package/dist/site/package.json +33 -0
  36. package/dist/site/public/icons/platforms/android.svg +1 -0
  37. package/dist/site/public/icons/platforms/apple-dark.svg +1 -0
  38. package/dist/site/public/icons/platforms/apple-light.svg +1 -0
  39. package/dist/site/public/icons/platforms/chrome.svg +1 -0
  40. package/dist/site/public/icons/platforms/chromeos.svg +5 -0
  41. package/dist/site/public/icons/platforms/desktop.svg +4 -0
  42. package/dist/site/public/icons/platforms/embedded.svg +5 -0
  43. package/dist/site/public/icons/platforms/ios.svg +1 -0
  44. package/dist/site/public/icons/platforms/linux.svg +1 -0
  45. package/dist/site/public/icons/platforms/macos.svg +1 -0
  46. package/dist/site/public/icons/platforms/ubuntu.svg +1 -0
  47. package/dist/site/public/icons/platforms/web.svg +5 -0
  48. package/dist/site/public/icons/platforms/windows.svg +6 -0
  49. package/dist/site/public/icons/stacks/android.svg +1 -0
  50. package/dist/site/public/icons/stacks/apple-dark.svg +1 -0
  51. package/dist/site/public/icons/stacks/apple-light.svg +1 -0
  52. package/dist/site/public/icons/stacks/bun.svg +1 -0
  53. package/dist/site/public/icons/stacks/capacitor.svg +14 -0
  54. package/dist/site/public/icons/stacks/clojure.svg +1 -0
  55. package/dist/site/public/icons/stacks/clojurescript.svg +1 -0
  56. package/dist/site/public/icons/stacks/dart.svg +1 -0
  57. package/dist/site/public/icons/stacks/deno.svg +1 -0
  58. package/dist/site/public/icons/stacks/django.svg +1 -0
  59. package/dist/site/public/icons/stacks/docker.svg +1 -0
  60. package/dist/site/public/icons/stacks/firebase.svg +1 -0
  61. package/dist/site/public/icons/stacks/flutter.svg +1 -0
  62. package/dist/site/public/icons/stacks/go.svg +1 -0
  63. package/dist/site/public/icons/stacks/graphql.svg +1 -0
  64. package/dist/site/public/icons/stacks/ionic.svg +4 -0
  65. package/dist/site/public/icons/stacks/java.svg +1 -0
  66. package/dist/site/public/icons/stacks/javascript.svg +1 -0
  67. package/dist/site/public/icons/stacks/kotlin.svg +1 -0
  68. package/dist/site/public/icons/stacks/llm.svg +1 -0
  69. package/dist/site/public/icons/stacks/mongodb.svg +1 -0
  70. package/dist/site/public/icons/stacks/node.js.svg +1 -0
  71. package/dist/site/public/icons/stacks/nodejs.svg +1 -0
  72. package/dist/site/public/icons/stacks/python.svg +1 -0
  73. package/dist/site/public/icons/stacks/rag.svg +7 -0
  74. package/dist/site/public/icons/stacks/react-native.svg +1 -0
  75. package/dist/site/public/icons/stacks/react.svg +1 -0
  76. package/dist/site/public/icons/stacks/rust.svg +1 -0
  77. package/dist/site/public/icons/stacks/solidity.svg +1 -0
  78. package/dist/site/public/icons/stacks/sveltekit.svg +1 -0
  79. package/dist/site/public/icons/stacks/swift.svg +1 -0
  80. package/dist/site/public/icons/stacks/tauri.svg +1 -0
  81. package/dist/site/public/icons/stacks/tensorflow.svg +1 -0
  82. package/dist/site/public/icons/stacks/typescript.svg +1 -0
  83. package/dist/site/public/icons/stacks/vue.svg +1 -0
  84. package/dist/site/src/pages/404.astro +64 -0
  85. package/dist/site/src/pages/[slug]/[recordSlug].astro +527 -0
  86. package/dist/site/src/pages/[slug]/index.astro +243 -0
  87. package/dist/site/src/pages/about.astro +189 -0
  88. package/dist/site/src/pages/contributors.astro +113 -0
  89. package/dist/site/src/pages/index.astro +131 -0
  90. package/dist/site/src/pages/submit.astro +170 -0
  91. package/dist/site/src/styles/global.css +33 -0
  92. package/dist/site/tsconfig.json +13 -0
  93. package/package.json +7 -18
  94. package/dist/helpers.d.ts +0 -27
  95. package/dist/helpers.d.ts.map +0 -1
  96. package/dist/helpers.js +0 -41
  97. package/dist/helpers.js.map +0 -1
  98. package/dist/template-loader.d.ts +0 -99
  99. package/dist/template-loader.d.ts.map +0 -1
  100. package/dist/template-loader.js +0 -338
  101. package/dist/template-loader.js.map +0 -1
  102. package/dist/template-loader.test.d.ts +0 -2
  103. package/dist/template-loader.test.d.ts.map +0 -1
  104. package/dist/template-loader.test.js +0 -317
  105. package/dist/template-loader.test.js.map +0 -1
  106. /package/{LICENSE → dist/site/LICENSE} +0 -0
@@ -0,0 +1,243 @@
1
+ ---
2
+ /**
3
+ * List page — the discovery / browse page.
4
+ *
5
+ * Mirrors the openapps list structure:
6
+ * - SmartLensTabs (curated views only; sorting stays in the sort select)
7
+ * - RefinePanel (Stack / Platform / Category / License / Sort)
8
+ * - RecordSection rows (full record cards; the `ItemSection` V0
9
+ * name was renamed to `RecordSection` in V1)
10
+ *
11
+ * Generic: the URL slug (e.g. `/projects/`, `/resources/`,
12
+ * `/entities/`) is derived from the blueprint via `getStaticPaths`,
13
+ * so the same page works for every blueprint without per-blueprint
14
+ * forks.
15
+ *
16
+ * Navigation model: full-page render. The form posts via `method="get"`
17
+ * so the browser navigates to `?q=...&sort=...&stack=...`, and the
18
+ * server re-runs `filterRecords` / `applySort` / `paginate` from
19
+ * those query params. No client-side filter shim, no duplicated
20
+ * logic. The URL stays the single source of truth for filter state.
21
+ */
22
+ import siteConfig from "@grove/generated/site-config.json";
23
+ import { getDirectoryIndexModel, itemLabel, itemLabelPlural, taxonomy } from "@grove-dev/astro/server";
24
+ import type { IndexFilters } from "@grove-dev/astro";
25
+ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
26
+ import SmartLensTabs from "@grove-dev/astro/components/SmartLensTabs.astro";
27
+ import RefinePanel from "@grove-dev/astro/components/RefinePanel.astro";
28
+ import IndexRow from "@grove-dev/astro/components/IndexRow.astro";
29
+ import Pagination from "@grove-dev/astro/components/Pagination.astro";
30
+ import DirectoryIndexClient from "@grove-dev/astro/components/DirectoryIndexClient.astro";
31
+ import { removeFilter, searchParamsFromFilters, sortDisplay, SORT_OPTIONS } from "@grove-dev/astro";
32
+
33
+ export function getStaticPaths() {
34
+ const routeSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
35
+ return [{ params: { slug: routeSlug } }];
36
+ }
37
+
38
+ const slug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
39
+ const { total, filters, facets, sort, sorted, pages, page, chips, clientItemsJson } =
40
+ getDirectoryIndexModel(Astro.url.searchParams, siteConfig);
41
+
42
+ const title = `Browse ${slug} — ${siteConfig.name}`;
43
+ const description = `A searchable directory of ${itemLabelPlural()} for ${siteConfig.name}.`;
44
+
45
+ function hrefForPage(target: number): string {
46
+ const next: IndexFilters = { ...filters, page: target };
47
+ const query = searchParamsFromFilters(next).toString();
48
+ return query ? `/${slug}?${query}` : `/${slug}`;
49
+ }
50
+
51
+ function hrefForRemove(key: keyof IndexFilters, value: string): string {
52
+ const params = searchParamsFromFilters(removeFilter(filters, key, value));
53
+ const query = params.toString();
54
+ return query ? `/${slug}?${query}` : `/${slug}`;
55
+ }
56
+
57
+ const clearQuery = searchParamsFromFilters({ sort }).toString();
58
+ const clearFiltersHref = clearQuery ? `/${slug}?${clearQuery}` : `/${slug}`;
59
+ ---
60
+
61
+ <BaseLayout
62
+ title={title}
63
+ description={description}
64
+ site={siteConfig}
65
+ submitHref="/submit"
66
+ submitLabel={`Submit ${itemLabel()}`}
67
+ >
68
+ <section class="border-b border-ink-200 bg-white dark:border-ink-800 dark:bg-ink-950">
69
+ <div class="mx-auto w-full max-w-wide px-5 pt-10 sm:px-7 sm:pt-12">
70
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
71
+ {slug}
72
+ </span>
73
+ <h1 class="m-0 mt-1 text-[1.875rem] sm:text-[2.125rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
74
+ Browse {slug}
75
+ </h1>
76
+ <p class="m-0 mt-2 max-w-[64ch] text-[0.9375rem] text-ink-500 dark:text-ink-400">
77
+ Search, filter, and explore {total} {itemLabel()}{total === 1 ? "" : "s"} in this directory.
78
+ </p>
79
+
80
+ <form
81
+ method="get"
82
+ action={`/${slug}`}
83
+ id="search-form"
84
+ class="mt-6 flex flex-col gap-2 sm:flex-row"
85
+ role="search"
86
+ >
87
+ <label class="relative flex-1">
88
+ <span class="sr-only">{`Search ${itemLabelPlural()}`}</span>
89
+ <svg
90
+ viewBox="0 0 16 16"
91
+ width="16"
92
+ height="16"
93
+ aria-hidden="true"
94
+ class="pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 text-ink-400"
95
+ fill="currentColor"
96
+ >
97
+ <path d="M10.68 11.74a6 6 0 0 1-7.922-8.982 6 6 0 0 1 8.982 7.922l3.04 3.04a.749.749 0 0 1-.326 1.275.749.749 0 0 1-.734-.215ZM11.5 7a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0Z" />
98
+ </svg>
99
+ <input
100
+ id="search-input"
101
+ type="search"
102
+ name="q"
103
+ value={filters.q ?? ""}
104
+ placeholder={`Search ${itemLabelPlural()}, stacks, categories, platforms, licenses...`}
105
+ class="h-10 w-full rounded-md border border-ink-200 bg-white py-2 pl-9 pr-3 text-sm text-ink-900 placeholder:text-ink-400 focus:border-ink-900 focus:outline-none focus:ring-2 focus:ring-ink-900/10 dark:border-ink-800 dark:bg-ink-950 dark:text-ink-100"
106
+ />
107
+ </label>
108
+ <label class="relative">
109
+ <span class="sr-only">{`Sort ${itemLabelPlural()}`}</span>
110
+ <select
111
+ id="sort-select"
112
+ name="sort"
113
+ class="h-10 w-full cursor-pointer appearance-none rounded-md border border-ink-200 bg-white py-1.5 pl-3 pr-8 text-sm font-medium text-ink-700 transition-colors hover:border-ink-300 focus:border-ink-900 focus:outline-none focus:ring-2 focus:ring-ink-900/10 sm:w-auto dark:border-ink-800 dark:bg-ink-950 dark:text-ink-300 dark:hover:border-ink-700 dark:focus:border-ink-100 dark:focus:ring-ink-100/15"
114
+ >
115
+ {SORT_OPTIONS.map((o) => (
116
+ <option value={o.value} selected={o.value === sort}>{o.label}</option>
117
+ ))}
118
+ </select>
119
+ <svg
120
+ viewBox="0 0 16 16"
121
+ width="11"
122
+ height="11"
123
+ aria-hidden="true"
124
+ class="pointer-events-none absolute right-2.5 top-1/2 -translate-y-1/2 text-ink-400"
125
+ fill="currentColor"
126
+ >
127
+ <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" />
128
+ </svg>
129
+ </label>
130
+ <button type="submit" class="inline-flex h-10 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-4 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90">Search</button>
131
+ </form>
132
+
133
+ <div class="mt-4 flex flex-wrap items-center gap-2 pb-6">
134
+ <SmartLensTabs
135
+ class="contents"
136
+ currentParams={Astro.url.searchParams}
137
+ pathPrefix={`/${slug}`}
138
+ lensIds={["all", "hot", "mature", "production-like", "good-to-learn"]}
139
+ allLabel={`All ${itemLabelPlural()}`}
140
+ />
141
+ <RefinePanel
142
+ class="contents"
143
+ facets={facets}
144
+ initial={filters}
145
+ pathPrefix={`/${slug}`}
146
+ hide={["sort"]}
147
+ />
148
+ </div>
149
+ </div>
150
+ </section>
151
+
152
+ <section class="py-10 sm:py-12">
153
+ <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
154
+ <header class="mb-6">
155
+ <h2 id="results-heading" class="m-0 text-[1.5rem] sm:text-[1.625rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
156
+ {`All ${itemLabelPlural()}`}
157
+ </h2>
158
+ <p id="results-description" class="m-0 mt-1 max-w-[60ch] text-[0.9375rem] text-ink-500 dark:text-ink-400">
159
+ {`Every ${itemLabel()} in the directory.`}
160
+ </p>
161
+ </header>
162
+ <div class="mb-5 flex flex-col gap-2 sm:flex-row sm:items-center sm:justify-between">
163
+ <p class="m-0 text-2xs text-ink-500 dark:text-ink-400">
164
+ <span id="results-count" class="font-mono text-ink-900 dark:text-ink-100">
165
+ {sorted.length} {sorted.length === 1 ? itemLabel() : itemLabelPlural()}
166
+ </span>
167
+ <span id="results-sort">{` · sorted by ${sortDisplay(sort)}`}</span>
168
+ <span id="results-page">{pages > 1 ? ` · page ${page} of ${pages}` : ""}</span>
169
+ </p>
170
+ <div
171
+ id="active-filters"
172
+ class:list={["flex flex-wrap items-center gap-1.5", chips.length === 0 && "hidden"]}
173
+ aria-label="Active filters"
174
+ >
175
+ {chips.length > 0 && (
176
+ <>
177
+ {chips.map((chip) => (
178
+ <a
179
+ href={hrefForRemove(chip.key, chip.value)}
180
+ class="inline-flex min-h-5 items-center justify-center gap-1 rounded-full border border-transparent bg-secondary px-2 py-0.5 align-middle text-xs font-medium leading-none text-secondary-foreground transition-colors hover:border-ink-400"
181
+ >
182
+ {chip.label} <span aria-hidden="true">x</span>
183
+ </a>
184
+ ))}
185
+ <a href={clearFiltersHref} class="text-2xs font-medium text-ink-500 hover:text-ink-900">
186
+ Clear all
187
+ </a>
188
+ </>
189
+ )}
190
+ </div>
191
+ </div>
192
+
193
+ <ul id="results-list" class="m-0 flex list-none flex-col gap-3 p-0">
194
+ {sorted.map((item, i) => (
195
+ <li class="m-0 p-0" data-record-slug={item.slug}>
196
+ <IndexRow
197
+ record={item as Parameters<typeof IndexRow>[0]["record"]}
198
+ detailHref={`/${slug}/${item.slug}`}
199
+ eager={i < 2}
200
+ />
201
+ </li>
202
+ ))}
203
+ </ul>
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 ${itemLabel()}s match these filters.`}
207
+ </p>
208
+ <a href={clearFiltersHref} class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent mt-4">Clear filters</a>
209
+ </div>
210
+ <nav id="results-pagination" class="mt-8 flex flex-wrap items-center justify-center gap-1.5" aria-label="Pagination">
211
+ <Pagination current={page} total={pages} hrefFor={hrefForPage} />
212
+ </nav>
213
+ </div>
214
+ </section>
215
+
216
+ <section class="border-t border-ink-200 dark:border-ink-800">
217
+ <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
218
+ <div class="flex flex-col items-center gap-3 py-12 text-center">
219
+ <h2 class="m-0 text-xl font-semibold tracking-tight text-ink-900 dark:text-ink-100">
220
+ {`Know a real ${itemLabel()} that belongs here?`}
221
+ </h2>
222
+ <p class="m-0 max-w-2xl text-sm text-ink-500 dark:text-ink-400">
223
+ {`Open a pull request with a YAML file. We review every submission against the bar — no marketing, no tutorials.`}
224
+ </p>
225
+ <a
226
+ href="/submit"
227
+ class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90 mt-2"
228
+ >
229
+ {`Submit ${itemLabel()}`}
230
+ </a>
231
+
232
+ </div>
233
+ </div>
234
+ </section>
235
+
236
+ <DirectoryIndexClient
237
+ clientItemsJson={clientItemsJson}
238
+ slug={slug}
239
+ singular={itemLabel()}
240
+ plural={itemLabelPlural()}
241
+ taxonomy={taxonomy}
242
+ />
243
+ </BaseLayout>
@@ -0,0 +1,189 @@
1
+ ---
2
+ /**
3
+ * About page — generic.
4
+ *
5
+ * Mirrors the openapps section structure: breadcrumb, header with
6
+ * two-line intro, then a stack of cards (Why, Value, Data, Generic)
7
+ * followed by a CTA row. The copy is generic — references "directory",
8
+ * "record", "framework" — so it works for any blueprint.
9
+ *
10
+ * Side-by-side comparison with the older "Why" copy:
11
+ * - Old: "A directory of real open-source apps. Started from
12
+ * the Open Source Flutter Apps collection…"
13
+ * - New: "A growing community knowledge site. A curated, health-
14
+ * aware developer directory…"
15
+ *
16
+ * The Tailwind card and button utilities match the
17
+ * rest of the framework, and the data fields it references
18
+ * (`siteConfig.tagline`, `siteConfig.repoUrl`) all flow from the
19
+ * site config — no hardcoded brand or copy.
20
+ */
21
+ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
22
+ import Container from "@grove-dev/astro/layouts/Container.astro";
23
+ import siteConfig from "@grove/generated/site-config.json";
24
+ import { getPageContentHtml, indexSlug, itemLabel } from "@grove-dev/astro/server";
25
+
26
+ const githubUrl = siteConfig.repoUrl;
27
+ const title = `About — ${siteConfig.name}`;
28
+ const description = `${siteConfig.tagline} Built with Grove.`;
29
+ const slug = indexSlug();
30
+ const item = itemLabel();
31
+ const pageContentHtml = getPageContentHtml("about");
32
+ ---
33
+
34
+ <BaseLayout title={title} description={description} site={siteConfig}>
35
+ <Container size="narrow">
36
+ <article class="py-12 sm:py-16">
37
+ <nav class="text-2xs text-ink-500 dark:text-ink-400" aria-label="Breadcrumb">
38
+ <a href="/" class="hover:text-ink-900 dark:hover:text-ink-100">Home</a>
39
+ <span class="mx-1.5 text-ink-300 dark:text-ink-700">/</span>
40
+ <span class="text-ink-700 dark:text-ink-300">About</span>
41
+ </nav>
42
+
43
+ {pageContentHtml ? (
44
+ <section class="grove-prose mt-8" set:html={pageContentHtml} />
45
+ ) : (
46
+ <>
47
+ <header class="mt-5">
48
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
49
+ About
50
+ </span>
51
+ <h1 class="mt-1 m-0 text-[1.75rem] sm:text-[2.25rem] font-semibold tracking-[-0.02em] leading-[1.1] text-ink-900 dark:text-ink-100">
52
+ A growing community knowledge site.
53
+ </h1>
54
+ <p class="mt-4 m-0 text-[1rem] sm:text-[1.0625rem] leading-relaxed text-ink-700 dark:text-ink-200 max-w-[62ch]">
55
+ {siteConfig.name} is a curated, health-aware developer directory —
56
+ built so you can find, compare, run, study, and contribute to
57
+ open-source {item}s.
58
+ </p>
59
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-500 dark:text-ink-400 max-w-[62ch]">
60
+ A growing list, forked from the original. Same shape, same
61
+ spirit, fresh data.
62
+ </p>
63
+ </header>
64
+
65
+ <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-8 p-5 sm:p-6">
66
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
67
+ Why
68
+ </span>
69
+ <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
70
+ A curated starting point
71
+ </h2>
72
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
73
+ GitHub search and README lists optimize for the repository
74
+ name and description. They rarely tell you whether a project
75
+ is a real {item} or a demo, which stack it uses beyond the
76
+ headline, how active it really is, or whether it has a clear
77
+ license.
78
+ </p>
79
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
80
+ {siteConfig.name} turns that flat list into a structured,
81
+ health-aware index. Each entry carries the metadata a developer
82
+ actually needs to decide whether to open the repo.
83
+ </p>
84
+ </section>
85
+
86
+ <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
87
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
88
+ Why real {item}s
89
+ </span>
90
+ <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
91
+ Real, runnable source
92
+ </h2>
93
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
94
+ Every {item} links back to its source. Skim, fork, learn — no
95
+ paywalls, no broken download links.
96
+ </p>
97
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
98
+ The directory is hand-curated — no SEO spam, no affiliate
99
+ farms, no broken links.
100
+ </p>
101
+ </section>
102
+
103
+ <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
104
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
105
+ What you get
106
+ </span>
107
+ <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
108
+ What every page gives you
109
+ </h2>
110
+ <ul class="m-0 mt-3 list-none space-y-1.5 p-0 text-[0.9375rem] text-ink-700 dark:text-ink-200">
111
+ <li class="flex items-baseline gap-2">
112
+ <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
113
+ <span>Stack, category, and architecture at a glance</span>
114
+ </li>
115
+ <li class="flex items-baseline gap-2">
116
+ <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
117
+ <span>Supported platforms and license</span>
118
+ </li>
119
+ <li class="flex items-baseline gap-2">
120
+ <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
121
+ <span>Activity and status — last commit, monthly history, health signals</span>
122
+ </li>
123
+ <li class="flex items-baseline gap-2">
124
+ <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
125
+ <span>License, stars, and curation tier</span>
126
+ </li>
127
+ <li class="flex items-baseline gap-2">
128
+ <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
129
+ <span>Curated notes: best for, why listed, caveats</span>
130
+ </li>
131
+ <li class="flex items-baseline gap-2">
132
+ <span aria-hidden="true" class="text-ink-400 dark:text-ink-500">—</span>
133
+ <span>Filters that respect you — search by stack, platform, license, or status</span>
134
+ </li>
135
+ </ul>
136
+ </section>
137
+
138
+ <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
139
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
140
+ Generic by design
141
+ </span>
142
+ <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
143
+ Generic by design
144
+ </h2>
145
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
146
+ The framework supports three blueprints: project-directory,
147
+ resource-hub, and ecosystem-map. Each can be configured
148
+ without touching the components — pages, schema, and
149
+ routes all derive from <code class="font-mono">grove.config.ts</code>.
150
+ </p>
151
+ </section>
152
+
153
+ <section class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors mt-4 p-5 sm:p-6">
154
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
155
+ Free to fork, free to extend
156
+ </span>
157
+ <h2 class="mt-1 m-0 text-[1.125rem] sm:text-[1.25rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
158
+ Free to fork, free to extend
159
+ </h2>
160
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
161
+ The full data lives in this repository as plain YAML. The
162
+ static output is plain HTML. No database, no JavaScript
163
+ framework, no CDN with sticky sessions.
164
+ </p>
165
+ <p class="mt-3 m-0 text-[0.9375rem] leading-relaxed text-ink-700 dark:text-ink-200">
166
+ Anyone can suggest a new {item}, fix a typo, or improve the
167
+ metadata through a pull request.
168
+ </p>
169
+ </section>
170
+
171
+ <section class="mt-8 flex flex-wrap items-center gap-3">
172
+ <a href={`/${slug}`} class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-primary text-primary-foreground hover:bg-primary/90">Browse the directory</a>
173
+ {githubUrl && (
174
+ <a
175
+ href={githubUrl}
176
+ target="_blank"
177
+ rel="noopener noreferrer"
178
+ class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 border-border bg-secondary text-foreground hover:bg-accent"
179
+ >
180
+ View on GitHub
181
+ </a>
182
+ )}
183
+ <a href="/submit" class="inline-flex h-8 cursor-pointer items-center justify-center gap-1.5 rounded-[var(--radius)] border border-transparent px-3 text-sm font-medium leading-none no-underline outline-none transition-colors focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/35 bg-transparent text-foreground hover:bg-accent hover:text-accent-foreground">Submit a {item} →</a>
184
+ </section>
185
+ </>
186
+ )}
187
+ </article>
188
+ </Container>
189
+ </BaseLayout>
@@ -0,0 +1,113 @@
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 { getContributorsPageModel } from "@grove-dev/astro/server";
17
+
18
+ const { contributors: sorted, total, title, description, contributorsGraphHref } =
19
+ getContributorsPageModel(siteConfig);
20
+ ---
21
+
22
+ <BaseLayout title={title} description={description} site={siteConfig}>
23
+ <section class="py-12 sm:py-16">
24
+ <div class="mx-auto w-full max-w-wide px-5 py-12 sm:px-7 sm:py-16">
25
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
26
+ Community
27
+ </span>
28
+ <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">
29
+ {total > 0 ? `${total} community contributors` : "Community"}
30
+ </h1>
31
+ <p class="m-0 mt-3 max-w-2xl text-base leading-relaxed text-ink-700 dark:text-ink-200">
32
+ {total > 0
33
+ ? `People who have improved ${siteConfig.name} through code, curation, and review.`
34
+ : `Community profiles will appear after ${siteConfig.name} syncs its source repository metadata.`}
35
+ </p>
36
+
37
+ {contributorsGraphHref && (
38
+ <p class="m-0 mt-3 text-sm text-ink-500 dark:text-ink-400">
39
+ <a
40
+ href={contributorsGraphHref}
41
+ target="_blank"
42
+ rel="noopener noreferrer"
43
+ class="font-medium underline decoration-ink-300 underline-offset-2 hover:decoration-ink-500 dark:decoration-ink-700 dark:hover:decoration-ink-400"
44
+ >
45
+ GitHub contributors graph →
46
+ </a>
47
+ </p>
48
+ )}
49
+ </div>
50
+ </section>
51
+
52
+ {sorted.length === 0 ? (
53
+ <section class="py-12 sm:py-16">
54
+ <div class="mx-auto w-full max-w-container px-5 pb-16 sm:px-7">
55
+ <div class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex flex-col items-center gap-3 p-8 text-center">
56
+ <p class="m-0 text-sm text-ink-500 dark:text-ink-400">
57
+ No contributors synced yet. Once the first sync runs, every
58
+ contributor avatar lands here.
59
+ </p>
60
+ </div>
61
+ </div>
62
+ </section>
63
+ ) : (
64
+ <section class="py-12 sm:py-16" aria-label="Contributors list">
65
+ <div class="mx-auto w-full max-w-wide px-5 pb-16 sm:px-7">
66
+ <ul
67
+ 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"
68
+ aria-label="Contributors"
69
+ >
70
+ {sorted.map((c) => {
71
+ const href = c.profileUrl ?? `https://github.com/${c.username}`;
72
+ const avatar =
73
+ c.avatarUrl ??
74
+ `https://avatars.githubusercontent.com/${c.username}?v=4&s=80`;
75
+ return (
76
+ <li class="m-0 p-0">
77
+ <a
78
+ href={href}
79
+ target="_blank"
80
+ rel="noopener noreferrer"
81
+ class="group rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted 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"
82
+ data-event="contributor_click"
83
+ data-event-source="contributors_page"
84
+ >
85
+ <img
86
+ src={avatar}
87
+ alt={c.name ?? c.username}
88
+ width="56"
89
+ height="56"
90
+ loading="lazy"
91
+ decoding="async"
92
+ class="h-14 w-14 rounded-full border border-ink-200 object-cover dark:border-ink-800"
93
+ />
94
+ <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">
95
+ {c.name ?? c.username}
96
+ </span>
97
+ <span class="text-2xs text-ink-500 dark:text-ink-400">
98
+ @{c.username}
99
+ </span>
100
+ {typeof c.contributions === "number" && (
101
+ <span class="font-mono text-2xs text-ink-400">
102
+ {c.contributions.toLocaleString()} contributions
103
+ </span>
104
+ )}
105
+ </a>
106
+ </li>
107
+ );
108
+ })}
109
+ </ul>
110
+ </div>
111
+ </section>
112
+ )}
113
+ </BaseLayout>