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

@manufosela/data-card

v1.0.0

Published

A versatile card web component for displaying data with optional cover image, icon, links, and modal info, built with Lit

Readme

@manufosela/data-card

A versatile card web component for displaying data with optional cover image, icon, links, and modal info panel. Built with Lit.

Installation

npm install @manufosela/data-card

Usage

import '@manufosela/data-card';
<!-- Basic card -->
<data-card
  card-title="Welcome"
  description="A simple data card."
></data-card>

<!-- Card with icon -->
<data-card
  card-title="Settings"
  description="Configure your preferences."
  icon="⚙️"
></data-card>

<!-- Card with cover image -->
<data-card
  card-title="Mountain View"
  description="Beautiful landscape."
  img-cover="https://example.com/image.jpg"
></data-card>

<!-- Clickable card with link -->
<data-card
  card-title="Visit Site"
  description="Go to the website."
  url="https://example.com"
  newtab
></data-card>

<!-- Card with group badge -->
<data-card
  card-title="Tutorial"
  description="Learn something new."
  icon="📚"
  group="Education"
></data-card>

Attributes

| Attribute | Type | Default | Description | |-----------|------|---------|-------------| | card-title | String | '' | Card heading text | | description | String | '' | Card description text | | url | String | '' | Link URL when card is clicked | | newtab | Boolean | false | Open link in new tab | | icon | String | '' | Icon character or emoji | | group | String | '' | Group/category label badge | | img-cover | String | '' | URL for cover image | | cover-bg-color | String | '' | Background color for cover area | | text-color | String | '' | Text color | | more-info | String | '' | URL to fetch additional info |

CSS Custom Properties

| Property | Default | Description | |----------|---------|-------------| | --data-card-width | 280px | Card width | | --data-card-min-height | 200px | Minimum height | | --data-card-bg | #ffffff | Background color | | --data-card-border-color | #e5e7eb | Border color | | --data-card-border-radius | 16px | Border radius | | --data-card-shadow | 0 4px 6px... | Box shadow | | --data-card-padding | 1.5rem | Content padding | | --data-card-title-size | 1.25rem | Title font size | | --data-card-title-color | #1f2937 | Title color | | --data-card-desc-size | 0.875rem | Description font size | | --data-card-desc-color | #6b7280 | Description color | | --data-card-icon-size | 3rem | Icon size | | --data-card-icon-color | #3b82f6 | Icon color | | --data-card-cover-height | 140px | Cover image height | | --data-card-cover-opacity | 1 | Cover image opacity | | --data-card-group-bg | #3b82f6 | Group badge background | | --data-card-group-color | #ffffff | Group badge text color |

Slots

| Name | Description | |------|-------------| | (default) | Additional content below description | | footer | Footer content with border separator |

Events

| Event | Detail | Description | |-------|--------|-------------| | data-card-click | { title, url, group } | Fired when card is clicked |

Examples

Custom Styling

<data-card
  card-title="Dark Card"
  icon="🌙"
  style="
    --data-card-bg: #1e293b;
    --data-card-title-color: #f8fafc;
    --data-card-desc-color: #94a3b8;
  "
></data-card>

With Slotted Content

<data-card card-title="Article">
  <div class="tags">
    <span>JavaScript</span>
    <span>Web Components</span>
  </div>
  <button slot="footer">Read More</button>
</data-card>

Gradient Cover

<data-card
  card-title="Featured"
  icon="⭐"
  cover-bg-color="linear-gradient(135deg, #667eea, #764ba2)"
></data-card>

License

MIT