{"id":13929971,"url":"https://github.com/sjones6/vue-gun","last_synced_at":"2025-07-19T12:31:07.670Z","repository":{"id":65519336,"uuid":"87675337","full_name":"sjones6/vue-gun","owner":"sjones6","description":"A Vue plugin to add Gun integration","archived":false,"fork":false,"pushed_at":"2018-07-17T15:59:31.000Z","size":5,"stargazers_count":89,"open_issues_count":0,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-07T13:55:21.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/sjones6.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":"2017-04-09T01:43:43.000Z","updated_at":"2023-11-09T19:18:12.000Z","dependencies_parsed_at":"2023-01-27T01:35:12.050Z","dependency_job_id":null,"html_url":"https://github.com/sjones6/vue-gun","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/sjones6%2Fvue-gun","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjones6%2Fvue-gun/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjones6%2Fvue-gun/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sjones6%2Fvue-gun/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sjones6","download_url":"https://codeload.github.com/sjones6/vue-gun/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226607565,"owners_count":17658472,"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":[],"created_at":"2024-08-07T18:02:39.176Z","updated_at":"2024-11-26T19:30:42.032Z","avatar_url":"https://github.com/sjones6.png","language":"JavaScript","funding_links":[],"categories":["others","JavaScript"],"sub_categories":[],"readme":"# Vue-Gun\n\nA plugin to make Gun integration with Vue easier.\n\n## Installation\n\n`npm install vue-gun --save` or `yarn add vue-gun`.\n\nAdd the plugin:\n\n```javascript\nimport VueGun from 'vue-gun';\nVue.use(VueGun, {\n    gun: gun // your gun instance\n});\n```\n\n## Initialize Gun\n\nYou can either pass in a `gun` instance fully initialized, or allow VueGun to initialize it for you:\n\n```javascript\nimport VueGun from 'vue-gun';\nimport SEA from 'gun/sea'; // Required for SEA functions and user authentication \nVue.use(VueGun, {\n    gun: gun // must be passed in at `gun` key\n});\n```\n\nAllow VueGun to handle initialization by passing in options:\n\n```javascript\nimport VueGun from 'vue-gun';\nVue.use(VueGun, {\n    peers: ['someurl.com:9000/gun']\n});\n```\n\n\n## Usage\n\nAccess the `gun` instance with `this.$gun` inside of your Vue instance and components.\n\nFor instance inside your component, you might have this:\n\n```javascript\nmounted: function() {\n        this.$gun.get('some path').map().on((node, key) =\u003e {\n\n            // add results straight to the Vue component state\n            // and get updates when nodes are updated by GUN\n            this.vueState[key] = node;\n        });\n    },\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjones6%2Fvue-gun","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsjones6%2Fvue-gun","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsjones6%2Fvue-gun/lists"}