Skip to content

ilikesymmetry/callsmith

Repository files navigation

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()} />;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published