@atheory-ai/kitsune-react
v0.1.0
Published
React integration for Kitsune runtime, boundaries, and metadata.
Maintainers
Readme
@atheory-ai/kitsune-react
React bindings for the Kitsune runtime.
@atheory-ai/kitsune-react lets React applications use the same Kitsune runtime, boundaries, commands, events, and metadata conventions without replacing React.
Install
pnpm add @atheory-ai/kitsune-react @atheory-ai/kitsune-core react react-domUse
import { KitBoundary, KitShellProvider, useKitCommand } from '@atheory-ai/kitsune-react'
function App() {
return (
<KitShellProvider context={{ surface: 'app' }}>
<KitBoundary surface="settings" feature="profile">
<button data-meta-command="profile.save">Save</button>
</KitBoundary>
</KitShellProvider>
)
}Exports
KitShellProviderKitBoundaryuseKitRuntimeuseKitContextuseKitEmituseKitCommandreadReactDomMetadata- React adapter types
Documentation
See the Kitsune docs at https://kitsune.atheory.ai.
License
Apache-2.0
