> ## Documentation Index
> Fetch the complete documentation index at: https://docs.novu.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Vue In-App Notifications Quickstart - Novu Inbox

> Create a Novu account and integrate the Novu Inbox component into your Vue application to display real-time in-app notifications for your subscribers.

Add real-time in-app notifications to Vue using the Novu Inbox component and the `@novu/js` SDK.

> [!NOTE]
>
> This guide uses @novu/js javascript sdk to build the Inbox component in Vue. Novu currently does not support native Vue Inbox component. For Nuxt applications, see the [Nuxt quickstart](https://docs.novu.co/platform/quickstart/nuxt.md).

Add Novu Inbox to my Vue app

# Add Novu Inbox to Vue App

Install `@novu/js`. Mount the Inbox in your header, navbar, or sidebar.

Latest docs: [https://docs.novu.co/platform/quickstart/vue](https://docs.novu.co/platform/quickstart/vue.md)

## Install

```bash theme={null}
npm install @novu/js
```

## Component

```ts theme={null}
import { NovuUI } from '@novu/js/ui';

const novu = new NovuUI({
  options: {
    applicationIdentifier: 'YOUR_APPLICATION_IDENTIFIER',
    subscriber: 'YOUR_SUBSCRIBER_ID',
  },
});

novu.mountComponent({
  name: 'Inbox',
  props: {},
  element: document.getElementById('notification-inbox'),
});
```

## Subscriber ID

Use the app's existing auth system to get a unique user identifier for subscriberId. If no auth system exists, use `YOUR_SUBSCRIBER_ID`.

## Appearance

Extract design tokens from the host app and apply via the appearance configuration. Only set values extracted from the host app's design system.

## Rules

ALWAYS:

* Detect the project's package manager and use it for installation
* Mount the Inbox inline in existing UI - no new pages or wrappers
* Follow Vue conventions (Composition API, existing project patterns)
* Use the existing auth system to source subscriberId when available

NEVER:

* Create wrapper components or new pages just for the inbox
* Add code comments
* Introduce styles not in the host app

## Verify Before Responding

1. Is `@novu/js` installed with the project's package manager?
2. Is the Inbox mounted inline in existing UI?
3. Is subscriberId sourced from the auth system when available?

If any fails, revise.

**Step 1**

### Create a Novu account

[Create a Novu account](https://dashboard.novu.co/auth/sign-up) or [sign in](https://dashboard.novu.co/auth/sign-in) to access the Novu dashboard.

**Step 2**

### Create a Vue application

Run the following command to create a new Vue app:

```package-install theme={null}
npm create vue@latest novu-inbox-vue
```

**Step 3**

### Install `@novu/js`

The [Novu JavaScript SDK](https://docs.novu.co/platform/sdks/javascript.md) gives you access to the Inbox component.

Run the following command to install the SDK:

```package-install theme={null}
npm install @novu/js
```

**Step 4**

### Add the Inbox component

Create the `src/components/NovuInbox.vue` file to add the Inbox component passing applicationIdentifier (The application identifier is a unique identifier for your application. You can find it in the Novu Dashboard under the API keys page.) and subscriberId (The subscriber ID is the unique identifier for the user in your application, typically the user's id in your database.):

> [!NOTE]
>
> Explore the full `vue-inbox` example in the [Novu examples repository](https://github.com/novuhq/novu).

If you're signed in to your Novu account, then the applicationIdentifier (The application identifier is a unique identifier for your application. You can find it in the Novu Dashboard under the API keys page.) and subscriberId (The subscriber ID is the unique identifier for the user in your application, typically the user's id in your database.) are automatically entered in the code sample above. Otherwise, you can manually retrieve them:

* `applicationIdentifier` - In the Novu dashboard, click API Keys, and then locate your unique Application Identifier.
* `subscriberId` - This represents a user in your system (typically the user's ID in your database). For quick start purposes, an auto-generated subscriberId is provided for your Dashboard user.

> [!NOTE]
>
> If you pass a `subscriberId` that does not exist yet, Novu will automatically create a new subscriber with that ID.

**Step 5**

### Add the Inbox component to your application

Import and use the `NovuInbox` component in `src/App.vue` file:

```vue title="src/App.vue" theme={null}
<script setup lang="ts">

</script>

<template>
  <NovuInbox />
</template>
```

**Step 6**

### Run Your Application

Start your development server:

```package-install theme={null}
npm run start
```

Once the application is running, a bell icon will appear on the top left side of the screen. Clicking it opens the notification inbox UI.

Currently, there are no notifications. Let's trigger one!

**Step 7**

### Trigger your first notification

In this step, you'll create a simple workflow to send your first notification via the Inbox component. Follow these steps to set up and trigger a workflow from your Novu dashboard.

1. Go to your [Novu dashboard](https://dashboard-v2.novu.co/auth/sign-in).
2. In the sidebar, click **Workflows**.
3. Click **Create Workflow**. Enter a name for your workflow (e.g., "Welcome Notification").
4. Click **Create Workflow** to save it.
5. Click the **Add Step** icon in the workflow editor and then select **In-App** as the step type.
6. In the In-App template editor, enter the following:

* **Subject**: "Welcome to Novu"
* **Body**: "Hello, world! "

7. Once you've added the subject and body, close the editor.
8. Click **Trigger**.
9. Click **Test Workflow**.

**Step 8**

### View the notification in your app

Go back to your Vue app, then click the bell icon.

You should see the notification you just sent from Novu! 🎉

## Next steps

> [card] [Javascript SDK API Reference](https://docs.novu.co/platform/sdks/javascript.md)
>
> Explore JavaScript SDK API reference for more advanced use cases.

> [card] [Build Workflow](https://docs.novu.co/platform/workflow.md)
>
> Design and manage advanced notification workflows.

> [card] [Multi Tenancy](https://docs.novu.co/platform/concepts/tenants.md)
>
> Manage multiple tenants within an organization.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.