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

sipperjs

v0.1.0

Published

A reactive UI framework with 3 APIs: state(), control(), snapshot(). SSR-first, no VDOM, no hooks.

Readme

Sipper

A reactive UI framework with 3 APIs. No VDOM. No hooks. No lifecycle methods. SSR-first.

npm install sipperjs

The Entire API

import { state, control, snapshot } from 'sipperjs'

| API | What it does | |-----|-------------| | state(value) | Create state → [getter, setter] | | control(fn) | Lifecycle — setup, reactive subscriptions, cleanup | | snapshot(value) | Escape hatch — freeze a value |

Derived values are plain functions. Components run once. No re-renders.

Quick Start

import { h, state, control, mount } from 'sipperjs'

function Counter() {
  const [getCount, setCount] = state(0)
  const doubled = getCount() * 2  // auto-reactive (build transform)

  return (
    <div>
      <p>Count: {getCount()}</p>
      <p>Doubled: {doubled}</p>
      <button onClick={() => setCount(c => c + 1)}>+</button>
    </div>
  )
}

mount(Counter, document.getElementById('app'))

How It Works

State

const [getCount, setCount] = state(0)

getCount()           // always returns the latest value
setCount(5)          // set directly
setCount(c => c + 1) // updater function

Objects with Immer-Style Updates

const [getUser, setUser] = state({ name: 'V', settings: { theme: 'dark' } })

setUser(draft => {
  draft.settings.theme = 'light'  // looks like mutation, contained in setter
})

Derived Values — Just Functions

const doubled = getCount() * 2  // build transform makes this reactive

The build transform wraps it: const doubled = () => getCount() * 2. Cascades like a spreadsheet.

Control — The Single Lifecycle

// Setup (runs once, no reactive deps)
control(() => {
  console.log('component alive')
  return () => console.log('component gone')  // cleanup on unmount
})

// Reactive subscription
control(() => {
  document.title = `Count: ${getCount()}`  // re-runs when count changes
})

// External resources
control(() => {
  const id = setInterval(() => tick(), 1000)
  return () => clearInterval(id)  // auto-cleaned on unmount
})

Snapshot — Escape Hatch

const initial = snapshot(getCount())  // frozen at current value, never updates

Provide / Inject

Tree-scoped state without prop drilling:

// Parent
provide('theme', getTheme)

// Any descendant — no matter how deep
const getTheme = inject('theme')

SSR

// Server
import { renderToString } from 'sipperjs/server'
const { html, state } = renderToString(App)

// Client
import { hydrate } from 'sipperjs'
hydrate(App, document.getElementById('app'))

Vite Setup

// vite.config.js
import reactiveJSX from 'sipperjs/plugin'

export default {
  plugins: [reactiveJSX()],
  esbuild: { jsx: 'preserve' }
}

DevTools

import { initDevTools } from 'sipperjs/devtools'
initDevTools()  // adds live state inspector panel

Design Philosophy

  1. 3 APIs, not 30state() replaces useState/useRef/useMemo/createSignal/ref/reactive/computed
  2. JavaScript is the abstraction — functions are derivations, closures are refs
  3. Components run once — no re-renders, no VDOM diffing
  4. SSR-first — server renders HTML, client hydrates with restored state
  5. The framework prevents mistakes — automatic cleanup, ownership scopes, immutable getters
  6. Event delegation — one listener per event type, not per element

License

MIT