frontend-integration

Integrate React and Flutter frontends with Kailash SDK workflows via Nexus APIs.

Updated Apr 2, 2026
One-click install
npx skills add https://github.com/Hamza-Haadi/disease-risk-classifier-hamza --skill frontend-integration-hamza-haadi
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: frontend-integration
Source: https://github.com/Hamza-Haadi/disease-risk-classifier-hamza/tree/main/.claude/skills/11-frontend-integration
Command: npx skills add https://github.com/Hamza-Haadi/disease-risk-classifier-hamza --skill frontend-integration-hamza-haadi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Connecting React or Flutter frontends to Kailash SDK workflows requires correct API client setup, state management, error handling, and type safety, which developers often implement inconsistently or incorrectly. ## Core Features & Use Cases - React Integration: Quick-start patterns for calling Kailash workflows from React using TanStack Query, React Flow workflow editors, Zustand state, and streaming responses. - Flutter Integration: Dart HTTP clients, Riverpod/Bloc state management, responsive layouts, form validation, and testing patterns for mobile and desktop apps. - Architecture Guidance: Recommended stacks connecting frontends through the Nexus API layer to Kailash workflows and DataFlow backends. - Use Case: A developer building a React dashboard that executes Kailash AI workflows can use the provided Nexus client, React Query hooks, and WebSocket patterns to display real-time execution status. ## Quick Start Ask the AI to show how to call a Kailash workflow from a React component using the Nexus API with proper loading and error states.

Frequently Asked Questions about frontend-integration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I call a Kailash workflow from a React app?▼

Deploy the workflow with WorkflowAPI or Nexus, then POST to the execute endpoint using fetch or axios. Wrap the call in a TanStack Query mutation to handle loading, success, and error states in your component.

How do I integrate Flutter with a Kailash backend?▼

Create a Dart service class using the http package or Dio to POST workflow inputs to the Nexus API endpoint. Manage the async results with Riverpod providers or Bloc, and render loading, data, and error states in your widgets.

React Query vs Zustand for Kailash workflow state?▼

Use React Query for server state such as workflow execution results and API data, since it handles caching and refetching. Use Zustand for local client state like UI preferences or editor selections that do not come from the server.

Can I stream Kailash workflow responses to the frontend?▼

Yes, enable streaming on WorkflowAPI and read the response body with a ReadableStream reader in React, decoding chunks incrementally. Flutter clients can use Dio streaming or WebSocket connections for real-time execution updates.

Why does my frontend workflow call fail with a network error?▼

Common causes include the Nexus API not running on the expected port, missing CORS configuration, or incorrect Content-Type headers. Verify the backend is listening on port 8000 and that requests include application/json headers.