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

@erickxavier/no-js

v1.0.2

Published

The HTML-first reactive framework — build dynamic web apps with just HTML attributes, no JavaScript required

Readme

No.JS

The HTML-First Reactive Framework

Build dynamic, reactive web applications using nothing but HTML attributes. No build step. No virtual DOM. No transpiler. No JSX. Just HTML.

<div get="/users/1" as="user">
  <h1 bind="user.name">Loading...</h1>
  <p bind="user.email"></p>
</div>

Zero JavaScript written. Fully reactive. Real API data.


Features

  • Declarative HTTPget, post, put, patch, delete as HTML attributes
  • Reactive Bindingbind, bind-*, model for one/two-way data binding
  • Conditionals & Loopsif, else-if, show, hide, each, foreach, switch
  • State Managementstate (local), store (global), computed, watch
  • SPA Routingroute, route-view, guards, params, nested routes
  • Forms & Validation — Built-in validators + $form context
  • Animationsanimate, transition with stagger support
  • i18nt directive with pluralization
  • Filtersuppercase, currency, date, truncate, 30+ built-in pipes
  • Custom Directives — Extend with NoJS.directive()
  • ~11 KB gzipped — Zero dependencies

Quick Start

CDN

<script src="https://unpkg.com/@erickxavier/no-js@latest/dist/iife/no.js"></script>

NPM

npm install no-js
// ESM
import NoJS from 'no-js';
await NoJS.init();

// CommonJS
const NoJS = require('no-js');
await NoJS.init();

Example

<!DOCTYPE html>
<html>
<head>
  <script src="https://unpkg.com/@erickxavier/no-js@latest/dist/iife/no.js"></script>
</head>
<body base="https://jsonplaceholder.typicode.com">

  <!-- Fetch & display data -->
  <div get="/users" as="users" loading="#skeleton">
    <div each="user in users">
      <h2 bind="user.name"></h2>
      <p bind="user.email"></p>
    </div>
  </div>

  <!-- Local state + events -->
  <div state="{ count: 0 }">
    <button on:click="count++">Clicked <span bind="count"></span> times</button>
  </div>

  <!-- Form with validation -->
  <form post="/posts" validate success="#ok">
    <input name="title" required minlength="3" />
    <button type="submit" bind-disabled="!$form.valid">Submit</button>
  </form>

  <template id="skeleton"><p>Loading...</p></template>
  <template id="ok" var="res"><p>Created: <span bind="res.title"></span></p></template>

</body>
</html>

No app.mount(). No createApp(). No NgModule. It just works.


Documentation

Full documentation is available in the docs/ folder:

| Guide | Description | |-------|-------------| | Getting Started | Installation, core concepts, how it works | | Data Fetching | get, post, put, patch, delete, caching, polling | | Data Binding | bind, bind-html, bind-*, model | | Conditionals | if, else-if, show, hide, switch/case | | Loops | each, foreach, loop variables, nested loops | | Templates | Reusable fragments, slots, remote templates | | State Management | state, store, into, computed, watch | | Events | on:*, modifiers, lifecycle hooks | | Dynamic Styling | class-*, style-* | | Forms & Validation | validate, $form, custom validators | | Routing | SPA navigation, guards, nested routes | | Animations | animate, transition, stagger | | i18n | Translations, pluralization, formatting | | Filters | Built-in filters, chaining, custom filters | | Actions & Refs | call, trigger, ref, $refs | | Custom Directives | Extend No.JS | | Error Handling | Error boundaries, global handler | | Configuration | Global settings, interceptors, template caching, security | | Cheatsheet | Every directive at a glance | | Full SPA Example | Complete app with routing, auth, i18n |


How It Works

  1. Parse — On DOMContentLoaded, No.JS walks the DOM for known attributes
  2. Resolve — Each attribute maps to a directive, executed by priority
  3. React — Data lives in Proxy-backed reactive contexts; changes auto-update the DOM
  4. Scope — Contexts inherit from parents, like lexical scoping

Contributing

Contributions are welcome! Please open an issue or submit a pull request.

License

MIT