@neeter/core
v0.18.0
Published
Framework-agnostic state management and agent lifecycle for neeter
Readme
@neeter/core
Framework-agnostic state management, agent lifecycle, and utilities for the neeter toolkit. Use standalone for vanilla JS apps or as the foundation for @neeter/react.
Part of the neeter toolkit.
Install
pnpm add @neeter/corePeer dependencies:
{
"zustand": ">=5.0.0",
"immer": ">=10.0.0"
}What's inside
AgentClient— manages EventSource lifecycle, session creation/resumption, message sending, and permissionscreateChatStore()— Zustand store for chat state, messages, tool calls, and streamingreplayEvents(store, events, options?)— reconstruct UI state from persisted SSE eventsregisterWidget/getWidget/stripMcpPrefix— widget registry for tool call renderingfindMatchingApproval/isApprovalClaimedByToolCall— approval-matching utilitiescn(...inputs)—clsx+tailwind-mergeclass merging utility
Documentation
- Client Guide — styling, custom events, widgets, tool lifecycle
- API Reference — all exports and types
License
MIT
