
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@gun-vue/composables
Advanced tools
A Composition API `use` functions set for Gun.js and Vue 3 reactivity system
A Composition API use
functions set for Gun.js and Vue 3 reactivity system
It's just the beginning and not all the functions are reliably implemented yet. So you're welcome to collaborate on existing and new features of the library.
gun.user()
system managementcolor-hash
interface to generate colors for hashes and pubs... and more!
And there's more!
READ FULL DOCUMENTATION ONLINE
npm i @gun-vue/composables
import { useAccount } from "@gun-vue/composables";
const { account, auth, leave } = useAccount();
<div v-for="(data,field) in account.profile" :key="field">
{{ field }} - {{ data }}
</div>
Gun-Vue is client-side only and it may throw errors being executed during the SSG/SSR build process. One way to deal with it is to make the your GUN-enabled components asynchronous.
<script setup async>
const { useAccount } = await import("@gun-vue/composables");
const { account } = useAccount();
</script>
<template>
<div>{{ account.profile?.name }}</div>
</template>
<ClientOnly>
<Suspense>
<YourComponent />
</Suspense>
</ClientOnly>
This should prevent any Gun-Vue related code from running during build stage.
FAQs
Unknown package
The npm package @gun-vue/composables receives a total of 120 weekly downloads. As such, @gun-vue/composables popularity was classified as not popular.
We found that @gun-vue/composables demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.