Skip to main content
Version: 2.x

Installation

To start using OpenAPI Qraft, you'll need to install two packages:

  1. The CLI tool for generating the API client
  2. The Qraft Client React package for using the generated API client
npm install -D @openapi-qraft/cli@next
npm install @openapi-qraft/react@next
Peer Dependency

If you're not already using TanStack Query v5, you'll need to install it separately:

npm install @tanstack/react-query

Requirements ๐ŸŒดโ€‹

OpenAPI Qraft is compatible with React v18+ and works with both ReactDOM and React Native. The browser support aligns with TanStack Query's requirements:

Chrome >= 91
Firefox >= 90
Edge >= 91
Safari >= 15
iOS >= 15
Opera >= 77