What problem does it solve?
Integrating frontend applications with backend AI workflows can be time-consuming and error-prone due to API shape mismatches, state management complexity, streaming responses, and type-safety issues. This Skill centralizes practical patterns, client examples, and architecture guidance to help frontend engineers connect React and Flutter apps to Kailash Nexus APIs reliably.
Core Features & Use Cases
- API Client Patterns: Concrete examples for calling Nexus/Workflow endpoints from React and Flutter, including streaming and error handling.
- State Management & UX: Recommendations and code patterns for React Query, Zustand, Riverpod, and Bloc to manage server and local state.
- Type Safety & Tooling: Guidance for generating and using TypeScript and Dart models, plus best practices for error handling, pagination, and optimistic updates.
- Use Case: Build a chat UI that executes a Kailash workflow, streams incremental responses to the UI, and updates local state with optimistic results while handling reconnections.
Quick Start
Call the Nexus API from your frontend to POST JSON inputs to the workflow endpoint, stream incremental results to update the UI, and use TypeScript or Dart models to parse responses.