npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

alova

v2.20.3

Published

Request strategy library for MVVM libraries such as Vue.js, React.js and Svelte.js

Downloads

9,334

Readme

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

alova 是什么

alova 是一个轻量级的请求策略库,它提供了一套完整的应对复杂请求场景的方案,我们称之为请求策略,只需一行代码就能快速实现各种复杂的请求逻辑,不仅能帮你提升开发效率,还能帮你提升 App 的运行效率,降低服务端压力。

有什么不同吗?

与其他请求库不同的是,alova 的目标是让请求变得更简单并保持更高效的数据交互。

我们为开发者和 App 使用者双方考虑,对于开发者来说,alova 为他们提供了简单的请求 api,和开箱即用的高性能请求策略模块,对于应用的用户来说,他们可以享受到 alova 的高性能数据交互带来的流畅体验。

此外,再从具体的特性来看看:

  • 与 axios 相似的 api 设计,让使用者学习成本更低;
  • 10+个开箱即用的高性能请求策略,让应用更流畅;
  • alova 是轻量级的,只有 4kb+,是 axios 的 30%+;
  • 灵活性高,alova 的适配器可以让 alova 在任何 js 环境下,与任何 UI 框架协作使用(内置支持的 UI 框架为vue/react/svelte),并且提供了统一的使用体验和完美的代码迁移;
  • 3 种缓存模式和请求共享机制,提升请求性能并降低服务端压力;
  • api 代码的高聚合组织,每个 api 的请求参数、缓存行为、响应数据转换等都将聚集在相同的代码块中,这对于管理大量的 api 有很大的优势;

alova 的未来中,将实现更进一步的请求简单化。

你还可以查看请与其他请求库比较详细了解 alova 的不同之处。

文档

访问alova 网站了解更多信息,或查尝试运行的示例

加入交流社区

我们需要你的支持

如果你喜欢 alova,我们非常感谢您在右上角给我们 star,这是对我们工作的认可和鼓励。

欢迎参与贡献

我们在 Issues 和 Disscussion 中收到了来自世界各地的开发者积极参与的信息,深感荣幸。

我们期望将 alova 打造成每位愿意参与的人的共同项目,而不是 alova 团队的,我们以开放包容的态度鼓励每个人成为 alova 社区的贡献者,即使你是一位初级开发者,只要想法符合 alova 的发展准则,也请大方地参与进来。

alova 还属于新秀,它依然还有很长一段路需要走,现在参与贡献可以为你赢得更多的有效贡献机会,它可以让你为全世界的开发者提供你的价值。

我们认为贡献 alova 不局限于代码贡献,而是参与任何有利于 alova 发展的活动都属于贡献 alova,具体包括以下 13 项,但不局限于这些:

  1. 在项目中使用 alova
  2. 为 alova 点星
  3. 报告 bug
  4. 提供新特性想法
  5. 贡献代码
  6. 基于 alova 编写适配器和策略库
  7. 参与社区交流、PR review
  8. 编写 demo
  9. 更正或编写文档
  10. 翻译文档
  11. 在社交平台发布有利于 alova 发展的文章、视频等信息
  12. 项目合作
  13. 项目捐赠

以及你能想到的其他正向发展的活动

有效的贡献将为你赢得一定的 alova 社区名望。在参与贡献前,请务必详细阅读 贡献指南,以保证你的有效贡献。

Changelog

前往查看

Contributors

LICENSE

MIT