- Category
- AI Tools
- Rank
- No. 1835Tools index
Previous survey · No. 1807 ·
- Pricing
- Open Source
- Type
- TOOL
- Builder
- moeru-ai
- GitHub
- 7 stars
- Latest release
- v0.0.3-beta.1
- Date
About
Framework bindings for xsAI so you can integrate it with React, Vue, Svelte, and other frontend apps.
What it does
xsAI Use manages the client-side state behind streamed AI chat. It tracks messages, input, loading and error states, turns responses into displayable parts, and provides controls for submitting, stopping, retrying, resetting, and replacing conversations.
Why it's ranked here
The core chat lifecycle is thoughtfully covered across multiple frontend state models, including cancellation and streamed message replacement. The rough edge is consistency: Vue code exists, but the documentation names only React and Svelte, while some declared media parts still fall back to unsupported text.
What's good
It rejects empty submissions, prevents overlapping requests, exposes read-only state where appropriate, and uses abort signals for cancellation. Retry logic can restart from a selected user message. Shared message types cover text, reasoning, refusals, images, audio, and tool-call progress, giving renderers a useful common model.
Tradeoffs
Default parsing handles text and refusals, but converts image and audio input into an unsupported-message placeholder. Documentation is thin and does not explain the Vue binding visible in the source. The package manages conversation behavior, but leaves message rendering, styling, persistence, authentication, and credential handling to the application.
How to use it well
Use it when building a custom xsAI chat interface and you want framework-native reactive state without reimplementing streaming, cancellation, retries, and message bookkeeping. Pair it with your own components, secure API boundary, persistence layer, and media parsers. It is not a finished chat product or a substitute for backend controls.
Technical notes+
The private pnpm workspace in package.json builds and tests packages recursively as ES modules. packages/react/src/index.ts re-exports hooks and shared utilities; packages/vue/src/index.ts exports useChat; packages/svelte/src/index.ts exports the Chat class. packages/vue/src/use-chat.ts and packages/svelte/src/chat.svelte.ts implement parallel request, abort, reset, and reload flows. packages/shared/src/part-parser.ts supports registration of custom parsers, while its defaults handle text and refusal and downgrade image_url and input_audio. packages/shared/src/types/ui.ts defines richer UI parts, including tool-call lifecycle states. packages/react/vite.config.ts and packages/svelte/vite.config.ts configure jsdom test environments and coverage output.
Observed
- License
- MIT
- Primary language
- TypeScript, with Svelte source and JavaScript configuration
- Packaging
- Private pnpm workspace using ES modules
- Install surface
- The README documents @xsai-use/react through npm, Yarn, or pnpm
- Interface
- Frontend library bindings with reactive chat state and controls
- Framework source
- React, Vue, and Svelte package sources are present
- Test tooling
- Vitest, jsdom, Testing Library, and V8 coverage are configured
Read from README.md, package.json, packages/react/vite.config.ts, packages/svelte/vite.config.ts, packages/svelte/svelte.config.js, packages/vue/src/index.ts, packages/react/src/index.ts, packages/shared/src/index.ts, packages/svelte/src/index.ts, packages/svelte/src/app.d.ts, packages/vue/src/use-chat.ts, packages/shared/src/part-parser.ts, packages/svelte/src/chat.svelte.ts, packages/shared/src/types/ui.ts, packages/react/src/hooks/index.ts.
What it can do
Integrate xsAI with React applications
React project and xsAI configuration → React app with xsAI functionality
Integrate xsAI with Vue applications
Vue project and xsAI configuration → Vue app with xsAI functionality
Integrate xsAI with Svelte applications
Svelte project and xsAI configuration → Svelte app with xsAI functionality
Bind xsAI to other frontend frameworks
Frontend project and xsAI configuration → Frontend app with xsAI integration
Provide framework-specific xsAI bindings
Target framework specification → Compatible xsAI binding code
Tags
Tech Stack
Comments (0)
No comments yet
Editorially curated, with community endorsements as a secondary signal. Corrections welcome.
