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

@kb-skills/adapter-vue3

v2.1.0

Published

Scan adapter for Vue 3 + Pinia frontends (with Element Plus UI detection).

Readme

@kb-skills/adapter-vue3

Scan adapter for Vue 3 + Pinia frontends, powering kb-skills.

Parses your Vue 3 project (Composition API .vue SFCs) and emits a ModuleInfo consumed by @kb-skills/core to produce the 5-layer Knowledge Base.

It detects:

| Kind | How it's detected | |---|---| | Views / Pages | src/views/**/*.vue + src/pages/**/*.vue — refs, computeds, watch, handlers, API calls | | Components | src/components/**/*.vuedefineProps (TS generic & object style), defineEmits | | Composables | src/composables/useXxx.{ts,js} — exported composable functions | | Pinia Stores | src/stores/**/*.{ts,js}defineStore id + exports | | API files | src/api/**/*.{ts,js} — exported fetch wrappers | | Types | src/types/**/*.ts — interfaces + type aliases | | Routes | src/router/index.{ts,js}{ path, component, name } route objects | | UI Library | element-plus / naive-ui / antd / antd-mobile / @mui/material / @chakra-ui/react |

Install

npm i -D @kb-skills/cli @kb-skills/adapter-vue3

Peer-depends on @kb-skills/core (installed transitively by @kb-skills/cli).

Usage

kb-skills init wires the adapter automatically when it detects vue ^3.x in your package.json. The generated kb-skills.config.ts looks like:

import { defineConfig } from "@kb-skills/cli/config";
import vue3Adapter from "@kb-skills/adapter-vue3";

export default defineConfig({
  kbRoot: "./kb",
  modules: [
    { name: "web", path: "./web", adapter: vue3Adapter() },
  ],
});

Options

import { createVue3Adapter } from "@kb-skills/adapter-vue3";

createVue3Adapter({
  moduleName: "web", // optional, default: "web"
});

UI library detection

The adapter scans every .vue, .ts, and .js file under src/ and collects all PascalCase named imports from the detected UI library package.

| package.json dep | raw.uiLibrary.name | |---|---| | element-plus | "element-plus" | | naive-ui | "naive-ui" | | antd | "antd" | | antd-mobile | "antd-mobile" | | @mui/material | "material-ui" | | @chakra-ui/react | "chakra-ui" |

Priority: first match in the table above wins.

Output shape

The adapter returns a ModuleInfo whose raw is a Vue3Raw:

interface Vue3Raw {
  framework:   "vue3";
  views:       Vue3PageInfo[];       // src/views/ + src/pages/
  components:  Vue3ComponentInfo[];  // src/components/
  composables: Vue3ComposableInfo[]; // src/composables/
  stores:      Vue3StoreInfo[];      // src/stores/ (Pinia)
  apiFiles:    TsFileInfo[];         // src/api/
  typesFiles:  TsFileInfo[];         // src/types/
  routes:      Vue3Route[];          // src/router/index.ts|js
  uiLibrary?:  UiLibraryInfo;        // detected UI library
}

Vue3PageInfo (view / page)

interface Vue3PageInfo extends TsFileInfo {
  name:       string;   // file stem, e.g. "UserList"
  refs:       string[]; // ref() / reactive() variable names
  computeds:  string[]; // computed() variable names
  watchCount: number;   // watch() / watchEffect() call count
  apiCalls:   string[]; // api.xxx call names
  handlers:   string[]; // const handleXxx = ... names
}

Vue3StoreInfo (Pinia store)

interface Vue3StoreInfo extends TsFileInfo {
  storeId?: string; // defineStore("id", ...) first argument
}

See @kb-skills/coretypes.ts for the full type list.

Requirements

  • Node.js >= 18.17
  • A Vue 3 project with vue ^3.x in package.json

License

MIT