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

@shoaibaftabtech/js

v2.0.1

Published

An ultra-lightweight, 0-dependency, globally compatible JavaScript framework for modern enterprise web applications. Features Deep Proxy Reactivity, Microtask Batching, SPA Routing, DOM Sanitization, and zero external CDNs.

Readme

Shoaib Aftab JS is a next-generation, vanilla JavaScript framework designed for enterprise scale. Built completely from scratch with the philosophy of Absolute Zero Dependency, it guarantees maximum performance (React-level microtask batching), unparalleled security (Prototype Pollution and XSS protection), and absolute privacy compliance.

✨ Why Shoaib Aftab JS?

Unlike Vue, React, or Angular, this framework requires no virtual DOM, no complex build steps, and no Webpack configurations. It attaches reactivity directly to the real DOM using powerful native Web APIs.

  • 0% Dependency: No Node_modules required for the end user. Works flawlessly on shared hosting.
  • Deep Proxy Reactivity: Automatically tracks nested object changes and updates the DOM instantly.
  • Microtask Batching: Multiple state updates are batched together via queueMicrotask to ensure 60fps performance and prevent layout thrashing.
  • Zero-Dependency SPA Router: Build fully functional Single Page Applications using the native History API without refreshing the page.
  • Enterprise Security: Hardened against Prototype Pollution (__proto__ injection) and Advanced XSS attacks (custom rigorous DOM Sanitizer blocking SVG/Math/data-uris).

📦 Installation

We offer three ways to integrate the framework.

Option 1: Direct Download (Maximum Security / Air-gapped)

Download the dist/shoaib-aftab.min.js file and include it directly at the bottom of your HTML <body>.

<script src="./path/to/shoaib-aftab.min.js"></script>

Option 2: NPM / Yarn

npm install @shoaibaftabtech/js
import { Store, Router, SA } from '@shoaibaftabtech/js';

Option 3: CDN (Development Only)

<script src="https://cdn.jsdelivr.net/npm/@shoaibaftabtech/js/dist/shoaib-aftab.min.js"></script>

🚀 Core Features

1. Two-Way Data Binding (sa-model)

Automatically sync input fields with your state.

<input type="text" sa-model="user.name" placeholder="Enter name">
<p>Hello, <span sa-text="user.name"></span>!</p>

2. Deep Reactivity Initialization

Initialize your state once, and the framework takes care of the rest.

const state = SA.Store.createState({
    user: { name: 'Shoaib' },
    isActive: true
});
SA.Store.initReactivity(document.body, state);

3. SPA Routing

Create ultra-fast Single Page Applications natively.

<nav>
  <a sa-route="/home">Home</a>
  <a sa-route="/dashboard">Dashboard</a>
</nav>
<div sa-view></div>

<script>
  SA.Router.initRouter({
    '/home': '<h1>Welcome Home</h1>',
    '/dashboard': '<h1>Your Dashboard</h1>'
  });
</script>

4. Advanced Security (sa-html)

When rendering dynamic HTML, our framework strictly sanitizes it against XSS.

<!-- Malicious scripts inside user.bio are automatically stripped! -->
<div sa-html="user.bio"></div>

🔒 Security & Privacy (Enterprise Grade)

We built this framework for banking, healthcare, and high-security sectors:

  1. Prototype Pollution Protection: Our internal resolvePath and setPath functions strictly block __proto__, constructor, and prototype modifications, a rarity in lightweight frameworks.
  2. DOM Sanitizer: Automatically strips <script>, <iframe>, <svg>, <math>, and dangerous URI payloads (javascript:, data:) from attributes.
  3. No eval(): We utilize secure string parsing for class and attribute bindings instead of dangerous new Function() calls.

🛠 Project Architecture

The source files are highly modular:

  • modules/reactivity.js (Proxy, Batching, DOM Binding)
  • modules/router.js (History API SPA Router)
  • modules/security.js (DOMPurify alternative)
  • modules/validation.js (Form Rules)
  • modules/ajax.js (Fetch Wrappers)

🤝 Contributing

We welcome contributions! Please see our CONTRIBUTING.md and CODE_OF_CONDUCT.md for guidelines. Note: All PRs must adhere to the 0-dependency rule.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


🏢 About Shoaib Aftab Tech

💻 Specializing in Custom Development: We build future-proof software, intuitive mobile apps, professional websites, scalable e-commerce platforms, and API development (WhatsApp Business API).

🔧 Your End-to-End Partner: From initial concept to successful scaling, we provide complete digital solutions for your business.

🤝 Ready to Build & Grow? Let's connect to discuss your project and strategic goals.

🌐 Connect With Us