Store
@assistant-ui/store
Tap-based state management for @assistant-ui
State Management
state-management
store
tap
assistant-ui
react
@assistant-ui/store
State Management
javascript
npm
frontend
Stars
13k
Weekly
1.1M
Open issues
29
Bundle
~25 kB
Installation
npm install @assistant-ui/storeCode example
import { create } from "@assistant-ui/store";
const useStore = create((set) => ({
count: 0,
inc: () => set((s) => ({ count: s.count + 1 })),
}));
export function Example() {
const { count, inc } = useStore();
return (
<button type="button" onClick={inc}>
Count: {count}
</button>
);
}Pros & cons
Pros
- Actively maintained by AgentbaseAI Inc.
- 1.1M weekly downloads. Battle tested
- First-class TypeScript definitions
- MIT licensed
Considerations
- Adds roughly ~25 kB to your bundle
- Needs client-only rendering in SSR frameworks
- Not supported in React Native
- 29 open issues on GitHub