Skip to content

alovajs/alova

Repository files navigation

One line of code completes network requests in various complex scenarios. Don’t spend time on this small matter of requesting. Leave it to us

English | 📑中文

npm build coverage status stars minzipped size discord wechat dependency tree shaking typescript license

What is alova

alova is a lightweight request strategy library. It provides a complete set of solutions to deal with complex request scenarios. We call it Request Strategy. It only requires one line of code to quickly implement various complex request logics. , not only can help you improve development efficiency, but also help you improve the operating efficiency of the App and reduce the pressure on the server.

Is there any difference?

Unlike other request libraries, alova's goal is to make requests simpler and maintain more efficient data interaction.

We consider both developers and App users. For developers, alova provides them with a simple request API and an out-of-the-box high-performance request strategy module. For application users, they can enjoy Alova's high-performance data interaction brings a smooth experience.

In addition, let’s take a look at the specific features:

  • API design similar to axios, allowing users to learn at a lower cost;
  • 10+ out-of-the-box high-performance request strategies to make applications smoother;
  • alova is lightweight, only 4kb+, which is 30%+ of axios;
  • High flexibility, alova's adapter allows alova to be used in any js environment and with any UI framework (the built-in supported UI framework is vue/react/svelte), and provides a unified experience and perfect code migrate;
  • 3 caching modes and request sharing mechanism to improve request performance and reduce server pressure;
  • Highly aggregated organization of API code. The request parameters, cache behavior, response data conversion, etc. of each API will be gathered in the same code block, which has great advantages for managing a large number of APIs;

In alova's future, further request simplification will be implemented.

You can also check out Comparison with other request libraries to learn more about how alova is different.

document

Visit the alova website for more information, or check examples to try.

Join the communication community

We need your support

If you like alova, we are very grateful for you to give us a star in the upper right corner, which is a recognition and encouragement for our work.

Welcome to contribute

We're honored to receive active input from developers around the world in Issues and Discussions.

We hope to make alova a common project for everyone who is willing to participate, rather than the alova team. With an open and inclusive attitude, we encourage everyone to become a contributor to the alova community, even if you are a junior developer, as long as your idea meets Please feel free to participate in alova's development guidelines.

Alova is still a newbie, and it still has a long way to go. Participating in contributions now can win you more effective contribution opportunities, and it allows you to provide your value to developers around the world.

We believe that contributing to alova is not limited to code contribution, but participating in any activities that are beneficial to the development of alova is considered to be a contribution to alova, specifically including the following 13 items, but not limited to these:

  1. Use alova in your project
  2. Star for alova
  3. Report a bug
  4. Provide ideas for new features
  5. Contribute code
  6. Write adapters and strategy libraries based on alova
  7. Participate in community communication and PR review
  8. Write demo
  9. Correct or write documentation
  10. Translate documents
  11. Publish articles, videos and other information that are beneficial to the development of alova on social platforms
  12. Project cooperation
  13. Project Donation

and any other positive development activities you can think of

Effective contributions will earn you a certain reputation in the alova community. Before participating in contributions, please be sure to read the Contribution Guidelines in detail to ensure your effective contribution.

Changelog

View on GitHub

Contributors

LICENSE

MIT