ST

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
1
Weekly
0
Open issues
0
Bundle
~60 kB

Installation

npm install @assistant-ui/store

Code 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.
  • 0 weekly downloads. Battle tested
  • First-class TypeScript definitions
  • MIT licensed

Considerations

  • Adds roughly ~60 kB to your bundle
  • Needs client-only rendering in SSR frameworks
  • Not supported in React Native
  • 0 open issues on GitHub

FAQs

Alternatives & similar libraries