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

@octanejs/tanstack-store

v0.0.32

Published

TanStack Store bindings for Octane — reuses the framework-agnostic @tanstack/store core with an Octane hook adapter.

Readme

@octanejs/tanstack-store

TanStack Store bindings for the Octane UI framework.

This package ports @tanstack/[email protected] by reusing the framework-agnostic @tanstack/store core unchanged and transcribing its small React hook layer onto Octane. The supported runtime and type surfaces match the React package, so an application can migrate by changing its import:

// before
import { createStore, useSelector } from '@tanstack/react-store'

// after
import { createStore, useSelector } from '@octanejs/tanstack-store'
import { createStore, useSelector } from '@octanejs/tanstack-store'

const counter = createStore({ count: 0 })

export function Counter() @{
  const count = useSelector(counter, (state) => state.count)

  <button
    onClick={() =>
      counter.setState((state) => ({ count: state.count + 1 }))
    }
  >
    {'Count: ' + count}
  </button>
}

API

The package re-exports all of @tanstack/[email protected], including atoms, stores, actions, derived sources, shallow, and async atoms. It also provides the stable adapter surface from @tanstack/[email protected]:

  • useSelector reads any atom or store and supports a custom comparator.
  • useAtom returns a writable atom's current value and setter.
  • useCreateAtom and useCreateStore create a stable source for a component lifetime.
  • createStoreContext transports typed bundles of atoms and stores through an Octane subtree.
  • useStore remains available as the upstream-deprecated compatibility alias for useSelector.

The upstream experimental _useStore export is intentionally omitted. Use useSelector with store.actions or store.setState instead.

The adapter forwards Octane's compiler-assigned hook slots through its composed hooks. Distinct calls in one component therefore keep independent subscriptions and component-created sources, including when optional selector and comparator arguments are omitted.

Verification

Behavioral tests cover writable and derived sources, comparator semantics, source replacement, multiple hook call sites, context nesting, subscription cleanup, actions, and server rendering. Differential tests compile the same .tsrx fixture for Octane and React and compare rendered output after each interaction. Compile-time tests cover overload inference and readonly versus writable source constraints.

Current scope and verification status are tracked in the generated bindings status table, sourced from this package's status.json.