
Security News
GitHub Actions Checkout Now Blocks Risky pull_request_target Checkouts
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.
@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 } from "@assistant-ui/tap";
import { useState } from "react";
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 useCounterClient = (): ClientOutput<"counter"> => {
const [state, setState] = useState({ count: 0 });
return {
getState: () => state,
increment: () => setState({ count: state.count + 1 }),
};
};
const CounterClient = resource(useCounterClient);
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, useClientLookup, useClientList) at assistant-ui.com/tap/docs/store/quickstart.
FAQs
Tap-based state management for @assistant-ui
The npm package @assistant-ui/store receives a total of 922,966 weekly downloads. As such, @assistant-ui/store popularity was classified as popular.
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.

Security News
GitHub Actions checkout now blocks risky pull_request_target checkouts by default to help prevent pwn request supply chain attacks.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.