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

@7pmlabs/design-system-nuxt

v1.1.0

Published

Nuxt 4 module for @7pmlabs/design-system — auto-imports components, composables, and the design system stylesheet.

Readme

@7pmlabs/design-system-nuxt

Nuxt 4 module for @7pmlabs/design-system. Auto-imports every B* component, registers the useValidationForm / useValidationField composables, and injects the bundled stylesheet.

📖 Documentation: https://ngphanducthinh.github.io/7pmlabs-design-system/

Install

# bun
bun add @7pmlabs/design-system-nuxt

# npm
npm i @7pmlabs/design-system-nuxt

Usage

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@7pmlabs/design-system-nuxt'],
});

That's it. In any .vue file:

<script setup lang="ts">
import { ref } from 'vue';
import { z } from 'zod';

const form = useValidationForm();
const email = ref('');
const { errors } = useValidationField('email', email, z.string().email());
</script>

<template>
  <BButton variant="solid" color="primary">Click me</BButton>
  <BInput v-model="email" />
  <BAlert v-if="errors.length" type="failure" :message="errors[0]" />
</template>

No imports needed for BButton, BInput, BAlert, useValidationForm, or useValidationField — the module registers all of them.

Options

export default defineNuxtConfig({
  modules: ['@7pmlabs/design-system-nuxt'],
  designSystem: {
    components: true,    // auto-register components (default: true)
    composables: true,   // auto-register composables (default: true)
    css: true,           // inject the bundled stylesheet (default: true)
    prefix: '',          // prepend to every component name, e.g. 'D' → DBButton
    tailwind: true,      // register @tailwindcss/vite (default: true)
    icons: true,         // wire up the BIcon Vite plugin + Nitro asset route (default: true)
  },
});

Disable individual features when you want manual control. For example:

  • css: false — you import a custom build of the stylesheet yourself.
  • tailwind: false — your app already wires up Tailwind (or doesn't use it at all). Disabling avoids registering @tailwindcss/vite twice.
  • icons: false — you want to configure the designSystem() Vite plugin yourself. The module also registers the icons folder as a Nitro public asset so production nuxi build ships them under /_design-system/icons/; turning this off skips that registration too.

Development

This module lives in a Bun workspace alongside @7pmlabs/design-system. It depends on the main lib via a local file:../.. reference for development; the integration test rewrites this to a real version range before publishing.

# from the repo root
bun install              # install workspace deps
bun run build            # build the main lib so the playground can resolve it

# in this package
cd packages/design-system-nuxt
bun run dev:prepare      # generate module stubs + prepare the playground
bun run dev              # nuxi dev playground → http://localhost:3000
bun run dev:build        # nuxi build playground (production build)
bun run build            # produce dist/module.mjs + types for npm

The playground in playground/ is a minimal Nuxt 4 app used to verify auto-import, CSS injection, and SSR work end-to-end during development.

Adding a new component to the auto-import list

Whenever the main lib gains a new public component, add its name to src/components.ts — both top-level components and sub-components (e.g. BFormItem, BModalHeader) need to be listed individually. Same goes for new composables in COMPOSABLE_NAMES. Without that, the symbol will still be importable manually but won't auto-import in Nuxt apps.

Testing

From the repo root:

bun run test:int:nuxt

This packs both @7pmlabs/design-system and @7pmlabs/design-system-nuxt into .tgz files, scaffolds a fresh Nuxt 4 app in a temp directory, installs both tarballs, and runs nuxi preparenuxi typechecknuxi build. It's the closest signal we have to "would this work for a real consumer". See scripts/test-integration-nuxt.ts.

Publishing

The main lib must be published first. Then, before publishing this package:

  1. Replace "@7pmlabs/design-system": "file:../.." in package.json with the real version range — e.g. "^1.0.10".
  2. Bump this package's version.
  3. bun run build to produce dist/.
  4. npm publish --access public (or bun publish).
  5. Restore file:../.. if you intend to keep developing locally.

The integration test demonstrates this rewrite step automatically — see PREP MODULE in scripts/test-integration-nuxt.ts.