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

@dpa-id-components/dpa-shared-components

v23.2.1

Published

Shared Vue component library for dpa projects

Readme

DPA shared components library

Collection of common Vue.js components for use in dpa projects.

Content

Requirements

  • Node.js (see engines.node in package.json for compatible versions)
  • The packages @eslint/js @tailwindcss/typography eslint prettier tailwindcss vue vue-router (see peerDependencies in package.json for compatible versions)

Getting started

  1. Install the package.

    pnpm install @dpa-id-components/dpa-shared-components
  2. Install the peer dependencies.

    pnpm install @tailwindcss/typography tailwindcss vue vue-router
    pnpm install --dev @eslint/js eslint prettier
    • Tailwind and its plugins are needed because the shared Tailwind preset uses them.
    • Vue.js and vue-router are needed because the shared components depend on them.
    • ESLint and Prettier are needed because we want to enforce code quality linting and formatting across projects.
  3. Integrate the shared CSS and set up code quality linting and code formatting (see the following sections).

Integrate shared Tailwind preset

Reference the Tailwind preset from your CSS entrypoint (e.g. something like a main.css file).

@import "@dpa-id-components/dpa-shared-components/tailwindPreset";

@source "../../node_modules/@dpa-id-components/dpa-shared-components";
/* Make sure to adjust the `..` segments to match where the `node_modules` directory is. Tailwind won't produce an error if the path is wrong. */

/* … */

Set up code quality linting

A shared ESLint configuration is provided at @dpa-id-components/dpa-shared-components/config/eslint.config.js. Use it as a base configuration for code quality linting via ESLint.

Example ESLint configuration:

import sharedConfig from "@dpa-id-components/dpa-shared-components/config/eslint.config.js";
import { globalIgnores } from "eslint/config";

export default [
  {
    files: ["**/*.ts", "**/*.mts", "**/*.vue"],
  },

  globalIgnores(["**/dist/", "**/coverage/"]),

  ...sharedConfig,

  {
    settings: {
      "better-tailwindcss": {
        // The CSS entry point has to be manually configured in each host project.
        entryPoint: "src/assets/main.css",
      },
    },
  },

  {
    files: ["**/*.vue"],
    rules: {
      "vue/no-undef-components": [
        "error",
        {
          // Add globally-registered components here:
          ignorePatterns: ["i18n-t", "RouterLink", "RouterView"],
        },
      ],
    },
  },
];

Set up code formatting

A shared Prettier configuration is provided at @dpa-id-components/dpa-shared-components/config/prettier.config.js. Use it as a base configuration for code formatting via Prettier.

Example Prettier configuration:

import sharedConfig from "@dpa-id-components/dpa-shared-components/config/prettier.config.js";

/**
 * @see https://prettier.io/docs/configuration
 * @type {import("prettier").Config}
 */
export default {
  ...sharedConfig,
};

You might also want to add a Prettier ignore file (e.g. for ignoring Markdown files) and set up Prettier in your code editor to automatically format on save.

Usage

To use a component, import its source file directly:

import UiButton from "@dpa-id-components/dpa-shared-components/components/UiButton/UiButton.vue";