Skip to content
Browse docs and components

API Client

api-clientPro

A React REST and GraphQL client template for building your own Postman, Insomnia or Bruno alternative. Session-only collections, drafts, environments and history plus a replaceable mock transport give coding agents a working frontend to extend.

Pro · LiveResponsiveOpen full screen

Install

$npxformelogin
$npxformeaddapi-client

Pro items are served from an authenticated registry, so the CLI checks your licence before it writes anything.

Get Forme Pro

Usage

import { ApiClient } from "@/components/forme/api-client/api-client";

<ApiClient />

When to use

Reach for it

  • Use as the React frontend foundation for your own Postman, Insomnia or Bruno alternative.
  • Give this template to a coding agent to extend the working UI with your request transport, persistence and product workflows.
  • Use the included session workspace and mock responses to develop the interface before connecting a backend.
  • Inspect double-brace variables in the URL, edit their values inline or jump to the matching environment row; nested references resolve before sending.
  • Compose GraphQL queries and mutations with JSON variables and an optional operation name; the transport receives a standard POST payload.

Use something else

  • Do not expect reload persistence: requests, collections, environments and history are kept in React state.
  • GraphQL mock responses are operation fixtures; schema execution, introspection and subscriptions belong in your backend integration.

Accessibility

  • Base UI owns tabs, selects and dialog focus; send and save also have keyboard shortcuts.
  • Alt plus Enter in the URL opens its first variable, and the request variables button exposes references from headers, bodies and GraphQL variables.

Motion

  • Motion springs keep request tabs and list rows in place while asynchronous responses crossfade without delaying interaction.
  • Reduced motion removes geometry changes, and keyboard navigation switches request tabs immediately.

Responsive behaviour

  • The sidebar becomes an overlay and request and response panes stack in narrow containers.
  • Compact request tabs scroll horizontally with wheel, trackpad or arrow controls, while the new request button stays visible.

What is in the box

  • The complete block, as readable source
  • Every file it depends on, with relative imports
  • Its npm dependencies, listed on the registry
  • Responsive layout down to a phone width
  • Accessible primitives where behaviour is hard
  • No runtime dependency, before or after install

Often searched for as api client, http client, rest, graphql, graphql client template.