@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 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100"><path fill="#61DAFB" d="M50.307 58.817a8.816 8.816 0 1 0 0-17.632 8.816 8.816 0 0 0 0 17.632"/><path stroke="#61DAFB" stroke-width="5" d="M50.307 68.063c26.126 0 47.306-8.087 47.306-18.062s-21.18-18.063-47.306-18.063C24.18 31.938 3 40.025 3 50.001s21.18 18.062 47.307 18.062Z"/><path stroke="#61DAFB" stroke-width="5" d="M34.664 59.032C47.727 81.658 65.321 95.957 73.96 90.969c8.64-4.988 5.053-27.373-8.01-50C52.885 18.343 35.291 4.044 26.652 9.032s-5.052 27.373 8.011 50Z"/><path stroke="#61DAFB" stroke-width="5" d="M34.664 40.97c-13.063 22.626-16.65 45.011-8.01 50 8.638 4.987 26.232-9.312 39.295-31.938 13.064-22.627 16.65-45.012 8.01-50-8.638-4.988-26.232 9.31-39.295 31.937Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100.03"><path fill="#fff" d="m99.317 48.775-4.198-2.599a57 57 0 0 0-.12-1.222l3.608-3.366a1.44 1.44 0 0 0 .432-1.338 1.44 1.44 0 0 0-.91-1.072l-4.613-1.725a54 54 0 0 0-.36-1.19l2.876-3.996a1.444 1.444 0 0 0-.94-2.271l-4.864-.791q-.284-.553-.584-1.092l2.043-4.486a1.44 1.44 0 0 0-.112-1.402 1.44 1.44 0 0 0-1.252-.642l-4.935.172a39 39 0 0 0-.78-.946l1.134-4.807a1.444 1.444 0 0 0-1.738-1.74l-4.807 1.134a42 42 0 0 0-.947-.78l.172-4.935a1.44 1.44 0 0 0-1.327-1.492 1.44 1.44 0 0 0-.716.126l-4.484 2.045q-.543-.3-1.092-.586L70.01 4.91a1.446 1.446 0 0 0-2.27-.94l-4 2.877q-.59-.188-1.188-.36l-1.725-4.614a1.442 1.442 0 0 0-2.41-.48l-3.365 3.61a43 43 0 0 0-1.222-.119l-2.6-4.2a1.445 1.445 0 0 0-2.456 0l-2.599 4.2a43 43 0 0 0-1.224.12l-3.366-3.611a1.443 1.443 0 0 0-2.41.48l-1.724 4.613q-.599.173-1.19.36L32.266 3.97a1.44 1.44 0 0 0-1.977.275 1.45 1.45 0 0 0-.294.665l-.793 4.864q-.55.285-1.092.586l-4.485-2.045a1.44 1.44 0 0 0-1.401.114 1.44 1.44 0 0 0-.642 1.252l.172 4.935q-.48.384-.948.78L16 14.263a1.45 1.45 0 0 0-1.723 1.011 1.44 1.44 0 0 0-.016.728l1.132 4.807q-.394.468-.777.946l-4.936-.172a1.45 1.45 0 0 0-1.491 1.328c-.02.245.023.492.125.716l2.045 4.486q-.3.54-.586 1.092l-4.863.79a1.445 1.445 0 0 0-.94 2.272l2.877 3.996q-.189.591-.362 1.19l-4.612 1.725a1.446 1.446 0 0 0-.479 2.41l3.609 3.365q-.068.61-.12 1.223l-4.198 2.6a1.443 1.443 0 0 0 0 2.455l4.198 2.6q.053.613.12 1.222l-3.61 3.367a1.445 1.445 0 0 0 .479 2.41l4.612 1.725q.174.598.362 1.19L3.969 67.74a1.444 1.444 0 0 0 .941 2.27l4.862.792q.285.552.586 1.093L8.313 76.38a1.44 1.44 0 0 0 .656 1.886c.22.112.463.166.71.157l4.933-.172q.386.48.78.947l-1.132 4.809a1.44 1.44 0 0 0 .385 1.35 1.44 1.44 0 0 0 1.354.385l4.806-1.132q.47.397.948.777l-.171 4.937a1.444 1.444 0 0 0 2.042 1.364l4.485-2.043q.542.3 1.092.586l.793 4.86a1.44 1.44 0 0 0 1.593 1.205c.245-.028.478-.118.678-.262l3.996-2.879q.591.189 1.19.362l1.725 4.611a1.44 1.44 0 0 0 1.072.91 1.44 1.44 0 0 0 1.338-.431l3.366-3.609q.61.07 1.223.122l2.6 4.199a1.445 1.445 0 0 0 2.456 0l2.598-4.199q.615-.053 1.223-.122l3.366 3.609a1.44 1.44 0 0 0 1.337.432 1.44 1.44 0 0 0 1.072-.91l1.725-4.612q.599-.173 1.19-.362l3.997 2.88a1.445 1.445 0 0 0 2.27-.943l.793-4.861q.55-.287 1.092-.586l4.484 2.043a1.443 1.443 0 0 0 2.043-1.364l-.171-4.936q.48-.382.946-.778l4.807 1.132c.488.115 1-.028 1.353-.384a1.44 1.44 0 0 0 .385-1.351l-1.132-4.809q.396-.468.777-.947l4.936.172a1.44 1.44 0 0 0 1.252-.64 1.44 1.44 0 0 0 .113-1.404l-2.044-4.483q.3-.543.585-1.094l4.863-.791a1.44 1.44 0 0 0 1.102-.874 1.44 1.44 0 0 0-.162-1.397l-2.877-3.996q.187-.592.362-1.19l4.611-1.725a1.44 1.44 0 0 0 .91-1.072 1.44 1.44 0 0 0-.431-1.338l-3.608-3.366q.066-.61.12-1.222l4.198-2.6a1.44 1.44 0 0 0 .684-1.227c0-.5-.258-.966-.683-1.229M71.218 83.602a2.975 2.975 0 0 1-2.278-3.534 2.966 2.966 0 0 1 3.524-2.283 2.974 2.974 0 0 1 2.28 3.531 2.973 2.973 0 0 1-3.526 2.286m-1.426-9.648a2.71 2.71 0 0 0-3.215 2.082l-1.49 6.956A36.4 36.4 0 0 1 50 86.24a36.4 36.4 0 0 1-15.402-3.394l-1.49-6.956a2.706 2.706 0 0 0-3.214-2.082l-6.14 1.319a36 36 0 0 1-3.176-3.742h29.879c.338 0 .563-.062.563-.37V60.448c0-.308-.225-.37-.563-.37h-8.738V53.38h9.45c.863 0 4.614.246 5.813 5.04.375 1.474 1.2 6.269 1.764 7.804.561 1.722 2.848 5.162 5.286 5.162h14.889q.254-.001.54-.054a37 37 0 0 1-3.387 3.973zm-41.324 9.502a2.97 2.97 0 0 1-3.527-2.282 2.976 2.976 0 0 1 2.28-3.534 2.975 2.975 0 0 1 1.247 5.816m-11.335-45.96a2.975 2.975 0 0 1-1.51 3.923 2.967 2.967 0 0 1-3.919-1.513 2.975 2.975 0 0 1 2.642-4.178 2.97 2.97 0 0 1 2.787 1.767m-3.484 8.257 6.397-2.842a2.71 2.71 0 0 0 1.377-3.578l-1.317-2.979h5.18V59.71H14.834a36.6 36.6 0 0 1-1.393-10.028c0-1.327.072-2.64.21-3.928m28.071-2.268V36.6H54.06c.637 0 4.5.737 4.5 3.625 0 2.398-2.963 3.258-5.4 3.258H41.72m44.84 6.196q0 1.369-.1 2.714h-3.75c-.376 0-.527.247-.527.614v1.723c0 4.055-2.287 4.937-4.29 5.161-1.908.215-4.023-.798-4.284-1.966-1.126-6.33-3.001-7.682-5.963-10.019 3.676-2.334 7.5-5.777 7.5-10.386 0-4.977-3.412-8.112-5.737-9.649-3.263-2.15-6.875-2.582-7.85-2.582H22.765c5.26-5.871 12.39-10.03 20.454-11.543l4.573 4.797a2.703 2.703 0 0 0 3.828.088l5.116-4.894c10.72 1.996 19.798 8.67 25.028 17.825l-3.502 7.912a2.715 2.715 0 0 0 1.377 3.577l6.744 2.995q.177 1.795.178 3.633M47.795 9.667a2.97 2.97 0 0 1 4.198.096 2.977 2.977 0 0 1-.098 4.205 2.965 2.965 0 0 1-4.199-.097 2.977 2.977 0 0 1 .099-4.204m34.759 27.972a2.967 2.967 0 0 1 3.917-1.512 2.975 2.975 0 0 1-1.277 5.692 3 3 0 0 1-1.13-.255 2.98 2.98 0 0 1-1.51-3.925"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100"><path fill="#000" d="M66.208 0 50.13 28.574H18L34.064 0z" opacity=".45"/><path fill="#000" d="M50.131 28.574h32.14L66.21 0H34.064z" opacity=".6"/><path fill="#000" d="m34.064 57.134 16.067-28.56L34.064 0 18 28.574z" opacity=".8"/><path fill="#000" d="m34.221 99.997 16.077-28.574H82.44L66.364 99.996z" opacity=".45"/><path fill="#000" d="M50.298 71.423h-32.14L34.22 99.996h32.143z" opacity=".6"/><path fill="#000" d="M66.364 42.86 50.297 71.423l16.067 28.573L82.44 71.423z" opacity=".8"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><rect width="100" height="100" rx="20" fill="#FF3E00"/><path fill="#FFFFFF" d="M50 18c-9 0-17 4.5-22.5 11.5l-6 7.5 6 7.5C33 51.5 41 56 50 56s17-4.5 22.5-11.5l6-7.5-6-7.5C67 22.5 59 18 50 18zm0 28.5c-5.5 0-10-4.5-10-10s4.5-10 10-10 10 4.5 10 10-4.5 10-10 10z"/><text x="50" y="82" font-family="Arial, sans-serif" font-size="14" font-weight="700" fill="#FFFFFF" text-anchor="middle">SVELTE</text></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100"><path fill="url(#a)" d="M22.218 0h55.369c2.694 0 5.31.43 7.848 1.329a22.06 22.06 0 0 1 9.489 6.718 21.9 21.9 0 0 1 4.803 10.703c.234 1.446.273 2.891.273 4.336V77.11c0 1.719-.078 3.476-.43 5.156a22.1 22.1 0 0 1-5.27 10.43c-2.617 2.93-6.053 5.117-9.763 6.289-2.264.703-4.607 1.015-6.99 1.015-1.053 0-55.485 0-56.305-.039a22.3 22.3 0 0 1-11.246-3.71 22.6 22.6 0 0 1-7.614-8.75C.898 84.493.156 81.133.156 77.774V22.227a20.74 20.74 0 0 1 2.07-9.57C3.905 9.14 6.52 6.055 9.762 3.867 13.08 1.603 16.986.275 20.968.08c.39-.079.82-.079 1.25-.079"/><path fill="url(#b)" d="M84.342 81.797a15 15 0 0 0-1.171-1.601 16.6 16.6 0 0 0-3.359-3.047c-1.561-1.055-3.397-1.719-5.27-1.797-1.329-.078-2.656.156-3.906.625-1.25.43-2.46 1.055-3.631 1.68-1.367.703-2.733 1.406-4.178 1.992a31.4 31.4 0 0 1-5.35 1.64c-2.303.43-4.646.587-6.95.547a47 47 0 0 1-12.339-1.875 46.7 46.7 0 0 1-10.035-4.335 52 52 0 0 1-7.77-5.508 57 57 0 0 1-5.545-5.508 60 60 0 0 1-3.358-4.297c-.43-.586-.82-1.211-1.171-1.836L0 47.344V22.15C0 9.922 9.879 0 22.1 0h19.72l14.603 14.844C89.38 37.266 78.72 61.993 78.72 61.993s9.372 10.547 5.623 19.804"/><path fill="#fff" d="M56.501 14.844c32.956 22.422 22.296 47.149 22.296 47.149s9.371 10.586 5.584 19.843c0 0-3.866-6.484-10.348-6.484-6.247 0-9.918 6.484-22.49 6.484-27.997 0-41.234-23.398-41.234-23.398 25.224 16.602 42.444 4.844 42.444 4.844C41.39 56.68 17.22 25.118 17.22 25.118c21.046 17.93 30.144 22.656 30.144 22.656-5.427-4.492-20.656-26.445-20.656-26.445C38.891 33.672 63.1 50.899 63.1 50.899c6.872-19.063-6.599-36.055-6.599-36.055"/><defs><linearGradient id="a" x1="59.465" x2="40.565" y1="-3.568" y2="103.578" gradientUnits="userSpaceOnUse"><stop stop-color="#FAAE42"/><stop offset="1" stop-color="#EF3E31"/></linearGradient><linearGradient id="b" x1="51" x2="37.167" y1="1.616" y2="80.035" gradientUnits="userSpaceOnUse"><stop stop-color="#E39F3A"/><stop offset="1" stop-color="#D33929"/></linearGradient></defs></svg>
@@ -0,0 +1 @@
1
+ <svg role="img" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><title>Tauri</title><path d="M13.912 0a8.72 8.72 0 0 0-8.308 6.139c1.05-.515 2.18-.845 3.342-.976 2.415-3.363 7.4-3.412 9.88-.097 2.48 3.315 1.025 8.084-2.883 9.45a6.131 6.131 0 0 1-.3 2.762 8.72 8.72 0 0 0 3.01-1.225A8.72 8.72 0 0 0 13.913 0zm.082 6.451a2.284 2.284 0 1 0-.15 4.566 2.284 2.284 0 0 0 .15-4.566zm-5.629.27a8.72 8.72 0 0 0-3.031 1.235 8.72 8.72 0 1 0 13.06 9.9131 10.173 10.173 0 0 1-3.343.965 6.125 6.125 0 1 1-7.028-9.343 6.114 6.115 0 0 1 .342-2.772zm1.713 6.27a2.284 2.284 0 0 0-2.284 2.283 2.284 2.284 0 0 0 2.284 2.284 2.284 2.284 0 0 0 2.284-2.284 2.284 2.284 0 0 0-2.284-2.284z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414" viewBox="1.78 0 60.42 64.03"><path fill="#f6bd3a" fill-rule="nonzero" d="m27.733 34.453 8.64-5.013 8.533 5.013-8.533 4.907-8.64-4.8zM1.813 19.627 36.373 0 62.08 14.613 53.547 29.44l-17.173-9.813-25.92 14.72z"/><path fill="#eb8c23" fill-rule="nonzero" d="M27.733 54.08v-9.813l8.533-4.907 8.64-4.907v9.813l-8.533 4.907v9.813L27.733 64zm0-19.627-8.64-4.907-8.64 4.8v-9.813l25.92-14.72V29.44zm25.707-9.92v-4.907l8.64-5.013.107 9.813-8.64 5.013z"/><path fill="#e35a2b" fill-rule="nonzero" d="M19.093 58.773V29.547l8.533-4.8.107 9.707 8.64 4.8v9.92l-8.64-4.587V64zM6.08 31.787l-4.267-2.56v-9.6l8.64 4.907v9.813zm30.293-12.16V9.813l17.067 9.813.107 9.813-17.173-9.813z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 100 100"><path fill="#017ACB" d="M0 0h100v100H0z"/><path fill="#fff" d="M48.016 37.032h4.797v8.281h-12.97v36.844l-.343.094c-.469.124-6.64.124-7.969-.016l-1.062-.094V45.313H17.5v-8.281l4.11-.047c2.25-.031 8.03-.031 12.843 0s10.906.047 13.563.047m36.61 41.219c-1.907 2.015-3.954 3.14-7.36 4.062-1.485.406-1.735.422-5.078.406s-3.61-.015-5.235-.437c-4.203-1.078-7.594-3.188-9.906-6.172-.656-.844-1.734-2.594-1.734-2.813 0-.062.156-.203.359-.296.203-.094.625-.36.969-.563s.968-.578 1.39-.797 1.64-.937 2.703-1.578c1.063-.64 2.032-1.156 2.141-1.156.11 0 .313.219.469.484.937 1.578 3.125 3.594 4.672 4.281.953.407 3.062.86 4.078.86.937 0 2.656-.406 3.578-.828.984-.453 1.484-.907 2.078-1.813.406-.64.453-.812.438-2.031 0-1.125-.063-1.438-.375-1.953-.875-1.438-2.063-2.188-6.875-4.313-4.97-2.203-7.204-3.515-9.016-5.281-1.344-1.312-1.61-1.672-2.453-3.312-1.094-2.11-1.235-2.797-1.25-5.938-.016-2.203.031-2.922.265-3.672.329-1.125 1.391-3.297 1.875-3.844 1-1.171 1.36-1.53 2.063-2.109 2.125-1.75 5.438-2.906 8.61-3.016.359 0 1.546.063 2.656.141 3.187.266 5.359 1.047 7.453 2.719 1.578 1.25 3.968 4.187 3.734 4.578-.156.234-6.39 4.39-6.797 4.516-.25.078-.422-.016-.765-.422-2.125-2.547-2.985-3.094-5.047-3.22-1.469-.093-2.25.079-3.235.735-1.03.688-1.53 1.735-1.53 3.188.015 2.125.827 3.125 3.827 4.61 1.938.952 3.594 1.733 3.719 1.733.188 0 4.203 2 5.25 2.626 4.875 2.859 6.86 5.796 7.375 10.859.375 3.812-.703 7.297-3.047 9.766"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="none"><path fill="#42B883" d="M75.4 28.7 50 73.3 24.6 28.7h11.3L50 51.1l14.1-22.4z"/><path fill="#35495E" d="M50 73.3 75.4 28.7H89L50 95.1 11 28.7h13.6z"/></svg>
@@ -0,0 +1,64 @@
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
+
13
+ const slug = indexSlug();
14
+ const title = `Not found — ${siteConfig.name}`;
15
+ const description = `That page doesn't exist on ${siteConfig.name}.`;
16
+ ---
17
+
18
+ <BaseLayout
19
+ title={title}
20
+ description={description}
21
+ site={siteConfig}
22
+ noindex
23
+ >
24
+ <section class="py-12 sm:py-16">
25
+ <div class="mx-auto w-full max-w-container px-5 py-20 sm:px-7 sm:py-28">
26
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
27
+ 404
28
+ </span>
29
+ <h1 class="m-0 mt-2 text-[2.25rem] sm:text-[3rem] font-semibold leading-[1.05] tracking-tight text-ink-900 dark:text-ink-100">
30
+ Page not found
31
+ </h1>
32
+ <p class="m-0 mt-4 max-w-xl text-lg leading-relaxed text-ink-700 dark:text-ink-200">
33
+ The page you're looking for doesn't exist on {siteConfig.name}.
34
+ It may have been moved, renamed, or never existed.
35
+ </p>
36
+
37
+ <form
38
+ class="mt-8 flex max-w-xl flex-col gap-2 sm:flex-row sm:items-center"
39
+ role="search"
40
+ action={`/${slug}`}
41
+ method="get"
42
+ >
43
+ <label class="relative flex-1">
44
+ <span class="sr-only">Search</span>
45
+ <input
46
+ type="search"
47
+ name="q"
48
+ placeholder={`Search ${slug}...`}
49
+ autocomplete="off"
50
+ class="w-full rounded-md border border-ink-200 bg-white py-2.5 px-3 text-sm 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"
51
+ />
52
+ </label>
53
+ <button type="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-primary text-primary-foreground hover:bg-primary/90">
54
+ Search
55
+ </button>
56
+ </form>
57
+
58
+ <div class="mt-6 flex flex-wrap gap-3">
59
+ <a href="/" 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">Back to home</a>
60
+ <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 border-border bg-secondary text-foreground hover:bg-accent">Browse {slug}</a>
61
+ </div>
62
+ </div>
63
+ </section>
64
+ </BaseLayout>
@@ -0,0 +1,527 @@
1
+ ---
2
+ /**
3
+ * Detail page — one record at a time.
4
+ *
5
+ * Layout (top to bottom):
6
+ * 1. Breadcrumb — back to the directory index
7
+ * 2. AppCard-style header — logo + name + owner + description + CTAs
8
+ * 3. ScoreBars — 5-dimension + overall score block
9
+ * 4. BestFor / WhyListed / Caveats — 3-column curation grid
10
+ * 5. GitHub signals dl — stars, forks, pushed, license, language
11
+ * 6. Stack + Platform chips — Icon (with fallback to text)
12
+ * 7. Distribution channels — npm/crates/docker/etc. (when present)
13
+ * 8. Content markdown — `record.content` (rendered as raw HTML
14
+ * body) when present
15
+ * 9. JSON-LD SoftwareSourceCode — for SEO + AI crawlers
16
+ *
17
+ * Generic across the 3 record kinds (project / resource / entity) —
18
+ * non-project fields simply render nothing. The URL is dynamic on
19
+ * both `[slug]` (blueprint route, e.g. `projects`/`resources`/
20
+ * `entities`) and `[recordSlug]` (the record slug), so a single page
21
+ * file serves every blueprint and every record.
22
+ */
23
+ import siteConfig from "@grove/generated/site-config.json";
24
+ import {
25
+ fullRecords,
26
+ getRecordDetailModel,
27
+ } from "@grove-dev/astro/server";
28
+ import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
29
+ import Icon from "@grove-dev/astro/components/Icon.astro";
30
+ import ScoreBars from "@grove-dev/astro/components/ScoreBars.astro";
31
+ import CurationGrid from "@grove-dev/astro/components/CurationGrid.astro";
32
+ import { prettySlug, labelDisplay } from "@grove-dev/astro";
33
+ import type { LabelId } from "@grove-dev/astro";
34
+
35
+ export function getStaticPaths() {
36
+ // Walk every record and emit a path for it. The directory slug
37
+ // is read from the static site-config import at the top of this
38
+ // file (Vite resolves the JSON at build time). This template
39
+ // ships with the `project-directory` blueprint, so the slug is
40
+ // always `projects`; swapping in a different blueprint means
41
+ // changing the blueprint config that drives this value.
42
+ const dirSlug = siteConfig.blueprintConfig?.routeSlug ?? "projects";
43
+ return fullRecords.map((record) => ({
44
+ params: { slug: dirSlug, recordSlug: record.slug },
45
+ }));
46
+ }
47
+
48
+ const recordSlug = Astro.params.recordSlug ?? "";
49
+ const detail = getRecordDetailModel(
50
+ recordSlug,
51
+ siteConfig,
52
+ Astro.params.slug ?? siteConfig.blueprintConfig?.routeSlug ?? "projects",
53
+ );
54
+ if (!detail) return Astro.redirect(`/${siteConfig.blueprintConfig?.routeSlug ?? "projects"}`);
55
+ const {
56
+ slug, record, isProject, name, title, description,
57
+ itemSingular, repoUrl, homepageUrl, stacks, platforms, github, forks,
58
+ language, licenseSpdx, pushedAt, starsLabel, pushedLabel, ownerRepo, avatarSrc,
59
+ initials, bestFor, whyListed, caveats, distribution, scores, curationLabels,
60
+ tags, healthLabel, contentHtml, monthlyCommits, maxMonthlyCommits,
61
+ contributionSignals, languages, totalLanguageBytes, jsonLd,
62
+ } = detail;
63
+
64
+ // Map each known label to a static Tailwind class string so every
65
+ // utility is visible to Tailwind's source scanner. Unknown/legacy
66
+ // labels use the neutral secondary badge treatment.
67
+ const labelClassMap: Record<LabelId, string> = {
68
+ new: "!bg-emerald-50 !text-emerald-700 dark:!bg-emerald-950/80 dark:!text-emerald-300",
69
+ hot: "!bg-orange-50 !text-orange-800 dark:!bg-orange-950/80 dark:!text-orange-300",
70
+ mature: "!bg-blue-50 !text-blue-700 dark:!bg-blue-950/80 dark:!text-blue-300",
71
+ featured: "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",
72
+ };
73
+
74
+ ---
75
+
76
+ <BaseLayout
77
+ title={title}
78
+ description={description}
79
+ site={siteConfig}
80
+ type="article"
81
+ jsonLd={jsonLd}
82
+ submitHref="/submit"
83
+ submitLabel={`Submit ${itemSingular}`}
84
+ >
85
+ <article class="py-12 sm:py-16">
86
+ <div class="mx-auto w-full max-w-wide px-5 sm:px-7">
87
+ <nav class="mb-6 text-2xs text-ink-500 dark:text-ink-400" aria-label="Breadcrumb">
88
+ <a href={`/${slug}`} class="hover:text-ink-900 dark:hover:text-ink-100 capitalize">
89
+ {slug}
90
+ </a>
91
+ <span class="mx-1.5 text-ink-300 dark:text-ink-700">/</span>
92
+ <span class="text-ink-700 dark:text-ink-300">{name}</span>
93
+ </nav>
94
+
95
+ {/* ── AppCard-style header ──────────────────────────────── */}
96
+ <header class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex flex-col gap-5 p-6 sm:flex-row sm:items-start">
97
+ <div class="flex-shrink-0">
98
+ {avatarSrc ? (
99
+ <img
100
+ src={avatarSrc}
101
+ alt=""
102
+ width="64"
103
+ height="64"
104
+ loading="lazy"
105
+ decoding="async"
106
+ class="h-16 w-16 rounded-lg border border-ink-200 object-contain bg-white p-1 dark:border-ink-800 dark:bg-ink-950"
107
+ />
108
+ ) : (
109
+ <span
110
+ aria-hidden="true"
111
+ class="inline-flex h-16 w-16 items-center justify-center rounded-lg border border-ink-200 bg-ink-50 text-2xl font-semibold text-ink-700 dark:border-ink-800 dark:bg-ink-900 dark:text-ink-200"
112
+ >
113
+ {initials || "·"}
114
+ </span>
115
+ )}
116
+ </div>
117
+
118
+ <div class="min-w-0 flex-1">
119
+ <div class="flex flex-wrap items-center gap-2">
120
+ <span class="rounded-full border border-ink-200 px-2 py-0.5 text-2xs font-medium uppercase tracking-wider text-ink-700 dark:border-ink-800 dark:text-ink-300">
121
+ {record.kind}
122
+ </span>
123
+ {record.category && (
124
+ <span class="rounded-full border border-ink-200 px-2 py-0.5 text-2xs font-medium text-ink-700 dark:border-ink-800 dark:text-ink-300">
125
+ {record.category}
126
+ </span>
127
+ )}
128
+ {curationLabels.map((l) => (
129
+ <span 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 ${labelClassMap[l as LabelId] ?? ""}`} title={`Curated: ${labelDisplay(l) ?? l}`}>
130
+ {labelDisplay(l) ?? prettySlug(l)}
131
+ </span>
132
+ ))}
133
+ {record.curation?.reviewed && (
134
+ <span
135
+ class="inline-flex items-center gap-1 rounded border border-emerald-300/60 bg-emerald-50 px-1.5 py-0.5 text-[10px] font-medium text-emerald-800 dark:border-emerald-800/60 dark:bg-emerald-950/40 dark:text-emerald-300"
136
+ title="A human curator reviewed this record. (No reviewer name is shown — the framework is reviewer-agnostic; consumers can wire the curation.by field into their own badge component.)"
137
+ >
138
+ <svg viewBox="0 0 16 16" width="10" height="10" aria-hidden="true" fill="currentColor">
139
+ <path d="M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0Zm3.41 5.09a.75.75 0 0 0-1.06 0L6.75 8.69 5.65 7.59a.75.75 0 1 0-1.06 1.06l1.65 1.65a.75.75 0 0 0 1.06 0l4.11-4.11a.75.75 0 0 0 0-1.06Z" />
140
+ </svg>
141
+ Curator reviewed
142
+ </span>
143
+ )}
144
+ {healthLabel && (
145
+ <span 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 !bg-amber-50 !text-amber-800 dark:!bg-amber-950/80 dark:!text-amber-300">{healthLabel}</span>
146
+ )}
147
+ </div>
148
+
149
+ <h1 class="m-0 mt-2 text-[1.75rem] sm:text-[2rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
150
+ {name}
151
+ </h1>
152
+
153
+ {ownerRepo && (
154
+ <p class="m-0 mt-1 text-sm text-ink-500 dark:text-ink-400">
155
+ <a
156
+ href={`https://github.com/${ownerRepo.owner}`}
157
+ target="_blank"
158
+ rel="noopener noreferrer"
159
+ class="text-inherit no-underline hover:text-ink-900 dark:hover:text-ink-100"
160
+ >
161
+ @{ownerRepo.owner}
162
+ </a>
163
+ <span class="mx-1 text-ink-300 dark:text-ink-700">/</span>
164
+ <a
165
+ href={repoUrl}
166
+ target="_blank"
167
+ rel="noopener noreferrer"
168
+ class="text-inherit no-underline hover:text-ink-900 dark:hover:text-ink-100"
169
+ >
170
+ {ownerRepo.repo}
171
+ </a>
172
+ </p>
173
+ )}
174
+
175
+ {record.description && (
176
+ <p class="m-0 mt-3 max-w-[68ch] text-base leading-relaxed text-ink-700 dark:text-ink-200">
177
+ {record.description}
178
+ </p>
179
+ )}
180
+
181
+ <div class="mt-5 flex flex-wrap gap-2">
182
+ {repoUrl && (
183
+ <a
184
+ href={repoUrl}
185
+ target="_blank"
186
+ rel="noopener noreferrer"
187
+ 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"
188
+ >
189
+ View on GitHub →
190
+ </a>
191
+ )}
192
+ {homepageUrl && (
193
+ <a
194
+ href={homepageUrl}
195
+ target="_blank"
196
+ rel="noopener noreferrer"
197
+ 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"
198
+ >
199
+ Homepage
200
+ </a>
201
+ )}
202
+ </div>
203
+ </div>
204
+ </header>
205
+
206
+ {/* ── Score bars ───────────────────────────────────────── */}
207
+ {scores && (
208
+ <section class="mt-8 rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-6" aria-labelledby="scores-heading">
209
+ <h2 id="scores-heading" class="m-0 text-lg font-semibold tracking-tight text-ink-900 dark:text-ink-100">
210
+ Scores
211
+ </h2>
212
+ <p class="m-0 mt-1 text-sm text-ink-500 dark:text-ink-400">
213
+ A five-dimension read of how likely this project is to satisfy a curious developer.
214
+ </p>
215
+ <div class="mt-4">
216
+ <ScoreBars scores={scores} />
217
+ </div>
218
+ </section>
219
+ )}
220
+
221
+ {/* ── BestFor / WhyListed / Caveats grid ──────────────── */}
222
+ {isProject && (
223
+ <CurationGrid
224
+ bestFor={bestFor}
225
+ whyListed={whyListed}
226
+ caveats={caveats}
227
+ class="mt-8"
228
+ />
229
+ )}
230
+
231
+ {/* ── GitHub signals dl ────────────────────────────────── */}
232
+ {isProject && github && (
233
+ <section class="mt-8 rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-6" aria-labelledby="signals-heading">
234
+ <h2 id="signals-heading" class="m-0 text-lg font-semibold tracking-tight text-ink-900 dark:text-ink-100">
235
+ GitHub signals
236
+ </h2>
237
+ <dl
238
+ class="mt-4 grid grid-cols-2 gap-x-6 gap-y-3 text-sm sm:grid-cols-3"
239
+ aria-label="Repository signals"
240
+ >
241
+ <div>
242
+ <dt class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
243
+ Stars
244
+ </dt>
245
+ <dd class="m-0 mt-0.5 font-mono text-ink-900 dark:text-ink-100">
246
+ {starsLabel ?? "—"}
247
+ </dd>
248
+ </div>
249
+ <div>
250
+ <dt class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
251
+ Forks
252
+ </dt>
253
+ <dd class="m-0 mt-0.5 font-mono text-ink-900 dark:text-ink-100">
254
+ {forks}
255
+ </dd>
256
+ </div>
257
+ <div>
258
+ <dt class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
259
+ Last push
260
+ </dt>
261
+ <dd class="m-0 mt-0.5 font-mono text-ink-900 dark:text-ink-100">
262
+ {pushedLabel}
263
+ </dd>
264
+ </div>
265
+ {language && (
266
+ <div>
267
+ <dt class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
268
+ Language
269
+ </dt>
270
+ <dd class="m-0 mt-0.5 text-ink-900 dark:text-ink-100">{language}</dd>
271
+ </div>
272
+ )}
273
+ {licenseSpdx && (
274
+ <div>
275
+ <dt class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
276
+ License
277
+ </dt>
278
+ <dd class="m-0 mt-0.5 text-ink-900 dark:text-ink-100">{licenseSpdx}</dd>
279
+ </div>
280
+ )}
281
+ {pushedAt && (
282
+ <div>
283
+ <dt class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
284
+ Updated
285
+ </dt>
286
+ <dd class="m-0 mt-0.5 font-mono text-ink-900 dark:text-ink-100">
287
+ {pushedAt.slice(0, 10)}
288
+ </dd>
289
+ </div>
290
+ )}
291
+ </dl>
292
+ </section>
293
+ )}
294
+
295
+ {/* ── Decision signals (3-col) ──────────────────────────── */}
296
+ {isProject && github && (
297
+ <section class="mt-8 grid grid-cols-1 gap-4 lg:grid-cols-3" aria-label="Decision signals">
298
+ {/* Repository health card */}
299
+ <div class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-5">
300
+ <h3 class="m-0 text-[1rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
301
+ Repository health
302
+ </h3>
303
+ <dl class="mt-4 grid gap-3 text-sm">
304
+ <div class="flex items-center justify-between gap-3">
305
+ <dt class="text-ink-500 dark:text-ink-400">Status</dt>
306
+ <dd class="font-medium text-ink-900 dark:text-ink-100">
307
+ {healthLabel ?? "—"}
308
+ </dd>
309
+ </div>
310
+ <div class="flex items-center justify-between gap-3">
311
+ <dt class="text-ink-500 dark:text-ink-400">Stars</dt>
312
+ <dd class="font-mono text-ink-900 dark:text-ink-100">
313
+ {starsLabel ?? "—"}
314
+ </dd>
315
+ </div>
316
+ <div class="flex items-center justify-between gap-3">
317
+ <dt class="text-ink-500 dark:text-ink-400">Forks</dt>
318
+ <dd class="font-mono text-ink-900 dark:text-ink-100">
319
+ {forks}
320
+ </dd>
321
+ </div>
322
+ <div class="flex items-center justify-between gap-3">
323
+ <dt class="text-ink-500 dark:text-ink-400">Open issues</dt>
324
+ <dd class="font-mono text-ink-900 dark:text-ink-100">
325
+ {github?.open_issues_count ?? "—"}
326
+ </dd>
327
+ </div>
328
+ {licenseSpdx && (
329
+ <div class="flex items-center justify-between gap-3">
330
+ <dt class="text-ink-500 dark:text-ink-400">License</dt>
331
+ <dd class="font-mono text-ink-900 dark:text-ink-100">{licenseSpdx}</dd>
332
+ </div>
333
+ )}
334
+ </dl>
335
+ </div>
336
+
337
+ {/* Activity bar chart */}
338
+ <div class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-5">
339
+ <h3 class="m-0 text-[1rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
340
+ Activity
341
+ </h3>
342
+ {monthlyCommits.length > 0 ? (
343
+ <figure class="mt-4 m-0">
344
+ <div
345
+ class="flex h-28 items-end gap-1.5"
346
+ role="img"
347
+ aria-label="Monthly commits over the last 12 months"
348
+ >
349
+ {monthlyCommits.map((item) => (
350
+ <div class="flex min-w-0 flex-1 flex-col items-center gap-1">
351
+ <div
352
+ class="w-full rounded-sm bg-ink-700 dark:bg-ink-200"
353
+ style={`height: ${Math.max(8, Math.round((item.commits / maxMonthlyCommits) * 96))}px`}
354
+ title={`${item.month || "month"}: ${item.commits} commits`}
355
+ />
356
+ <span class="max-w-full truncate text-[10px] text-ink-500 dark:text-ink-400">
357
+ {item.month ? item.month.slice(5) : item.commits}
358
+ </span>
359
+ </div>
360
+ ))}
361
+ </div>
362
+ <figcaption class="sr-only">
363
+ Monthly commit count over the last 12 months
364
+ </figcaption>
365
+ </figure>
366
+ ) : (
367
+ <p class="mt-4 m-0 text-sm text-ink-500 dark:text-ink-400">
368
+ Monthly commit history is not yet populated for this {itemSingular}.
369
+ </p>
370
+ )}
371
+ </div>
372
+
373
+ {/* Contribution readiness chips */}
374
+ <div class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-5">
375
+ <h3 class="m-0 text-[1rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
376
+ Contribution readiness
377
+ </h3>
378
+ {contributionSignals.length > 0 ? (
379
+ <ul class="mt-4 m-0 grid list-none gap-2 p-0 text-sm">
380
+ {contributionSignals.map((signal) => (
381
+ <li class="flex items-center justify-between gap-3">
382
+ <span class="text-ink-700 dark:text-ink-200">{signal.label}</span>
383
+ <span class={signal.ok ? "text-emerald-700 dark:text-emerald-400" : "text-ink-400 dark:text-ink-600"}>
384
+ {signal.ok ? "Found" : "Missing"}
385
+ </span>
386
+ </li>
387
+ ))}
388
+ </ul>
389
+ ) : (
390
+ <p class="mt-4 m-0 text-sm text-ink-500 dark:text-ink-400">
391
+ Contribution files have not been synced yet.
392
+ </p>
393
+ )}
394
+ </div>
395
+ </section>
396
+ )}
397
+
398
+ {/* ── Language mix ─────────────────────────────────────── */}
399
+ {isProject && languages.length > 0 && (
400
+ <section class="mt-4 rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors p-5">
401
+ <h3 class="m-0 text-[1rem] font-semibold tracking-tight text-ink-900 dark:text-ink-100">
402
+ Language mix
403
+ </h3>
404
+ <dl class="mt-4 grid gap-2 text-sm">
405
+ {languages.map(([language, bytes]) => {
406
+ const pct = Math.round((bytes / totalLanguageBytes) * 100);
407
+ return (
408
+ <div class="grid grid-cols-[8rem_minmax(0,1fr)_3rem] items-center gap-3">
409
+ <dt class="truncate text-ink-700 dark:text-ink-200">{language}</dt>
410
+ <dd class="h-2 overflow-hidden rounded-sm bg-ink-200 dark:bg-ink-800">
411
+ <div class="h-full bg-ink-700 dark:bg-ink-200" style={`width: ${pct}%`} />
412
+ </dd>
413
+ <dd class="text-right font-mono text-2xs text-ink-500 dark:text-ink-400">{pct}%</dd>
414
+ </div>
415
+ );
416
+ })}
417
+ </dl>
418
+ </section>
419
+ )}
420
+
421
+ {/* ── Stack + Platform chips ───────────────────────────── */}
422
+ {isProject && (stacks.length > 0 || platforms.length > 0) && (
423
+ <section class="mt-8" aria-labelledby="stacks-heading">
424
+ <h2 id="stacks-heading" class="m-0 text-lg font-semibold tracking-tight text-ink-900 dark:text-ink-100">
425
+ Stack & platforms
426
+ </h2>
427
+ <div class="mt-4 flex flex-col gap-3">
428
+ {stacks.length > 0 && (
429
+ <div class="flex flex-wrap items-center gap-2">
430
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
431
+ Stack
432
+ </span>
433
+ {stacks.map((s) => (
434
+ <span 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 items-center gap-1.5">
435
+ <Icon name={s} category="stack" size={14} />
436
+ {s}
437
+ </span>
438
+ ))}
439
+ </div>
440
+ )}
441
+ {platforms.length > 0 && (
442
+ <div class="flex flex-wrap items-center gap-2">
443
+ <span class="text-2xs font-medium uppercase tracking-wider text-ink-500 dark:text-ink-400">
444
+ Platform
445
+ </span>
446
+ {platforms.map((p) => (
447
+ <span 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 items-center gap-1.5">
448
+ <Icon name={p} category="platform" size={14} />
449
+ {p}
450
+ </span>
451
+ ))}
452
+ </div>
453
+ )}
454
+ </div>
455
+ </section>
456
+ )}
457
+
458
+ {/* ── Tags ─────────────────────────────────────────────── */}
459
+ {tags.length > 0 && (
460
+ <section class="mt-8" aria-labelledby="tags-heading">
461
+ <h2 id="tags-heading" class="m-0 text-lg font-semibold tracking-tight text-ink-900 dark:text-ink-100">
462
+ Tags
463
+ </h2>
464
+ <ul class="mt-4 m-0 flex list-none flex-wrap gap-1.5 p-0">
465
+ {tags.map((t) => (
466
+ <li>
467
+ <a
468
+ href={`/${slug}?q=${encodeURIComponent(t)}`}
469
+ 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 items-center gap-1.5"
470
+ >
471
+ {t}
472
+ </a>
473
+ </li>
474
+ ))}
475
+ </ul>
476
+ </section>
477
+ )}
478
+
479
+ {/* ── Distribution channels ────────────────────────────── */}
480
+ {distribution.length > 0 && (
481
+ <section class="mt-8" aria-labelledby="dist-heading">
482
+ <h2 id="dist-heading" class="m-0 text-lg font-semibold tracking-tight text-ink-900 dark:text-ink-100">
483
+ Distribution channels
484
+ </h2>
485
+ <ul class="mt-4 m-0 flex list-none flex-col gap-2 p-0">
486
+ {distribution.map((c) => (
487
+ <li class="rounded-[calc(var(--radius)+0.25rem)] border-0 bg-muted shadow-none transition-colors flex flex-wrap items-baseline justify-between gap-2 p-3">
488
+ <div class="flex flex-col">
489
+ <span class="text-sm font-semibold text-ink-900 dark:text-ink-100">
490
+ {c.label ?? c.type}
491
+ {c.verified && (
492
+ <span class="ml-2 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 !bg-emerald-50 !text-emerald-700 dark:!bg-emerald-950/80 dark:!text-emerald-300">Verified</span>
493
+ )}
494
+ </span>
495
+ {c.notes && (
496
+ <span class="text-xs text-ink-500 dark:text-ink-400">{c.notes}</span>
497
+ )}
498
+ </div>
499
+ <a
500
+ href={c.url}
501
+ target="_blank"
502
+ rel="noopener noreferrer"
503
+ 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"
504
+ >
505
+ {c.platform ?? c.type} →
506
+ </a>
507
+ </li>
508
+ ))}
509
+ </ul>
510
+ </section>
511
+ )}
512
+
513
+ {/* ── Content markdown ─────────────────────────────────── */}
514
+ {contentHtml && (
515
+ <section class="mt-8" aria-labelledby="content-heading">
516
+ <h2 id="content-heading" class="m-0 text-lg font-semibold tracking-tight text-ink-900 dark:text-ink-100">
517
+ Notes
518
+ </h2>
519
+ <div
520
+ class="grove-prose mt-4"
521
+ set:html={contentHtml}
522
+ />
523
+ </section>
524
+ )}
525
+ </div>
526
+ </article>
527
+ </BaseLayout>