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

@neutro/view

v0.1.0

Published

High-performance, framework-portable, fine-grained reactive view engine.

Downloads

197

Readme

@neutro/view

High-performance, framework-portable, fine-grained reactive view engine.

Status: v0.1.0 — authorable, compilable, benchmarked. APIs may evolve as the surface area grows toward v0.5.0.

What it is

  • Fine-grained signals with three-state (Clean/Check/Dirty) graph-coloring: components run once, no virtual DOM, no re-render.
  • A small primitive setsignal, derived, effect, sync, plus pubsub and errorBoundary.
  • sync — one construct for "when X changes, write signal Y." Feedback loops in analyzable code become a build-time error, not a runtime cap.
  • A compiler that specializes the runtime per node (equality, dependency sets, sync-target classification) — only ever skipping provable work.
  • DOM-free core. The renderer consumes it; Web Components are a compile target, not the authoring model.
  • .nv single-file components — authored in a concise declarative format, compiled by the esbuild plugin to efficient DOM-bound modules.

.nv components

.nv is the headline authoring format. A Counter component:

const Counter = $component(() => {
  $script(() => {
    const count = signal(0)
  })
  $render(() => html`
    <span>${count}</span>
    <button @click="${() => count = count + 1}">+</button>
  `)
})

Mount it in your entry point:

// @ts-nocheck
import { Counter } from './Counter.nv'
Counter.mount(document.getElementById('app'), document)

// @ts-nocheck is required because .nv files have no TypeScript declarations yet.

Tagged template (no-build alternative):

import { createHtmlTag, mount } from '@neutro/view/renderer'
import { signal } from '@neutro/view/core'

const html = createHtmlTag(document)
const count = signal(0)

const view = html`
  <div>
    <p>${() => count()}</p>
    <button @click="${() => count.set(count() + 1)}">+</button>
  </div>
`

mount(view, document.getElementById('app')!, document)
// No build step. No .nv file. No esbuild plugin.

No build step required — serve through any TypeScript-capable dev server (e.g. Vite). The explicit thunk (() => count()) is required because there is no compiler erasure on this path. See Getting Started for a complete walkthrough of both paths.

Performance

js-framework-benchmark, Chrome 149 / M2 Max: wins select (0.34×), update-10th (0.68×), and memory (2.4×) vs vanilla; at-peer on bulk create (~1.7×); swap rows deficit (3.95×) tracked for v0.5.0. See CP-2c in the decision log.

Packages / entry points

@neutro/view ships as one package with subpath exports:

| Import | What it is | | --- | --- | | @neutro/view/core | The reactive runtime (DOM-free). signal, derived, effect, sync, pubsub, errorBoundary, ownership + scheduling. | | @neutro/view/compiler | Compile-time analysis: sync-target classification, write-graph cycle checker, and §10 specialization hooks. | | @neutro/view/renderer | Template IR → live DOM. mount, html-tag helpers, and the full IR type surface. | | @neutro/view/renderer/runtime | Slim runtime entry for emitted app bundles — only mount, no parser or TS compiler. | | @neutro/view/renderer/plugin | esbuild plugin (nvPlugin) for compiling .nv files. |

/renderer/runtime exists so that emitted bundles import only what they need — the TypeScript compiler stays out of user apps entirely.

Core JS API

import { signal, derived, effect } from '@neutro/view/core'

const count = signal(0)
const label = derived(() => `Count: ${count()}`)
effect(() => console.log(label()))

count.set(1) // → logs "Count: 1"

Design authority

The design is specified, not improvised:

Development

pnpm install        # also installs git hooks via lefthook
pnpm typecheck      # tsc --strict, DOM lib in scope  (gate 1)
pnpm test           # vitest                           (gate 2)
pnpm lint           # biome
pnpm build          # emit dist/

The two gates are separate on purpose: the test runner strips types, so a green suite does not imply a clean compile. Both run on pre-push and in CI.

Provenance

Reactivity semantics are derived from the published graph-coloring approach (Reactively) and the data-structure discipline proven in alien-signals — an independent specification and implementation, not a port.

License

MIT