Skip to content
Arthur Refslund edited this page Sep 20, 2022 · 4 revisions

SvelteKit Zero API

Provides type-safety between front- and backend, but more importantly — creates a structure for ease of APIs in your project.

  • Body and query is typed seemlessly in both frontend, and endpoints
  • Queries are easier to use with querySpread which supports objects as query parameters
  • Endpoint routes are automatically typed
  • The returned content of endpoints are typed
  • Supports slugged routes*
  • Can be used in the page Load function
  • You can type-define variables with endpoint responses

Inspired by svelte-zero-api by ymzuiku.

Assigning variables directly Intellisense with API calls

Clone this wiki locally