Skip to content

πŸ”ŒπŸŒ Powerful and flexible Fetch API Adaptor Library

License

Notifications You must be signed in to change notification settings

gwansikk/query-fetch

Repository files navigation

πŸ”ŒπŸŒ Query Fetch

Powerful and flexible Fetch API Adaptor Library

GitHub License Codacy grade

English Β Β β€’Β Β  ν•œκ΅­μ–΄

What is Query Fetch?

Fetch API only provides basic functionality, often requiring developers to implement additional features themselves. For example, automatic retries on request failure, renewing authentication tokens, logging requests and responses, and canceling requests are not supported by the Fetch API and need to be manually added. Additionally, there's the hassle of repeatedly writing the same configurations.

To overcome these limitations, Query Fetch was developed. As the name suggests, it allows for simple, query-like usage that reduces the complexity of network communication logic. Use it declaratively, like making a simple query, to lessen the burden of handling network communication and focus on your core logic!

Features

  • 🧰 Extension of Fetch API: Provides richer functionality than Fetch API. With features like Instance, Interceptor, and Effect, it minimizes complex configurations and enables flexible HTTP communication.
  • 🧩 Support for Various Environments: Designed for easy use in various environments. Query Fetch works seamlessly in specialized Fetch API environments like Next.js, React Native, and Tauri by simply being used as an adapter.
  • ✨ Strong Type Safety: Fully supports TypeScript and requires only the necessary types for precise type inference. This minimizes unnecessary types and ensures robust type safety.

Packages

@query-fetch/core Β· npm version NPM Downloads npm bundle size

Provides core features of Query Fetch.

  • queryFetch
  • createQueryFetch
  • queryOptions
  • migration utils for other fetch packages..

@query-fetch/react-query Β· npm version NPM Downloads npm bundle size

Provides features to easily use Query Fetch with React Query.

  • queryFetchKey
  • queryFetchFn

@query-fetch/nextjs Β· POC

Provides features to easily use Query Fetch with NEXT.js.

@query-fetch/react-native Β· POC

Provides features to easily use Query Fetch with React Native.

@query-fetch/tauri Β· POC

Provides features to easily use Query Fetch with Tauri.

Official Documentation

Visit the official documentation for detailed information on installation, usage, and more.

Contributing

We welcome contribution from everyone in the community. Read below for detailed contribution guide.

CONTRIBUTING.md

Contributors

contributors

License

See LICENSE for more information.

MIT Β© gwansikk

About

πŸ”ŒπŸŒ Powerful and flexible Fetch API Adaptor Library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published