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

sinwan

v1.5.1

Published

A fast reactive UI library for JSX, fine-grained reactivity, SSR, and hydration.

Readme

Sinwan gives you signals, component lifecycle hooks, a direct DOM renderer, and a React-shaped JSX runtime without a virtual DOM.

Why Sinwan?

Sinwan combines the developer experience of React's JSX with the performance of fine-grained reactivity — no virtual DOM diffing, no reconciliation overhead. Signals drive surgical DOM updates directly.

  • No virtual DOM — components return plain element trees; the renderer patches the DOM at the exact node that changed.
  • Fine-grained reactivity — signal, computed, and effect track dependencies automatically. Only the effects that read a changed signal re-run.
  • React-compatible JSX — use the same JSX syntax, component props, and TypeScript types you already know. jsxImportSource: "sinwan" and you're done.
  • SSR + hydration — renderToString / streamPage on the server, hydrate on the client. Hydratable strings and streaming supported.
  • Single dependency — only csstype at runtime. No React, no Solid, no Vue.

Install

npm install sinwan
bun add sinwan

JSX Setup

Use the automatic JSX runtime:

{
  "compilerOptions": {
    "jsx": "react-jsx",
    "jsxImportSource": "sinwan",
  },
}

Quick Start

import { cc } from "sinwan/component";
import { signal } from "sinwan/reactivity";
import { mount } from "sinwan/renderer";

const Counter = cc(() => {
  const count = signal(0);

  return <button onClick={() => (count.value += 1)}>Count: {count}</button>;
});

mount(Counter, document.getElementById("app")!);

Features

  • Fine-grained reactivity: signal, computed, effect, batch, nextTick, untrack, on, observable
  • JSX runtime: sinwan/jsx-runtime and sinwan/jsx-dev-runtime
  • Components: cc, lifecycle hooks, provide/inject, <Show>, <For> ...
  • DOM renderer: reactive text, attributes, events, refs, namespaces, and cleanup
  • Server rendering: renderToString, streamPage, hydratable strings and streams
  • Hydration: reuse server-rendered DOM with hydrate

SSR and Hydration

// Server
import { renderToHydratableString } from "sinwan/react";

const html = await renderToHydratableString(App, { initial: 5 });
// Client
import { hydrate } from "sinwan/hydration";

hydrate(App, document.getElementById("app")!, { initial: 5 });

Documentation

Development

bun test
bun run typecheck
bun run build

Author

Mohammed Ben Cheikh

License

MIT - see LICENSE.