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 🙏

© 2025 – Pkg Stats / Ryan Hefner

mvc-framework

v2.5.1

Published

▴ PAC Framework With MVC Framework Subpatterns ▵ Manage Simplex/Complex Browser Applications & Websites With Familiar Plain JS Notation ▵ Mediate Model, View, Router, And Controller Events With Event-Driven Core Architecture ▵ Capture Detaile

Readme

⁜ MVC Framework

 ▴ PAC Framework With MVC Framework Subpatterns
    ▵ Manage Simplex/Complex Browser Applications & Websites With Familiar Plain JS Notation
    ▵ Mediate Model, View, Router, And Controller Events With Event-Driven Core Architecture
    ▵ Capture Detailed Object/Array Mutator Method Events Including Subproperty Events

 ⁘ Uses Core-Plex - Event Listener Management System
 ❂ Uses Objecture - Object Watcher, Property Manager

※ Independent Classes

| SYM | NAME | DESCRIPT | API | GUIDE | | -----: | :--- | :------- | :--: | :--: | | M | Model | Manage schematized content. | | | | X | Model Schema | Manage data schema. | | | | D | Model Content | Manage data content. | | | | V | View | Manage templated markup elements. | | | | R | Router | Window location router or fetch router. | | | | RL | Router (Location) | Manage window location. | | | | RF | Router (Fetch) | Manage AJAX connection. | | | | RS | Router (Socket) | Manage Socket connection. | | | | C | Control | Manage Model, View, Control, Location/fetch Routers. | | |

※ Interdependent Class Structures

| FORMULA | NAME | ACRONYM | DESCRIPT | | ------: | :--- | :------ | :------- | |CMVRC* | Control (Model, View, Router, Controls) | CMVRC | Control class instances contain model, view, router, and subcontrol class instances. | |MVRM* | Model (View, Router, Models) | MVRM | Model class instances contain view, router, and submodel class instances. | |VMRV* | View (Model, Router, Views) | VMRV | View class instances contain model, router, and subview class instances. | |RMVR* | Router (Model, View, Routers) | RMVR | Router class instances contain model, view, and subrouter class instances. |

※ Illustrations

PAC (CMVRC)

const control = new Control({
  models: {
    ui: new Model({
      selected: false,
      anchor: { text: "Product Detail" },
    }),
    content: new Model({
      id: "0246813579",
      name: "Some Product Name",
      price: "$235.78",
      descript: "Some product description.",
      graphic: "https://pbs.twimg.com/media/Grhfq0JaIAAPIqI?format=jpg&name=medium",
      anchor: "https://x.com/StellarManatee/status/1925394081796223237",
    }),
  },
  views: {
    default: new View({
      templates: { default: ($models) => {
        const { ui, content } + $models
        return `
          <product data-selected="${ui.selected}">
            <text>
              <name>${content.name}</name>
              <descript>${content.descript}</descript>
              <price>${content.price}</price>
              <a href="${content.anchor}" target="_blank">${ui.anchor.text}</a>
            </text>
            <graphic>
              <img src="${content.graphic}" />
            </graphic>
          </product>
        `
      } },
      querySelectors: { querySelector: {
        'product': ':scope'
      } },
    })
  },
}, {
  events: {
    'models.ui setProperty:selected': function($event) {
      this.views.qs.product.setAttribute($event)
    }
  },
})