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

serajs

v1.0.7

Published

A lightweight JavaScript framework for building reactive applications.

Readme

serajs (2)

📖 Introduction

📚 Projects — seraJs

🔗(Portfolio)[https://seraprogrammer.github.io/seraportfolio/]

🔗(Demo blog)[https://seraprogrammer.github.io/serajsBlogsDemo/]

SeraJS is a lightweight, signal-based reactive JavaScript library for building dynamic user interfaces.

At just 974Byte gzipped and only 135 lines of code, it's a remarkably lightweight reactive UI library — offering powerful reactivity with minimal overhead.

⚡️ SeraJS focuses on minimalism and performance without sacrificing developer experience.

Bundle Size Comparison (Minified + Gzipped)

| Library | Size (gzipped) | Build Step Required | Main Purpose | Key Features | | --------- | -------------- | ------------------- | --------------------- | ---------------------------------------------------------------------------- | | SeraJS | 974Byte | Optional 😎 | Reactive UI | 135 lines of code, extremely lightweight | | React | ~40kb | Yes | UI components | Virtual DOM, component-based architecture, JSX | | Vue | ~33kb | Optional | Progressive framework | Reactive data binding, component system, single-file components | | Solid.js | ~7kb | Yes | Reactive UI | No virtual DOM, compiled templates, fine-grained reactivity | | Alpine.js | ~7.1kb | No | Lightweight framework | Minimal DOM manipulation, declarative syntax, works with existing HTML | | Preact | ~4kb | Yes | React alternative | API compatible with React, smaller size, faster performance | | htmx | ~14kb | No | AJAX enhancements | HTML attributes for AJAX, minimal JavaScript, server-side rendering friendly |


⚙️ Core Concepts

🔄 Signal-Based Reactivity

SeraJS uses a signal-based reactive system, a modern approach to state management that enables efficient updates:

  • 🧠 Signals
    Self-contained reactive values that notify subscribers when they change.

  • 🌀 Effects
    Functions that automatically re-execute when their dependencies (signals)
    change.

  • 🧭 Memo
    A memoization helper similar to React's useMemo, used to cache the result
    of a computation based on reactive dependencies to avoid unnecessary recalculations.

  • 🔬 Fine-Grained Updates
    Only the specific DOM elements affected by state changes are updated,
    resulting in minimal re-rendering and high performance.

💡 SeraJS is designed to be intuitive, fast, and easy to integrate into any project — making it a perfect choice for modern frontend development.

Why SeraJS?

SeraJS brings together the best parts of libraries like React, Solid, and Lit — blending familiar patterns with a fresh, minimal approach.

At just 1.25KB gzipped and only 135 lines of code, this reactive UI library stays ultra-light while still delivering powerful reactivity.

Whether you want a build system or prefer a no-build workflow, SeraJS has you covered. It’s flexible enough to fit your dev style — use it how you want.

🌱 Sera.js Basic Example

A minimal example showing a Hello World message using Sera.js.

📄 App.jsx

import { h } from "serajs";

export default function App() {
  return <h1>Hello world</h1>;
}

No Build, No Dependencies

<!DOCTYPE html>
<html>
  <head>
    <title>Sera js 😎</title>
  </head>
  <body>
    <script type="module">
      import { h, setSignal, setEffect } from "//unpkg.com/serajs";

      function Hello() {
        const [count, setCount] = setSignal(0);

        setEffect(() => {
          console.log(count());
        });

        return h(
          "div",
          null,
          h("h1", null, "Hello World!"),
          h("p", { style: { color: "red" } }, "Do you Like Serajs?"),
          h("h1", null, () => `Count: ${count()}`),
          h(
            "button",
            { onclick: () => setCount(count() + 1) },
            "Increase Count"
          )
        );
      }

      const root = document.body;
      root.appendChild(Hello());
    </script>
  </body>
</html>