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/dnd-kit

v0.1.33

Published

dnd-kit bindings for the octane renderer — a full port of the modern @dnd-kit/react adapter over the framework-agnostic @dnd-kit/dom core.

Downloads

3,197

Readme

@octanejs/dnd-kit

The modern dnd-kit React adapter ported to octane. It reuses dnd-kit's framework-agnostic @dnd-kit/dom implementation, so sensors, collision detection, modifiers, accessibility, feedback, and sortable mechanics stay on the official upstream core.

import { DragDropProvider } from '@octanejs/dnd-kit';
import { useSortable } from '@octanejs/dnd-kit/sortable';
import { arrayMove } from '@dnd-kit/helpers';
import { useState } from 'octane';

function Item(props) @{
  const { ref, isDragging } = useSortable({ id: props.id, index: props.index });
  <button ref={ref} data-dragging={isDragging}>{props.id as string}</button>
}

export function App() @{
  const [items, setItems] = useState(['a', 'b', 'c']);
  <DragDropProvider
    onDragEnd={(event) => {
      if (event.canceled || !event.operation.target) return;
      const from = items.indexOf(event.operation.source.id as string);
      const to = items.indexOf(event.operation.target.id as string);
      setItems(arrayMove(items, from, to));
    }}
  >
    @for (const id of items; key id) {
      <Item id={id} index={items.indexOf(id)} />
    }
  </DragDropProvider>
}

The public entry points mirror @dnd-kit/[email protected]:

Parity evidence is intentionally recorded-unverified: the canonical adapter source is pinned and vendored, but upstream contains no React-adapter test suite at this release and the current differential covers one programmatic manager-action drag lifecycle (not keyboard-sensor parity). See UPSTREAM.md for the exact boundary and open browser gaps.

  • @octanejs/dnd-kit
  • @octanejs/dnd-kit/hooks
  • @octanejs/dnd-kit/sortable
  • @octanejs/dnd-kit/utilities

Octane's default useSortable plugins retain dnd-kit's keyboard mechanics but omit OptimisticSortingPlugin. That upstream plugin reparents the single host element before application state commits; doing so can split an Octane keyed item's owned DOM range. Update list state from the drag events as in the example above and Octane performs the visible keyed move. An explicit plugins array is still used exactly as supplied.

This package targets the modern dnd-kit API. The legacy @dnd-kit/core 6.x API is not included.