# contiamo/restful-react

A consistent, declarative way of interacting with RESTful backends, featuring code-generation from Swagger and OpenAPI specs 🔥

Repository: https://github.com/contiamo/restful-react
Canonical: https://ross.abutalabs.com/products/restful-react
Language: TypeScript
License: MIT
License Family: permissive
Topics: openapi, openapi3, swagger, rest, react, typescript
Archived: true
Last push: 2023-02-03T22:49:48+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 2987, "days_push": 1307, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: archived
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1853, forks 108 (observed 2026-08-28T04:05:44.556264+00:00)

## What it is
restful-react is a React library providing declarative components and hooks for interacting with RESTful APIs, including code generation of typed components from OpenAPI/Swagger specs. It is now deprecated in favor of openapi-codegen which generates react-query components.

## Use cases
- fetch rest apis in react with hooks
- generate typescript react components from openapi spec
- declarative rest client for react
- keep frontend types in sync with swagger spec
- poll rest endpoints in react
- handle loading and error states for api calls

## When to choose
- you maintain an existing codebase already using restful-react
- you need typed react hooks generated from OpenAPI 2/3 specs

## When to avoid
- starting a new project - the library is deprecated
- you prefer react-query based code generation (use openapi-codegen instead)
- you need a non-React framework

## Facets
- artifact type: library
- maturity: abandoned
- function: http-client, data-generation
- domain: web-development, frontend, apis, developer-tools
- platform: cross-platform
- tags: react-hooks, openapi-codegen, swagger, typescript, rest-client, deprecated, code-generation, nodejs, web-server

## Member repositories
- contiamo/restful-react (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:44.556264+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:16:50.441847+00:00, confidence not recorded.
  - readme: https://github.com/contiamo/restful-react (fetched 2026-08-28T04:05:44.556264+00:00, sha 51a145034264)
- Data as of 2026-08-30T08:39:29.467469+00:00.
