@supercmdk/needle
v0.4.1
Published
Optional bundled Cactus Needle model and WASM engine for SuperCmdK.
Maintainers
Readme
@supercmdk/needle
Optional bundled Cactus Needle 2
model and WASM runtime for @supercmdk/react.
bun add @supercmdk/react @supercmdk/needleimport { CommandPalette, SuperCmdKProvider } from "@supercmdk/react";
import { createNeedleEngine } from "@supercmdk/needle";
<SuperCmdKProvider agent={{ engine: createNeedleEngine }}>
<CommandPalette />
</SuperCmdKProvider>;The package is about 14 MB because it contains the pinned model. Browser assets remain lazy: installing the package does not put the model in your initial JavaScript bundle, and SuperCmdK fetches it during idle preload or the first Agent request. Inference runs in a Web Worker.
The adapter code is MIT. Bundled Needle files are Apache-2.0; see
THIRD_PARTY_NOTICES.md and assets/LICENSE.
