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

@prosefly/astro-components

v0.5.0

Published

Reusable Astro components for MDX content.

Readme

@prosefly/astro-components

Reusable Astro components for MDX content.

Install

Install the package in an Astro v7 project:

pnpm add @prosefly/astro-components

If your site renders .mdx pages, make sure MDX is configured in Astro first. Lotus projects already include MDX, the markdown transforms, icon preloading, and the docs shell.

---
import { Callout } from '@prosefly/astro-components';
---

<Callout type="tip" title="Reusable">
  Package components use Prosefly CSS custom properties with built-in fallbacks.
</Callout>

Full documentation is available at prosefly.dev/docs/astro-components.

Exports

The main entry exports:

  • AccordionItem and Accordions
  • Badge
  • Callout
  • Card and CardGrid
  • FileTree
  • Icon
  • Steps
  • TabItem and Tabs

The markdown entry exports:

  • rehypeImageGallery
  • remarkPackageManagerTabs

Icon Integration

Use the @prosefly/astro-components/icon integration when a project wants Iconify preloading without the full Lotus theme:

import { defineConfig } from 'astro/config';
import proseflyIcon from '@prosefly/astro-components/icon';

export default defineConfig({
  integrations: [
    proseflyIcon({
      preload: ['lucide:star', 'simple-icons:github'],
    }),
  ],
});

The integration can scan src/**/*.astro, src/**/*.md, and src/**/*.mdx for static icon usage. Set scan: false to disable that behavior or apiBase to point at an internal Iconify-compatible endpoint.

Markdown Transforms

Use @prosefly/astro-components/markdown for optional markdown transforms:

import { defineConfig } from 'astro/config';
import { rehypeImageGallery, remarkPackageManagerTabs } from '@prosefly/astro-components/markdown';

export default defineConfig({
  markdown: {
    remarkPlugins: [remarkPackageManagerTabs],
    rehypePlugins: [rehypeImageGallery],
  },
});

remarkPackageManagerTabs recognizes common npm commands and can generate tabs for Node and Python package managers. rehypeImageGallery turns paragraphs that contain only images into gallery figures. Lotus enables both transforms by default.

Import the image gallery runtime once in the page shell to load styles and enable previous and next controls for galleries produced by rehypeImageGallery:

---
import '@prosefly/astro-components/markdown/image-gallery.css';
---

<script>
  import '@prosefly/astro-components/markdown/image-gallery.js';
</script>

Styling

Consumers can theme the components with --pf-* custom properties:

  • --pf-text-strong
  • --pf-text
  • --pf-text-muted
  • --pf-background
  • --pf-surface
  • --pf-accent
  • --pf-accent-soft
  • --pf-accent-contrast
  • --pf-{info|success|warning|danger}
  • --pf-{info|success|warning|danger}-soft
  • --pf-{info|success|warning|danger}-ink
  • --pf-{info|success|warning|danger}-contrast
  • --pf-callout-{note|tip|warning|danger}-{color|ink|bg}
  • --pf-border-subtle
  • --pf-font-sans
  • --pf-font-mono
  • --pf-radius-sm
  • --pf-radius-md
  • --pf-radius-lg
  • --pf-radius-full