Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/gwansikk/query-adaptor

πŸ”Œ Powerful fetch handling, flexible HTTP client management compatible with all frameworks
https://github.com/gwansikk/query-adaptor

adaptor fetch http http-client request

Last synced: 4 days ago
JSON representation

πŸ”Œ Powerful fetch handling, flexible HTTP client management compatible with all frameworks

Awesome Lists containing this project

README

        

![header](https://github.com/user-attachments/assets/197bbe65-1799-49c0-84f4-aba32ba17509)

λ‹€μ–‘ν•œ ν”„λ ˆμž„μ›Œν¬λ₯Ό μœ„ν•œ κ°•λ ₯ν•œ 패칭 미듀웨어, μœ μ—°ν•œ HTTP ν΄λΌμ΄μ–ΈνŠΈ 관리

![GitHub License](https://img.shields.io/github/license/gwansikk/query-adaptor?labelColor=black&color=black)
![Codacy grade](https://img.shields.io/codacy/grade/bf89208f2e9f4590832d09131dd207c2?logo=codacy&labelColor=black&color=black)

[English](https://github.com/gwansikk/query-adaptor/blob/main/README.md)
Β Β β€’Β Β 
[ν•œκ΅­μ–΄](https://github.com/gwansikk/query-adaptor/blob/main/README-ko_kr.md)

## Query Adaptorλž€?

Fetch APIλŠ” 기본적인 κΈ°λŠ₯만 μ œκ³΅ν•˜κΈ° λ•Œλ¬Έμ— κ°œλ°œμžκ°€ ν•„μš”ν•œ κΈ°λŠ₯을 직접 κ΅¬ν˜„ν•΄μ•Ό ν•˜λŠ” κ²½μš°κ°€ λ§Žμ•„μš”. 예λ₯Ό λ“€μ–΄ μš”μ²­ μ‹€νŒ¨ μ‹œ μžλ™ μž¬μš”μ²­, 인증 토큰 κ°±μ‹ , μš”μ²­ 및 응닡 λ‘œκΉ…, μš”μ²­ μ·¨μ†Œμ™€ 같은 κΈ°λŠ₯은 Fetch API μžμ²΄μ—μ„œλŠ” μ§€μ›ν•˜μ§€ μ•ŠκΈ° λ•Œλ¬Έμ— μˆ˜λ™μœΌλ‘œ μΆ”κ°€ν•΄μ•Ό ν–ˆμ–΄μš”. λ˜ν•œ, λ™μΌν•œ 섀정을 반볡적으둜 μž‘μ„±ν•΄μ•Ό ν•˜λŠ” λ²ˆκ±°λ‘œμ›€λ„ μ‘΄μž¬ν•΄μš”.

μ΄λŸ¬ν•œ ν•œκ³„μ μ„ κ·Ήλ³΅ν•˜κΈ° μœ„ν•΄ κ°œλ°œν•œ 것이 λ°”λ‘œ Query Adaptorμ˜ˆμš”. 이름 κ·ΈλŒ€λ‘œ κ°„λ‹¨ν•˜κ²Œ μ§ˆμ˜ν•˜λ“―μ΄ μ‚¬μš©ν•  수 μžˆμ–΄ λ„€νŠΈμ›Œν¬ 톡신 λ‘œμ§μ— λŒ€ν•œ λ³΅μž‘μ„±μ„ μ€„μ—¬μ€˜μš”. κ°„λ‹¨ν•˜κ²Œ μ§ˆμ˜ν•˜λ“―μ΄ μ„ μ–Έμ μœΌλ‘œ μ‚¬μš©ν•˜μ—¬ λ„€νŠΈμ›Œν¬ 톡신에 λŒ€ν•œ 뢀담을 덜고, 핡심 λ‘œμ§μ— μ§‘μ€‘ν•˜μ„Έμš”!

## μ£Όμš” κΈ°λŠ₯

- **🧰 Fetch API의 ν™•μž₯**: Fetch APIμ—μ„œ 더 ν’λΆ€ν•œ κΈ°λŠ₯을 μ œκ³΅ν•΄μš”. Instance, Interceptor, Effect λ“±μ˜ κΈ°λŠ₯을 톡해 λ³΅μž‘ν•œ 섀정을 μ΅œμ†Œν™”ν•˜κ³  μœ μ—°ν•œ HTTP 톡신을 κ΅¬ν˜„ν•  수 μžˆμ–΄μš”.
- **🧩 λ‹€μ–‘ν•œ ν™˜κ²½ 지원**: λ‹€μ–‘ν•œ ν™˜κ²½μ—μ„œ μ†μ‰½κ²Œ μ‚¬μš©ν•  수 μžˆλ„λ‘ μ„€κ³„λ˜μ—ˆμ–΄μš”. Query Adaptorλ₯Ό λ‹¨μˆœνžˆ μ–΄λŒ‘ν„°μ²˜λŸΌ ν™œμš©ν•˜μ—¬, Next.js, React Native, Tauri와 같이 νŠΉμˆ˜ν•œ Fetch API ν™˜κ²½μ—μ„œλ„ μ™„λ²½νžˆ λ™μž‘ν•΄μš”.
- **✨ κ°•λ ₯ν•œ νƒ€μž… 세이프**: TypeScriptλ₯Ό 100% μ§€μ›ν•˜λ©°, μ •ν™•ν•œ νƒ€μž…μΆ”λ‘ μ„ μœ„ν•΄ ν•„μš”ν•œ νƒ€μž…λ§Œμ„ μš”κ΅¬ν•΄μš”. 덕뢄에 λΆˆν•„μš”ν•œ νƒ€μž…μ„ μ΅œμ†Œν™”ν•˜κ³  κ°•λ ₯ν•˜κ²Œ νƒ€μž… μ•ˆμ •μ„±μ„ 보μž₯ν•΄μš”.

## νŒ¨ν‚€μ§€

### query-adaptor Β· [![npm version](https://img.shields.io/npm/v/query-adaptor?color=000&labelColor=000&logo=npm)](https://www.npmjs.com/package/query-adaptor) [![npm downloads](https://img.shields.io/npm/dm/query-adaptor?color=000&labelColor=000)](https://www.npmjs.com/package/query-adaptor) [![npm bundle size](https://img.shields.io/bundlephobia/min/query-adaptor?color=000&labelColor=000)](https://www.npmjs.com/package/query-adaptor)

> Query Adaptor의 핡심 κΈ°λŠ₯을 μ œκ³΅ν•΄μš”.

- query
- createQueryAdaptor
- fetchOptions

### @query-adaptor/react-query Β· [![npm version](https://img.shields.io/npm/v/@query-adaptor/react-query?color=000&labelColor=000&logo=npm)](https://www.npmjs.com/package/@query-adaptor/react-query) [![npm downloads](https://img.shields.io/npm/dm/@query-adaptor/react-query?color=000&labelColor=000)](https://www.npmjs.com/package/@query-adaptor/react-query) [![npm bundle size](https://img.shields.io/bundlephobia/min/@query-adaptor/react-query?color=000&labelColor=000)](https://www.npmjs.com/package/@query-adaptor/react-query)

> Query Adaptorλ₯Ό React Query와 μ‰½κ²Œ μ‚¬μš©ν•  수 μžˆλ„λ‘ λ„μ™€μ£ΌλŠ” κΈ°λŠ₯을 μ œκ³΅ν•΄μš”.

- queryFetchFn
- queryFetchKey

## 곡식 λ¬Έμ„œ

[곡식 λ¬Έμ„œ](https://query-adaptor.gwansik.dev)에 λ°©λ¬Έν•˜μ‹œλ©΄ μ„€μΉ˜, μ‚¬μš© 방법 λ“± 더 μžμ„Έν•œ 정보λ₯Ό 확인할 수 μžˆμ–΄μš”.

## κΈ°μ—¬ν•˜κΈ°

ν•΄λ‹Ή ν”„λ‘œμ νŠΈμ— κΈ°μ—¬ν•˜κ³  μ‹Άλ‹€λ©΄ μ•„λž˜ λ¬Έμ„œλ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”.

[CONTRIBUTING.md](https://github.com/gwansikk/query-adaptor/blob/main/CONTRIBUTING.md)

### κΈ°μ—¬μž

[![contributors](https://contrib.rocks/image?repo=gwansikk/query-adaptor)](https://github.com/gwansikk/query-adaptor/contributors)

## λΌμ΄μ„ μŠ€

μžμ„Έν•œ 사항은 [LICENSE](https://github.com/gwansikk/query-adaptor/blob/main/LICENSE)λ₯Ό μ°Έκ³ ν•΄μ£Όμ„Έμš”.

MIT Β© [gwansikk](https://github.com/gwansikk)