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

@drhannah/ssjsframework

v0.1.0

Published

(Super Simple Javascript Framework)

Readme

SSJSF

(Super Simple Javascript Framework)

Installation

To use this framework in your project, install it from NPM:

npm install ssjsframework

Overview

| File | Purpose | |------|--------------------------------------------------------------------------- |vite.config.js |Configures the build process.Resolves paths for ES Modules. | |package.json |Define project as ES Module.Includes Vite as dev dependency. | |index.html |Main entrypoint for the application. | |src/main.js |The JS entrypoint for the application. | |src/router.js |Lightweight client-side router class. | |src/component.js|Defines base class with setState, mount, and render methods| |src/store.js |Centralized state management (Pub/Sub). | |src/template.js|Tagged template literal helper for HTML rendering. |

Build Tools

  • Powerered by Vite.
  • Supports ES Modules natively
  • Supports Multi-Page Application (MPA) structures via vite.config.js, for minimal overhead and maximum performance.

Routing

  • Custom lightweight Router class that uses the browser's History API for navigation.
  • Features async data loaders with in-memory caching to fetch and store data before rendering, preventing "waterfall" loading effects and ensuring instant subsequent page loads.

Component System

  • Base Component Class: Provides state management (setState) and lifecycle hooks (mount, afterRender).
  • Reactivity: Automatically updates the DOM when state changes, re-attaching event listeners defined in afterRender.

State Management

  • Centralized Store: Implements a Publisher/Subscriber pattern to manage global application state.
  • Subscription Model: Components can subscribe to state changes, allowing for automatic updates across the application whenever the global store is modified.

Dynamic Route Parameters

  • Pattern Matching: Supports routes with parameters (e.g., /user/:id).
  • Parameter Extraction: Automatically extracts values from the URL and passes them as props to the component or loader.

Virtual DOM

Scoped CSS

  • CSS Modules: Leverages Vite's built-in support for *.module.css files.
  • Isolation: Class names are hashed at build time (e.g., _title_1a2b3), ensuring styles defined for one component do not leak into others.

Server-Side Rendering

Templating

  • Tagged Templates: Includes an html tag function to handle array joining and conditional rendering (null/false) automatically.
  • Native Performance: Uses standard JavaScript template literals without the overhead of a Virtual DOM or compilation step.