npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@grove-dev/astro

v0.1.5

Published

Astro framework adapter for Grove. Components, layouts, design tokens, and a default template.

Downloads

0

Readme

@grove-dev/astro

Astro framework adapter for Grove.

A thin layer of Astro components, layouts, and design tokens, on top of the framework-agnostic @grove-dev/core and @grove-dev/ui. Includes a default templates/default/ directory that grove new copies into a new project.

pnpm add @grove-dev/astro

What it ships

src/
├── components/        # ItemCard, CategoryGrid, HealthBadge, ScoreBars,
│                      # DirectoryFilters, DirectoryHero, LensTabs,
│                      # ActiveFilterChips, MethodologyPanel, Pagination,
│                      # ProjectDetail, SubmitDraft
├── layouts/           # BaseLayout
├── styles.css         # design tokens + utility classes
└── index.ts           # re-exports @grove-dev/ui

templates/
└── default/           # full Astro starter: pages/, layouts/, public/, data/,
                       # .github/, astro.config.mjs, tailwind.config.mjs

The package publishes dist/, src/, and templates/. The templates/ directory is not imported by consumers; it is copied by @grove-dev/cli at scaffold time.

Usage in a space

---
import { ItemCard, ScoreBars, HealthBadge, DirectoryFilters } from "@grove-dev/astro";
import "@grove-dev/astro/styles.css";
import BaseLayout from "@grove-dev/astro/layouts/BaseLayout.astro";
import apps from "../data/generated/apps.json";
---
<BaseLayout title="My Grove space">
  <DirectoryFilters facets={...} />
  {apps.map((app) => <ItemCard item={app} />)}
</BaseLayout>

Components are imported by path, not through the barrel — that lets astro check validate them in their own context. The barrel re-exports @grove-dev/ui so generic helpers (filterRecords, slugForCategory, etc.) are available from the same import.

Templates

templates/default/ is a complete Astro starter. It contains:

  • src/pages/ — index, item detail, search, about, methodology, submit, sitemap
  • src/components/ — layout primitives, page sections
  • src/data/ — placeholder dataset; replaced by grove build-data
  • src/lib/ — site-specific helpers (no business logic)
  • public/ — icons, OG image, robots
  • data/ — empty tree for the gardener to populate
  • astro.config.mjs, tailwind.config.mjs
  • .github/ — issue templates

Business logic (filtering, sorting, scoring, faceting) is imported from @grove-dev/ui, never re-implemented in the template.

Layering

@grove-dev/astro is the third layer of the Grove stack:

  1. @grove-dev/core — schemas, importers, build pipeline (headless).
  2. @grove-dev/ui — framework-agnostic UI primitives.
  3. @grove-dev/astro ← you are here — Astro components, layouts, template.

If you need a Svelte or Next.js variant, see @grove-dev/svelte and @grove-dev/nextjs.

Development

pnpm --filter @grove-dev/astro build
pnpm --filter @grove-dev/astro check

License

MIT