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

@vortexjs/core

v3.0.7

Published

A framework that cares about the details.

Downloads

10

Readme

Vortex

A framework that cares about the details.

Overview

Here's why Vortex is cool.

  • 🕸️ Fine-grained reactivity: We create a graph of data where updates pulse through, minimizing compute.
  • Fast: Vortex is designed for speed, with minimal overhead and efficient updates.
  • 🧩 Composable: Build complex UIs from simple reactive primitives.
  • 🌐 Renderer agnostic: Use Vortex with any renderer. At the moment, we only render to the DOM, but that may change.
  • 🛠️ Developer-friendly: Intuitive APIs and TypeScript support make it easy to get started.

Packages

| Package | Description | |------------------|-----------------------------------------------------------| | @vortexjs/core | Core reactive primitives for Vortex, and rendering engine | | @vortexjs/dom | DOM renderer for Vortex applications |

Quick Start

Installation

bun add @vortexjs/core @vortexjs/dom

Basic Usage

import { getImmediateValue, render, useState } from "@vortexjs/core";
import { html } from "@vortexjs/dom";

function App() {
    const counter = useState(0);

    return (
        <>
            <h1>Counter: {counter}</h1>
            <button
                on:click={() => counter.set(getImmediateValue(counter) + 1)}
                type="button"
            >
                Increment
            </button>
        </>
    );
}

render(html(), document.body, <App />);

Core Concepts

Signals and Stores

Signals are reactive primitives that automatically update dependent computations:

import { useState, useDerived } from "@vortexjs/core";

function Counter() {
    const count = useState(0);
    const doubled = useDerived((get) => get(count) * 2);

    return (
        <div>
            <p>Count: {count}</p>
            <p>Doubled: {doubled}</p>
        </div>
    );
}

Effects

Effects run side effects when their dependencies change:

import { useEffect, useState } from "@vortexjs/core";

function Timer() {
    const time = useState(new Date());

    useEffect((get, { lifetime }) => {
        const interval = setInterval(() => {
            time.set(new Date());
        }, 1000);

        lifetime.onClosed(() => clearInterval(interval));
    });

    return <p>Current time: {time}</p>;
}

Conditional Rendering

import { when, useDerived } from "@vortexjs/core";

function ConditionalExample() {
    const showMessage = useState(false);

    return (
        <>
            <button on:click={() => showMessage.set(!showMessage.get())}>
                Toggle
            </button>
            {when(showMessage, () => <p>Hello, World!</p>)}
        </>
    );
}

Lists

import { list, useState } from "@vortexjs/core";

function TodoList() {
    const todos = useState(['Learn Vortex', 'Build app']);

    return (
        <ul>
            {list(todos).show((todo, index) => (
                <li key={index}>{todo}</li>
            ))}
        </ul>
    );
}

Two-way Data Binding

function InputExample() {
    const name = useState("");

    return (
        <div>
            <input type="text" bind:value={name} />
            <p>Hello, {name}!</p>
        </div>
    );
}

Element references with use

function RefExample() {
	return (
		<div use={el => el.innerText = "Just kidding, the text gets overwritten by me!"}>
			This says something cool!
		</div>
	);
}

Setup

  1. Install dependencies

    Use Bun to install the core and DOM renderer packages:

    bun add @vortexjs/core @vortexjs/dom
  2. Setup your tsconfig.json

    To use Vortex with TypeScript, configure your tsconfig.json:

    {
        "compilerOptions": {
            "jsx": "react-jsx",
            "jsxImportSource": "@vortexjs/core"
        }
    }
  3. Create your entry point

    Create an entry point file (e.g., index.tsx) and import the necessary modules:

    import { render, html } from "@vortexjs/dom";
    import { App } from "./App";
    
    render(html(), document.getElementById("root"), <App />);
  4. Profit.

Contributing

  1. Fork the repository
  2. Make your changes
  3. Run bun fmt to format code
  4. Create a changeset with bun change
  5. Submit a pull request

License

This project is open source to everybody except fascists. See the LICENSE file for details.