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-form

v0.0.40

Published

TanStack Form bindings for Octane — reuses @tanstack/form-core and ports the React adapter's hooks, components, and contexts.

Readme

@octanejs/tanstack-form

TanStack Form bindings for the Octane UI framework.

This package ports @tanstack/[email protected] onto Octane while reusing @tanstack/[email protected] unchanged. The runtime export surface matches the React adapter, so migration starts by changing the package import:

// before
import { useForm } from '@tanstack/react-form'

// after
import { useForm } from '@octanejs/tanstack-form'

The renderer-bearing adapter modules are authored as .tsrx and compiled by Octane. Matching .tsrx.d.ts companions are checked declaration emits of those implementations, preserving the complete generic surface for TypeScript consumers. Recursive contracts such as extendForm are named in the TSRX source rather than manually unrolled in declarations.

Renderer-specific public types use Octane names, including OctaneFormApi, OctaneFormExtendedApi, AppFieldExtendedOctaneFormApi, and AppFieldExtendedOctaneFieldGroupApi.

import { useForm } from '@octanejs/tanstack-form'

export function ProfileForm() @{
  const form = useForm({
    defaultValues: { name: '' },
    onSubmit: ({ value }) => console.log(value),
  })

  <form
    onSubmit={(event) => {
      event.preventDefault()
      void form.handleSubmit()
    }}
  >
    <form.Field
      name="name"
      validators={{
        onChange: ({ value }) =>
          value.length === 0 ? 'Name is required' : undefined,
      }}
    >
      {(field) => (
        <label>
          Name
          <input
            value={field.state.value}
            onBlur={field.handleBlur}
            onInput={(event) => field.handleChange(event.target.value)}
          />
          @if (field.state.meta.errors.length > 0) {
            <span>{field.state.meta.errors.join(', ')}</span>
          }
        </label>
      )}
    </form.Field>
    <form.Subscribe selector={(state) => state.canSubmit}>
      {(canSubmit) => <button disabled={!canSubmit}>Submit</button>}
    </form.Subscribe>
  </form>
}

API

The adapter includes useForm, useField, useFormGroup, useFieldGroup, createFormHook, createFormHookContexts, and useIsomorphicLayoutEffect. It also re-exports @tanstack/form-core and the useSelector/useStore helpers from @octanejs/tanstack-store.

Octane uses native DOM events. Text controls should call field.handleChange() from onInput; native change fires only on blur/commit. TanStack Form option names such as onChange, validators, and listener keys retain their upstream spelling.

Server rendering through octane/server is supported. Field and form subscriptions render their initial snapshots without browser-only setup.

Verification

The port runs TanStack Form's React adapter tests against Octane, including validation, async validation and debounce, linked fields, arrays, form groups, component contexts, submission, reset, and subscription behavior. A differential test compiles the same .tsrx form for Octane and React and compares its DOM after value, validation, array, and reset interactions. The upstream compile-time suite and an SSR fixture are also included.

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

License

MIT — contains source derived from TanStack Form (MIT), adapted for Octane.