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

@cdlab996/lowcode-materials-vant2

v2.0.0

Published

Vant 2 materials for the LowCode Engine (Vue 2.7).

Readme

@cdlab996/lowcode-materials-vant2

npm version npm downloads

LowCode Engine materials of Vant 2 (vant 2.13.9) for Vue 2.7, rendered by @cdlab996/lowcode-vue2.

Components

81 components: every component documented by vant 2.13.9 (the last Vant 2 release) has a meta, with the props, events and slots of its docs, a snippet and a docUrl to its page.

  • The metas are generated from the docs of that version (scripts/materials, see CONTRIBUTING.md in the repository); vant is pinned to 2.13.9.
  • tests/meta.test.ts checks them against the components of that version: declared props, handler names, doc links, code generation exports and screenshots.
  • screenshots/ holds a thumbnail of every component, rendered from its snippet in the designer canvas; components with nothing to show (modals, sub-components) use screenshots/fallback.svg.

Usage

The package ships browser builds; the designer loads them through assets.json. The canvas must run Vue 2.7 with the @cdlab996/lowcode-vue2 simulator.

From a CDN (unpkg serves the published dist):

import { injectAssets } from '@alilc/lowcode-plugin-inject'
import type { IPublicModelPluginContext } from '@alilc/lowcode-types'

const editorInit = (ctx: IPublicModelPluginContext) => ({
  async init() {
    const assets = await injectAssets(
      'https://unpkg.com/@cdlab996/lowcode-materials-vant2/dist/assets.json',
    )
    await ctx.material.setAssets(assets)
  },
})
editorInit.pluginName = 'editorInit'

From the installed package (pnpm add @cdlab996/lowcode-materials-vant2), serve its dist yourself and pass the imported JSON with your own URLs:

import assets from '@cdlab996/lowcode-materials-vant2/dist/assets.json'

In the designer of this repository, the material is built in; any other material is added by pasting its assets.json URL into the 物料 panel.

Files

  • dist/index.js, dist/index.css: the components, as window.Cdlab996LowcodeMaterialsVant2
  • dist/meta.js: the metas, as window.Cdlab996LowcodeMaterialsVant2Meta
  • dist/assets.json: the engine assets pointing at the two, with the codegen manifest
  • dist/screenshots/: snippet thumbnails

The scripts, the styles and assets.json also come minified (.min). assets.json of a release:

{
  "version": "<version>",
  "packages": [
    {
      "package": "@cdlab996/lowcode-materials-vant2",
      "version": "<version>",
      "library": "Cdlab996LowcodeMaterialsVant2",
      "urls": [
        "https://unpkg.com/@cdlab996/lowcode-materials-vant2@<version>/dist/index.css",
        "https://unpkg.com/@cdlab996/lowcode-materials-vant2@<version>/dist/index.js"
      ],
      "codegen": {
        "exports": { "...": "component -> export of vant" },
        "styles": ["..."],
        "dependencies": { "vant": "2.13.9" }
      }
    }
  ],
  "components": [
    {
      "exportName": "Cdlab996LowcodeMaterialsVant2Meta",
      "url": "https://unpkg.com/@cdlab996/lowcode-materials-vant2@<version>/dist/meta.js",
      "package": { "npm": "@cdlab996/lowcode-materials-vant2" }
    }
  ],
  "sort": { "groupList": [], "categoryList": [] }
}

The codegen manifest is what the code generator (@cdlab996/lowcode-code-generator) uses to import the components from vant in generated projects.

Development

pnpm -C packages/materials/vant2 build   # dist/
pnpm dev --watch vant2   # from the repository root: rebuild on change, next to the designer

License

MIT