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

@sunshj/mdc

v0.3.9

Published

Prose components for Nuxt MDC.

Readme

MDC Prose Components

npm version npm downloads License Nuxt

Prose components for Nuxt MDC.

Quick Setup

Install the module to your Nuxt application with one command:

npx nuxi module add @sunshj/mdc

That's it! You can now use MDC Prose Components in your Nuxt app ✨

Styles

Headings and paragraphs follow a compact type scale inspired by Tailwind Typography, driven by CSS variables so a theme can retune it without touching component styles:

| Variable | Default | Description | | --------------------------- | --------- | -------------------------------- | | --mdc-prose-line-height | 1.75 | Paragraph line height | | --mdc-prose-spacing | 1.25em | Paragraph vertical rhythm | | --mdc-heading-spacing | 1 | Multiplier for heading margins | | --mdc-heading-weight | 600 | Weight for h3–h6 | | --mdc-h1-size | 2.25em | h1 font size | | --mdc-h1-weight | 800 | h1 font weight | | --mdc-h2-size | 1.5em | h2 font size | | --mdc-h2-weight | 700 | h2 font weight | | --mdc-h3-size | 1.25em | h3 font size | | --mdc-h4-size | 1.125em | h4 font size | | --mdc-h5-size | 1em | h5 font size | | --mdc-h6-size | 0.875em | h6 font size |

The bundled theme.css only declares the variables the components consume and is mounted by default. Disable it to provide your own stylesheet:

export default defineNuxtConfig({
  mdcp: {
    css: false
  }
})

Every var() keeps the default as a fallback, so components stay readable without the stylesheet.

Comark

The components also render under Comark, including its streaming mode. Comark resolves Prose* components by name, so no component mapping is needed.

Disable the bundled @nuxtjs/mdc module when the app renders with Comark, otherwise both modules register the same prose components:

export default defineNuxtConfig({
  modules: ['@sunshj/mdc'],
  mdcp: {
    mdc: false
  }
})
<template>
  <Suspense>
    <Markdown :value="content" streaming caret />
  </Suspense>
</template>

<script setup lang="ts">
import { Markdown } from '@comark/vue'
</script>

Syntax highlighting comes from Comark's shiki() plugin. Copy buttons, code folding and code group tabs follow the streamed content.

Contribution

  # Install dependencies
  npm install

  # Generate type stubs
  npm run dev:prepare

  # Develop with the playground
  npm run dev

  # Develop the Comark demo (shiki 4, no MDC)
  npm run dev:comark

  # Build the playground
  npm run dev:build

  # Run ESLint
  npm run lint

  # Run Vitest
  npm run test
  npm run test:watch

  # Release new version
  npm run release