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

@aphrody/m3-explorer

v3.3.4

Published

Material Design 3 file-management components (tag pill, inline rename, file thumb, grid item): the SpaceUI (@spacedrive/explorer) set rebuilt on @aphrody/m3-primitives.

Readme

@aphrody/m3-explorer

Material Design 3 file-management components for React: a tag chip, an inline rename field, a file thumbnail and a selectable grid tile. They are presentational: props in, callbacks out, no data fetching, no context. Consumers wire their own state.

This is SpaceUI's @spacedrive/explorer rebuilt on Material Design 3. The upstream source lives in packages/aphrody-spaceui/packages/explorer; the fusion rules are in docs/design/SPACEUI-M3-FUSION.md.

Install

bun add @aphrody/m3-explorer @aphrody/m3-primitives
bun add @aphrody/assets   # optional: file-kind icons and extension badges

Peer dependencies: react and react-dom 18 or 19, tailwindcss 4.1+.

CSS setup

The components use the M3 Tailwind utilities. Import the token sheets and let Tailwind scan the package, as described in SPACEUI-M3-FUSION.md → Integration:

@import "tailwindcss";
@import "@aphrody/m3-tokens/m3-tokens.css";
@import "@aphrody/m3-theme/spaceui.css"; /* or tokens.css */
@import "@aphrody/m3-theme/tailwind.css";

@source "../node_modules/@aphrody/m3-primitives/dist";
@source "../node_modules/@aphrody/m3-explorer/dist";

TagPill's remove button is a Material Symbols close glyph: register the font once with ensureMaterialSymbols() from @aphrody/material-web/icon/material-symbols.js.

Components

TagPill

An M3 input / filter chip: rounded-small, 1dp outline-variant border, text-label-large in on-surface-variant, a state layer when clickable. The tag color is user data, so it stays on the leading dot only. selected switches to the filter-chip selected state (bg-secondary-container text-on-secondary-container, no border).

| Prop | Type | Notes | | --------------------- | ---------------------- | ----------------------------------------------------------------------- | | color | string | Any CSS color, used for the dot. | | size | "xs" \| "sm" \| "md" | M3 density steps: md 32dp (baseline), sm 28dp (default), xs 24dp. | | selected | boolean | Filter-chip selected state. | | onClick, onRemove | (e) => void | onRemove adds a trailing 18px close icon with its own state layer. |

<TagPill color="#ef4444" onRemove={() => removeTag(id)}>
  Important
</TagPill>

RenameInput

Inline rename as a dense M3 filled text field: bg-surface-container-highest, rounded-extra-small, text-body-medium, a 2dp primary outline while focused, primary-container text selection. The stem is selected on mount and the extension is a read-only suffix. Enter saves (onSave receives the full name and may reject to keep editing), Escape and blur cancel; an empty or unchanged name cancels.

<RenameInput name="report" extension="pdf" onSave={async (next) => rename(next)} onCancel={stop} />

FileThumb

The kind icon renders at once; the thumbnail loads over it and hides it once loaded; an extension badge ("bearded icon") overlays small kinds. The default thumbnail frame is rounded-small with an outline-variant border on surface-container-high (the corner scales down below 100px); selected adds a 2dp primary outline; frameClassName replaces the frame.

iconSrc and thumbnailSrc take an IconSource (this package's type: a URL string or { src: string }), which is what bundlers return for image imports.

GridItem

An M3 selectable grid tile: rounded-medium, an on-surface state layer (8 % hover, 10 % pressed), bg-secondary-container with on-secondary-container content when selected, the M3 focus ring, the name in text-label-medium on up to two lines, size text or a volumeBar, and up to three tag dots plus a +N count.

Kind icons: @aphrody/assets

The components take icon URLs and do not depend on an icon set. @aphrody/assets (SpaceUI's @spacedrive/icons) provides the matching assets:

import { getBeardedIcon, getIcon } from "@aphrody/assets/util";
import { GridItem } from "@aphrody/m3-explorer";

// getBeardedIcon returns a badge name ("reactts"); serve or import
// @aphrody/assets/svgs/ext/Extras/<name>.svg and pass its URL.
const badge = getBeardedIcon("tsx");

<GridItem
  name="App"
  extension="tsx"
  sizeText="4 KB"
  thumb={{
    iconSrc: getIcon("Code", isDark, "tsx"), // a bundler-resolved asset: URL or { src }
    beardedIconSrc: badge ? `/assets/ext/${badge}.svg` : null,
  }}
  selected={selected}
  onClick={select}
/>;

Material Symbols stay the source for UI glyphs (actions, status); the file-kind artwork is not recolored by the M3 palette.

Credits and license

Derived from SpaceUI @spacedrive/explorer, MIT, © Spacedrive (see LICENSE.spaceui). The Material Design 3 rebuild is Apache-2.0; the package is published as Apache-2.0 AND MIT.