Generate React or Vue.js-based Progressive Web Apps from an Hydra-enabled API. Also support React Native.
Clone or download
pierre-H and dunglas Add export to ts interfaces (#72)
* Add export to ts interfaces

* fix test

* fix lint
Latest commit f961c25 Aug 24, 2018

API Platform Client Generator

Build Status npm version MIT Licence

API Platform Client Generator is a generator to scaffold app with Create-Retrieve-Update-Delete features for any API exposing a Hydra or Swagger documentation for:

  • React/Redux
  • Vue.js

Works especially well with APIs built with the API Platform framework.


yarn global add @api-platform/client-generator



generate-api-platform-client output/ --resource Book


generate-api-platform-client output/ --resource Book --format swagger


  • Generate high-quality ES6 components and files built with React, Redux, React Router and Redux Form including:
    • A list view
    • A creation form
    • An edition form
    • A deletion button
  • Use the Hydra or Swagger API documentation to generate the code
  • Generate the suitable HTML5 input type (number, date...) according to the type of the API property
  • Display of the server-side validation errors under the related input (if using API Platform Core)
  • Client-side validation (required attributes)
  • The generated HTML is compatible with Bootstrap and include mandatory classes
  • The generated HTML code is accessible to people with disabilities (ARIA support)
  • The Redux and the React Router configuration is also generated


The documentation of API Platform's Client Generator can be browsed on the official website.


Created by Kévin Dunglas. Sponsored by Commercial support available upon request.