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

@pagix/bento-grid

v0.2.2

Published

Anvilkit Puck-native Bento Grid component.

Readme

@pagix/bento-grid

A Puck-native Bento Grid component with adaptive mobile/tablet/desktop layouts, built-in light/dark theming, a serializable items API for Puck, and exported BentoCard primitives for direct composition.

Install

pnpm add @pagix/bento-grid @puckeditor/core

Styles

Import the package stylesheet once from your app entry before rendering the component.

import "@pagix/bento-grid/styles.css";

In Next.js, add the import to app/layout.tsx or pages/_app.tsx.

Examples

Basic usage

Render the grid with the bundled example cards via defaultProps.

import "@pagix/bento-grid/styles.css";
import { BentoGrid, defaultProps } from "@pagix/bento-grid";

export function Example() {
  return <BentoGrid {...defaultProps} />;
}

Theming and direct BentoCard composition

Set theme and platform, and pass BentoCard children for full control over each cell instead of the serializable items array.

import { BentoCard, BentoGrid } from "@pagix/bento-grid";

export function CustomCards() {
  return (
    <BentoGrid theme="light" platform="tablet">
      <BentoCard size="wide">
        <h2 className="text-xl font-medium text-card-foreground">
          Custom card
        </h2>
        <p className="text-sm text-muted-foreground">
          Use BentoCard for fully custom cell content.
        </p>
      </BentoCard>
    </BentoGrid>
  );
}

Register in a Puck config

Wire the exported componentConfig into a Puck Config.

import type { Config } from "@puckeditor/core";
import { componentConfig, type BentoGridProps } from "@pagix/bento-grid";

const config: Config<{ BentoGrid: BentoGridProps }> = {
  components: {
    BentoGrid: componentConfig,
  },
};

API

Derived from the exported BentoGridProps type and the Puck fields schema.

| Prop | Type | Default | Description | | ------------------------- | ---------------------------------------------------------------------- | ------------------- | -------------------------- | | theme | "system" | "light" | "dark" | "dark" | Color theme. | | platform | "adaptive" | "mobile" | "tablet" | "desktop" | "adaptive" | Platform layout. | | items | BentoGridItem[] | (6 example cards) | Grid cards. | | items[].icon | "brain" | "users" | "plug" | "globe" | "code" | "zap" | "brain" | Card icon. | | items[].title | string | "Card title" | Card title. | | items[].description | string | — | Card description. | | items[].size | "default" | "wide" | "tall" | "default" | Card span size. | | items[].rounded | boolean | false | Rounded corners. | | items[].background | boolean | true | Decorative background. | | items[].ctaLabel | string | "Learn more >" | CTA label. | | items[].ctaHref | string | "#" | CTA href. | | items[].ctaOpenInNewTab | boolean | false | Open the CTA in a new tab. |

children and className are also accepted on the component directly: pass BentoCard children to bypass the serializable items array.

Theme & Responsiveness

Supports light and dark themes via the theme prop and shadcn CSS variable tokens. The platform prop controls layout: adaptive automatically switches between mobile, tablet, and desktop grid layouts based on viewport width.