{"id":15316854,"url":"https://github.com/sunabozu/vue-feathers","last_synced_at":"2025-10-09T02:32:21.479Z","repository":{"id":57395889,"uuid":"67705797","full_name":"sunabozu/vue-feathers","owner":"sunabozu","description":"Integration with the Feathers framework for Vue.js","archived":false,"fork":false,"pushed_at":"2017-10-21T09:27:33.000Z","size":7,"stargazers_count":78,"open_issues_count":5,"forks_count":9,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-01-17T17:08:47.108Z","etag":null,"topics":["feathers","vue"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sunabozu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-09-08T13:32:28.000Z","updated_at":"2021-05-18T11:58:53.000Z","dependencies_parsed_at":"2022-09-03T06:43:36.295Z","dependency_job_id":null,"html_url":"https://github.com/sunabozu/vue-feathers","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunabozu%2Fvue-feathers","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunabozu%2Fvue-feathers/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunabozu%2Fvue-feathers/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sunabozu%2Fvue-feathers/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sunabozu","download_url":"https://codeload.github.com/sunabozu/vue-feathers/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":235785415,"owners_count":19044557,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["feathers","vue"],"created_at":"2024-10-01T08:54:54.157Z","updated_at":"2025-10-09T02:32:21.174Z","avatar_url":"https://github.com/sunabozu.png","language":"JavaScript","funding_links":[],"categories":["Awesome Vue.js [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)","JavaScript","Frontend frameworks","Awesome Vue.js"],"sub_categories":["Libraries \u0026 Plugins","VueJS"],"readme":"# vue-feathers\n\n\u003e [Feathers](http://feathersjs.com/) is a minimalist real-time web framework written in JavaScript. \n\u003e Vue-Feathers is a plugin for Vue.js that integrates it with Feathers.\n\n**NOTE:** It's supposed to be compatible both with Vue 1.x and 2.x. It requires IE9+ or Safari 5+\n\n### Install\n\n``` bash\nnpm install vue-feathers --save\n```\n\n### Usage\n\n``` js\n// Include and set up feathers client\nconst Feathers = require('feathers/client')\nconst hooks = require('feathers-hooks')\nconst authentication = require('feathers-authentication/client')\nconst socketio = require('feathers-socketio/client')\nconst io = require('socket.io-client')\n\nconst socket = io('http://localhost:3030/')\nconst feathers = Feathers()\n.configure(socketio(socket))\n.configure(hooks())\n.configure(authentication({storage: window.localStorage}))\n\n// Include it as a CommonJS module\nconst Vue = require('vue')\nconst vueFeathers = require('vue-feathers')\n\n// And plug it in\nVue.use(vueFeathers, feathers)\n```\n\nNow in every component you get a new property called `$services`, which allows you to interact with all of your Feathers services:\n\n``` js\nthis.$services.messages.find()\n\n// or\n\nthis.$services.messages.create(...)\n```\n\nTo subscribe on the [events](http://docs.feathersjs.com/real-time/events.html) your services generate, you just need to use a separate `feathers` section in your component:\n\n``` js\nexport default {\n  data() {\n    return {\n      ...\n    }\n  },\n\n  methods: {\n    ...\n  }\n\n  feathers: { // here is our section\n    messages: { // here is the subsection for the 'messages' service\n      created(data) {\n        ...\n      },\n\n      updated(data) {\n        ...\n      }\n    }\n  }\n}\n```\n\nVue-feathers does all the clean up before your component is destroyed (using the `removeListener` function).\n\nIn case you need to do something more complex, there is a `$feathers` property for that:\n\n``` js\nthis.$feathers.service('messages').on(...)\n```\n\n### License\n\n[MIT](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunabozu%2Fvue-feathers","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsunabozu%2Fvue-feathers","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsunabozu%2Fvue-feathers/lists"}