128
A small API playground: pick a method, type a URL whose :path params and query light up and turn into fields, toggle headers, check the JSON body as you type, then send for a status pill, timing, size and a pretty response.
akaapi client·http request·rest
Run this in any project set up for the shadcn CLI. It copies the Request Builder source into your components folder, so the code is yours to change.
npx shadcn@latest add https://devl.dev/r/request-builder.jsonImport it and render it. Every prop has a typed default, so it works straight away, and you pass your own data when you’re ready.
import { RequestBuilder } from "@/components/request-builder";
export default function Page() {
return <RequestBuilder />;
}A free React component in the Dev Tools collection, written in TypeScript with Tailwind CSS on coss ui. MIT licensed.
Read from the Request Builder source. Everything is optional unless it says required.
| Prop | Type | Default |
|---|---|---|
| defaultMethod | HttpMethod | "GET" |
| defaultUrl | string | "https://api.example.com/v1/users/:id" |
| defaultParams | Record<string, string> | {} |
| defaultHeaders | Omit<RequestHeader, "id">[] | [{ key: "Accept", value: "application/json", enabled: true }] |
| defaultBody | string | "" |
| onSend | (request: BuiltRequest) => Promise<ResponseData> | — |
| className | string | — |