{"id":13701393,"url":"https://github.com/sadick254/vuepouch","last_synced_at":"2025-07-30T21:33:12.471Z","repository":{"id":65379076,"uuid":"74212631","full_name":"sadick254/vuepouch","owner":"sadick254","description":"A tiny library to enable you work with PouchDB in a Vuejs app. It syncs with remote CouchDB too :-)","archived":false,"fork":false,"pushed_at":"2017-10-20T14:53:11.000Z","size":36,"stargazers_count":56,"open_issues_count":0,"forks_count":9,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-06-29T00:49:30.894Z","etag":null,"topics":["pouchdb","sync","tiny-library","vuejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sadick254.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-19T14:14:31.000Z","updated_at":"2025-02-11T21:32:59.000Z","dependencies_parsed_at":"2023-01-20T08:25:15.138Z","dependency_job_id":null,"html_url":"https://github.com/sadick254/vuepouch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sadick254/vuepouch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadick254%2Fvuepouch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadick254%2Fvuepouch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadick254%2Fvuepouch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadick254%2Fvuepouch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sadick254","download_url":"https://codeload.github.com/sadick254/vuepouch/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sadick254%2Fvuepouch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267945157,"owners_count":24170215,"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","status":"online","status_checked_at":"2025-07-30T02:00:09.044Z","response_time":70,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["pouchdb","sync","tiny-library","vuejs"],"created_at":"2024-08-02T20:01:35.248Z","updated_at":"2025-07-30T21:33:12.156Z","avatar_url":"https://github.com/sadick254.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# Vuepouch\nA tiny library to enable you work with PouchDB in a Vuejs app. It syncs with remote CouchDB too :-)\n## Installation\nInstalling Vuepouch is as easy as including it in your html script tag. Being that it is a vuejs mixin \nit has a dependancy on vuejs. So dont forget to include that.\n``` html\n\u003cscript src=\"vue.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"vuepouch.js\"\u003e\u003c/script\u003e\n```\n## Usage\nVuepouch by default gets auto installed when you include it in your html. You dont \nhave to to `Vue.use(vuepouch)`. \u003cbr\u003e\n\n``` javascript\nvar app = new Vue({\n  el: \"#app\",\n  pouchdb: {\n    uber: {\n      localDB: \"uber\",\n      remoteURL: \"http://127.0.0.1:5984/uber\"\n    }\n  },\n  computed: {\n    drivers () {\n      return this.uber.drivers\n    },\n    passengers () {\n      return this.uber.passengers\n    }\n  }\n})\n```\n## Adding data\n``` javascript\n...\nmethods: {\n  addDriver () {\n    this.$pouchdbRefs.uber.put('drivers',/*your data*/)\n  },\n  addPassenger () {\n    this.$pouchdbRefs.uber.put('passengers', /*your data*/)\n  } \n}\n```\n## Deleting data\n``` javascript\nthis.$pouchdbRefs.uber.remove(/*your data*/)\n```\n## Updating data\n``` javascript\nthis.$pouchdbRefs.uber.update(/*your data*/)\n```\n\n## Displaying data in your html\n``` html\n\u003cdiv id=\"app\"\u003e\n  \u003cul\u003e\n    \u003cli v-for=\"driver in drivers\"\u003e{{driver.name}}\u003c/li\u003e\n  \u003c/ul\u003e\n\u003c/div\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadick254%2Fvuepouch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsadick254%2Fvuepouch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsadick254%2Fvuepouch/lists"}