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

vuewrapper

v0.4.7

Published

An alternative way of wrapping vue 3 component

Readme

vueWrapper

What is it?

This project implement Vue3 component with pure Javascript instead of Single-File Component(SFC) and could co-work with SFC together. Generally a vue component includes tempalte/v-model/props/event/slot/method, this project will try to convert them to script with the same functionalities. So developer could config a component with Javascript rather than to write a full SFC.

This project incldues two projects:

  • [Core project] (https://github.com/jamie-mttk/vueWrapper) which implements the full functionalities
  • [Demo project] (https://github.com/jamie-mttk/vueWrapperDemo) which is a demo to show how to use vuewrapper

We recommend to preview the project first and then read the Developer Manual

Project preview

A live preview of the demo project is available here

Demo project Setup

Fork the demo project and then install with the below commands and then enjoy.

npm install
npm run dev

Quick start

This project render vue compent from a JSON-like object. Below is sample config to render a element plus input controller.

export const valueInput = ref("InitValue");

//A simple input configuration
export const configInput ={
  sys: {
    //
    component: "ElInput",
    modelValue: valueInput,
  },
  props: {
    placeholder: "Please input value",
    clearable: true,
  },
  slots: {},
  events: {},
}

Since version 0.3.0, flat format config is supported,so the config could look like below

export const valueInput = ref("InitValue");

//A simple input configuration
export const configInput ={
  //sys
    "~component": "ElInput",
    "~modelValue": valueInput,
  //props
    placeholder: "Please input value",
    clearable: true  
}

Then use CompWrap to render

<CompWrap :config="configInput"></CompWrap>

Benifit

SFC includes template/script and style, but these three parts are quite different technologies during coding stage. The idea of this project is to use pure script(javascript/typescript) to warpping a component. Script is easy to combine/transform/resue so more flexiblity could be gain. For example to add a table component into page, using SFC means to add a el-table and config el-column one by one, the code is long and mixed with template/script; by using this project, a simple pice of JS is enough.

And in the real project we may not care about all the features of the component, so configuration could be simplified and then use a piece of translation code to generate the config of the standard format. Refer to sample table/form/app1 for more detail.

And normally 80% pages are quite similiar or they could be summarized into several templates in a real project. So we could define the discrepancy into a config file, and then render the page according to the configuration. Refer to sample app1 for more detail.

And this project is also the fundamental technology of MTTK low code.

Restriction

Type script is not well supported. Some Vue 3 features can not not supported,refer to developer manual for more detail.