Skip to main content
Home

Built and signed on GitHub Actions

Works with
This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score64%
Published11 months ago (6.0.2)

A pure TS alternative to GraphQL

ZenAPI

If https://graphql.org/ and https://github.com/trpc/trpc had a baby.

TL;DR; (too long; didn't write):

  1. Create a special TypeScript file to define your Graph (similar to a GraphQL schema)
  2. Write some resolvers to handle the incoming requests
  3. In the client use the types from 1. to get a type safe query builder

Benefits

  • Same advantages as GraphQL: fetch only what you need, query validation, etc.
  • Type-safe client without any build step
  • Very thin client library

Example

Look at the examples folder for some examples of what is possible. You can also look at the test folder to see what is supported.

Built and signed on
GitHub Actions

Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.