Apity

screenshot of Apity
svelte

A typed fetch client for openapi-typescript for use with SvelteKit

Overview

The apity is a typed API client for Svelte and SvelteKit. It is a fetch client that works with openapi-typescript and is compatible with SvelteKit's custom fetch. The apity offers support for JSON request and responses from OpenAPI 3.0, {#await} syntax in Svelte templates, compatibility with SvelteKit's fetch in load functions, request reloading, and configuration of default fetch options. It also has plans to include caching of subsequent requests with the same URL and parameters in the future.

Features

  • Support of JSON request and responses from OpenAPI 3.0
  • Support of {#await} syntax in Svelte templates
  • Compatibility with SvelteKit's fetch in load functions
  • Request reloading
  • Configuration of default fetch options
  • On the roadmap:
    • Caching of subsequent requests with the same URL and parameters

Summary

The apity is a typed API client for Svelte and SvelteKit. It offers several features such as support for JSON request and responses, compatibility with SvelteKit's fetch, and configuration of fetch options. It also has plans to include caching of subsequent requests in the future. The installation process involves generating an API spec and configuring the apity instance. Overall, the apity is a useful tool for working with APIs in Svelte and SvelteKit projects.

svelte
Svelte

Svelte is a modern front-end framework that compiles your code at build time, resulting in smaller and faster applications. It uses a reactive approach to update the DOM, allowing for high performance and a smoother user experience.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.