Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jouryjc/atomic-request
A library for aggregating API requests
https://github.com/jouryjc/atomic-request
aggregation
Last synced: 6 days ago
JSON representation
A library for aggregating API requests
- Host: GitHub
- URL: https://github.com/jouryjc/atomic-request
- Owner: Jouryjc
- License: mit
- Created: 2022-05-12T14:59:56.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-08-01T15:02:29.000Z (over 2 years ago)
- Last Synced: 2023-03-03T14:23:28.518Z (over 1 year ago)
- Topics: aggregation
- Language: TypeScript
- Homepage: https://github.com/Jouryjc/atomic-requests
- Size: 611 KB
- Stars: 7
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Atomic Request
> 用于在浏览器做多个接口的流程编排和数据聚合
![https://www.npmjs.com/package/@jour/atomic-requests](https://img.shields.io/npm/v/@jour/atomic-requests) [![CI](https://github.com/Jouryjc/atomic-requests/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/Jouryjc/atomic-requests/actions/workflows/ci.yml) [![codecov](https://codecov.io/gh/Jouryjc/atomic-requests/branch/main/graph/badge.svg?token=XWVEWXT29O)](https://codecov.io/gh/Jouryjc/atomic-requests)
## ✨ 功能
- [x] 支持并行的请求模式
- [x] 支持串行的请求编排
- [x] 能够灵活定义接口依赖
- [x] 不限制具体的请求库,可以用 XHR、Fetch、axios,只要请求函数能够满足 Promise 规范即可接入
- [x] 支持熔断机制
- [x] 支持重试机制,可以根据不同接口制定不同的重试次数
- [ ] 数据处理,支持多个请求数据的聚合、排序、分组等## 🎇 Repobeats
![Alt](https://repobeats.axiom.co/api/embed/3a281333d1b629dfec0ef4bbf2cc493453c66d73.svg "Repobeats analytics image")