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

@netmex/vue-mvc

v0.1.2

Published

MVC architecture toolkit for Vue class/decorator projects built on vue-facing-decorator.

Readme

Netmex - Vue MVC

npm version npm downloads license

Lightweight MVC tooling for Vue class/decorator projects using vue-facing-decorator.

Key Features

  • Auto-wraps decorator class components with toNative(...)
  • Resolves template: './Component.html' into raw template imports
  • Resolves style: './Component.scss' into style imports
  • Enables a clean MVC-style separation of logic, template, and styles

Core Concepts

This package targets Vue 3 projects that use class-based components with decorators (via vue-facing-decorator).

It provides Vite plugins that transform these components into native Vue-compatible components at build time.

The goal is to enable a clear MVC-style structure:

  • Logic lives in the class
  • Template is defined separately (HTML or inline)
  • Styles are handled independently (CSS/SCSS)

This separation improves maintainability and scalability, while still leveraging Vue’s reactivity and component system.

Installation

Install via npm:

npm i -D @netmex/vue-mvc

Requirements

This package is designed for Vue 3 projects using Vite and class-based decorators.

Ensure your project includes:

  • vue (Vue 3)
  • vite
  • @vitejs/plugin-vue
  • vue-facing-decorator

Notes

  • Only Vue 3 is supported (Vue 2 is not compatible)
  • vue-facing-decorator is required for class-based components
  • This plugin extends Vite's build process, so Vite is required

TypeScript Configuration

Your project must enable experimental decorators.

{
  "compilerOptions": {
    "experimentalDecorators": true
  }
}

Without experimentalDecorators: true, decorator-based components will not compile.

Vite setup

import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import { mvcPlugin } from '@netmex/vue-mvc/vite'

export default defineConfig({
    plugins: [
        vue(),
        mvcPlugin(),
    ],
})

Usage

Use the @Component decorator from vue-facing-decorator as usual. The plugin will automatically transform your components for Vue compatibility.

Example (MVC-style component)

import { Component } from 'vue-facing-decorator'

@Component({
  template: './MyComponent.html',
  style: './MyComponent.scss',
})
export default class MyComponent {
  // component logic here
}

Inline Templates & Styles

Inline templates and styles are also supported:

import { Component } from 'vue-facing-decorator'

@Component({
    template: `<div>Hello World</div>`,
    style: `div { color: red; }`,
})
export default class MyComponent {
    // component logic here
}

Related

License

MIT License