callsmith

0.0.9 • Public • Published

Callsmith

A generative interface for calling API routes on NextJS App Router. Inspired by GraphiQL, Callsmith's goal is to be the easiest way to call your API for development and testing purposes.

Install

npm i callsmith

Add page

Note that this page needs to be rendered server-side to leverage the local filesystem for determining available API routes.

import { Callsmith } from "callsmith/client";
import { getAppRoutes } from "callsmith/server";

export default function Page() {
  return <Callsmith nodes={getAppRoutes()} />;
}

Dependents (0)

Package Sidebar

Install

npm i callsmith

Weekly Downloads

1

Version

0.0.9

License

none

Unpacked Size

1.19 MB

Total Files

75

Last publish

Collaborators

  • ilikesymmetry