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

@sursaut/core

v0.1.0

Published

Fine-grained reactive UI framework with direct DOM manipulation

Readme

Sursaut-TS

A lightweight, reactive web framework built with TypeScript and JSX

Sursaut-TS is a fine-grained reactive UI framework built on direct DOM updates and mutts. Components render once, then reactive attributes, directives, and effects keep the DOM in sync without component re-renders.

🌟 Features

  • 🚀 Lightweight: No virtual DOM, minimal overhead
  • ⚡ Reactive: Fine-grained reactivity powered by mutts
  • 🔄 Two-Way Binding: Automatic detection and setup of two-way data binding
  • 🎨 JSX Support: Write components using familiar JSX syntax
  • 💪 Type-Safe: Full TypeScript support with type safety
  • 🧩 Component-Based: Create reusable, composable components
  • 🧭 Render-once model: Reactive reads belong in JSX, directives, and effects rather than component rebuilds

📖 Documentation

Live documentation is available at https://sursaut-docs-front.pages.dev/.

For the @sursaut/core entry point specifically, start at:

  • https://sursaut-docs-front.pages.dev/core
  • https://sursaut-docs-front.pages.dev/getting-started

Complete documentation is available in the docs folder:

@sursaut/core is built on top of mutts for reactivity. For documentation-oriented reading and MCP-assisted exploration of the package surface, see soup-chop.

🚀 Quick Start

Installation

npm install @sursaut/core mutts

TypeScript Configuration

Sursaut uses the classic JSX transform. In your tsconfig.json:

{
  "compilerOptions": {
    "jsx": "react",
    "jsxFactory": "h",
    "jsxFragmentFactory": "Fragment"
  }
}

Do not use jsx: "react-jsx" or jsxImportSource with @sursaut/core.

Vite / Babel Configuration

Sursaut ships a plugin at @sursaut/core/plugin. Use it to apply the JSX/Babel transform that injects h, Fragment, c, and r where needed.

See the consuming app/package configs in this workspace for concrete setup examples. The key rule is: classic JSX in TypeScript, Sursaut plugin in the build step.

Development

npm run dev

Build

npm run build

💡 Example

Here's a simple counter component:

import { reactive } from 'mutts'
import { latch } from '@sursaut/core'

function Counter() {
  const state = reactive({ count: 0 })

  return (
    <>
      <h1>Counter: {state.count}</h1>
      <button onClick={() => state.count++}>Increment</button>
      <button onClick={() => state.count--}>Decrement</button>
    </>
  )
}

latch('#app', <Counter />)

🎯 Key Concepts

Components

Components are TypeScript functions that return JSX. They are expected to render once; subsequent updates happen through fine-grained reactive bindings.

Reactive State

Use reactive() to create reactive state:

const state = reactive({
  count: 0,
  message: 'Hello World'
})

Two-Way Binding

Bindable expressions such as state.name or a mutable let variable become two-way automatically:

<input value={state.name} />

Event Handlers

Use camelCase event handlers:

<button onClick={() => state.count++}>Click me</button>

Directives

Sursaut extends JSX with framework directives:

<div if={state.visible} />
<input this={setInput} />
<div use={(node) => console.log(node)} />
<div use:resize={state.size} />
  • if, when, else, pick control rendering
  • this tracks mounted nodes and receives undefined on unlatch
  • use and use:name support cleanup functions

📚 Learn More

🛠️ Tech Stack

  • TypeScript - Type safety and modern JavaScript
  • JSX - Familiar component syntax
  • mutts - Reactive state management
  • Vite - Fast development and build tool
  • @sursaut/core/plugin - Build-time JSX transformation and reactive enhancements

📝 License

MIT