What is this?
vue-resource is the HTTP client plugin for Vue.js: it adds services for making web requests over XMLHttpRequest or JSONP and handling the responses inside a Vue app.
Is it a standalone HTTP client or a plugin I add to my Vue app?
A plugin for Vue.js — you register it inside an existing Vue project rather than using it on its own. It is a compact 14KB library (5.3KB gzipped).
How do I add it to my project?
Install it with yarn or npm, or skip the bundler and include it from a CDN — it is published on jsdelivr, unpkg and cdnjs.
Which versions of Vue does it work with?
Only Vue itself is required: the plugin supports Vue 1.0 and Vue 2.0, and was never extended to Vue 3.
Is it still a good pick for a new project?
No — the repository is archived, so the project is deprecated and receives no further updates. It is only an option for existing Vue 1.x/2.x codebases.
Which browsers can it run in?
It runs in the browser: latest Firefox, Chrome, Safari and Opera, plus IE9 and newer.
What features does it offer beyond plain requests?
Requests work with the Promise API, URLs can be built with URI Templates, and you can attach interceptors to process requests and responses on the way through.
Can I use it in commercial projects?
Yes — vue-resource is MIT-licensed, so it is free to use, modify and ship, including in commercial applications.
My Vue 2 app already uses it — should I remove it?
No need — existing apps keep working, but the archived repo means no new releases, fixes or security updates, so it is a dead end long term.
What are similar projects?
q, fetch, vue-router, material, Respond, superagent, codemirror5, vuex
Which topics is it in?
legacy, http-client, vuejs, async, http, javascript-library, vue, deprecated, browser, developers, web-development, free