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

mini-framework-z01

v1.0.23

Published

Mini Framework is designed to provide a simple yet powerful approach to building web applications with minimal overhead.

Readme

Mini-framework-z01

Mini Framework Version License

A lightweight, powerful JavaScript framework for building modern web applications with minimal overhead.


Features

  • 🚀 Virtual DOM — Efficient virtual DOM creation and rendering
  • 🔄 Reactive State Management — Observable state with subscription-based updates
  • 🗺️ Client-side Routing — SPA navigation with route handlers and history management
  • 📡 Event System — Publish/subscribe event architecture
  • Performance Focused — Minimal DOM operations for fast rendering
  • 🧩 Component-Based — Build reusable UI components

Documentation

Installation

CDN

<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/mini-framework-z01.min.js"></script>

Quick Start

import { createElement, render } from 'https://cdn.jsdelivr.net/npm/[email protected]/dist/mini-framework-z01.min.js';

const app = createElement('div', { id: 'app' }, [
  createElement('h1', {}, ['Hello, World!']),
]);

render(app, document.body);

Core Concepts

Virtual DOM & Rendering

Create virtual DOM nodes and render them to the real DOM:

const element = createElement('div', { class: 'container' }, [
  createElement('p', {}, 'Hello World'),
]);

render(element, document.getElementById('app'));
Note: This framework does not provide an incremental update/diff method. Instead, you re-render the entire virtual DOM tree when your app state changes. The framework handles efficient DOM replacement behind the scenes.

State Management

The createStore provides a simple, observable state object:

const state = createStore({ count: 0 });

// Subscribe to changes
state.subscribe(newState => {
  console.log('State updated:', newState);
  render(app(),container);
});

// Update state triggers subscribers
state.setState({ count: state.getState().count + 1 });

This lets you keep your UI in sync by re-rendering your app on every state change.

Routing

Use the built-in router for SPA navigation:

const router = createRouter();

router.addRoute('/', () => renderHome());
router.addRoute('/about', () => renderAbout());
router.init();

// Navigate programmatically
router.navigate('/about');

Event System

Communicate between components using events:

events.on('user:login', user => {
  console.log('User logged in:', user);
});

events.emit('user:login', { id: 1, name: 'Jane' });

events.off('user:login', handler);

Example Usage

you can find a simple Todo app example in the examples folder.

Authors

Contributing

  • Fork the repository
  • Create a feature branch (git checkout -b feature/my-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to your branch (git push origin feature/my-feature)
  • Create a pull request

License

This project is licensed under the MIT License.