🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@notifyon/vue

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@notifyon/vue

Vue SDK for NotifyOn

latest
Source
npmnpm
Version
0.1.2
Version published
Maintainers
1
Created
Source

@notifyon/vue

Vue 3 SDK for NotifyOn - Real-time notifications for your Vue applications.

Installation

npm install @notifyon/vue
# or
yarn add @notifyon/vue
# or
pnpm add @notifyon/vue

Usage

Composition API

<template>
  <NotifyOn 
    :public-key="publicKey"
    :user-id="userId"
  />
  <!-- Your app components -->
</template>

<script setup>
import { NotifyOn } from '@notifyon/vue';

const publicKey = 'pk_your_public_key';
const userId = 'user_123';
</script>

Options API

<template>
  <NotifyOn 
    public-key="pk_your_public_key"
    user-id="user_123"
  />
  <!-- Your app components -->
</template>

<script>
import { NotifyOn } from '@notifyon/vue';

export default {
  components: {
    NotifyOn
  }
}
</script>

Global Registration

// main.js
import { createApp } from 'vue';
import { NotifyOn } from '@notifyon/vue';
import App from './App.vue';

const app = createApp(App);
app.component('NotifyOn', NotifyOn);
app.mount('#app');

Props

PropTypeRequiredDescription
public-keyStringYesYour NotifyOn public key
user-idStringYesThe user ID to receive notifications

SSR Support

The component automatically handles server-side rendering in Nuxt.js and other SSR frameworks. It only initializes on the client side.

Nuxt.js Usage

For Nuxt.js applications, wrap the component with <ClientOnly>:

<template>
  <ClientOnly>
    <NotifyOn 
      public-key="pk_your_public_key"
      user-id="user_123"
    />
  </ClientOnly>
</template>

<script setup>
import { NotifyOn } from '@notifyon/vue';
</script>

License

MIT

Keywords

notifyon

FAQs

Package last updated on 02 Sep 2025

Did you know?

Socket

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.

Install

Related posts