
Research
/Security News
Mini Shai-Hulud Campaign Hits Red Hat Cloud Services npm Packages
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.
@assistant-ui/store
Advanced tools
@assistant-ui/storeTap-based state container with React Context integration. Bridges @assistant-ui/tap resources into React via useAui, useAuiState, and <AuiProvider>.
store powers the runtime layer of assistant-ui. Most users do not install it directly; reach for @assistant-ui/react instead.
npm install @assistant-ui/store @assistant-ui/tap
import { resource, tapState } from "@assistant-ui/tap";
import {
useAui,
useAuiState,
AuiProvider,
type ClientOutput,
} from "@assistant-ui/store";
declare module "@assistant-ui/store" {
interface ScopeRegistry {
counter: {
methods: {
getState: () => { count: number };
increment: () => void;
};
};
}
}
const CounterClient = resource((): ClientOutput<"counter"> => {
const [state, setState] = tapState({ count: 0 });
return {
getState: () => state,
increment: () => setState({ count: state.count + 1 }),
};
});
function App() {
const aui = useAui({ counter: CounterClient() });
return (
<AuiProvider value={aui}>
<Counter />
</AuiProvider>
);
}
function Counter() {
const count = useAuiState((s) => s.counter.count);
const aui = useAui();
return <button onClick={() => aui.counter().increment()}>{count}</button>;
}
Full API reference (clients, derived clients, events, tapClientLookup, tapClientList) at assistant-ui.com/tap/docs/store/quickstart.
FAQs
Tap-based state management for @assistant-ui
We found that @assistant-ui/store demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
A mini Shai-Hulud campaign compromised Red Hat Cloud Services npm packages to steal developer and CI/CD secrets during installation.

Research
/Security News
The North Korean malware loader hides in a Packagist-listed package and its GitHub branch to fetch and execute remote code in a likely Contagious Interview-style lure.

Security News
The Rust project is moving toward formal rules on LLM use in contributions after months of internal debate over maintainer burden, code quality, and contributor experience.