@agrid/nuxt
Nuxt module for Agrid - Product analytics and feature flags
1,410
| Install | |
|---|---|
npm install @agrid/nuxt |
|
| Latest Version: | 1.1.13 |
| Vue: | 3 |
| License: | MIT |
| Last Updated: | Apr 16, 2026 |
| Links: | GitHub · npm |
Maintainer: advnsoftware
Agrid Nuxt Module
- Configures and uploads sourcemaps for Agrid Error Tracking
- Provides client initialization and auto exception capture for Vue and Nitro
Installation
pnpm add @agrid/nuxt
# or
npm install @agrid/nuxt
# or
yarn add @agrid/nuxt
Usage
// nuxt.config.ts
export default defineNuxtConfig({
modules: ['@agrid/nuxt'],
sourcemap: { client: 'hidden' },
nitro: {
rollupConfig: { output: { sourcemapExcludeSources: false } },
},
agridConfig: {
host: 'YOUR_INGESTION_URL',
publicKey: 'YOUR_PUBLIC_KEY',
clientConfig: {}, // partial Browser SDK config
serverConfig: {}, // Node SDK options (error tracking only)
sourcemaps: {
enabled: true,
envId: process.env.AGRID_ENV_ID!,
project: 'my-application',
version: process.env.AGRID_RELEASE_VERSION,
personalApiKey: process.env.AGRID_PERSONAL_API_KEY!,
},
},
})
Access client in Vue
const { $agrid } = useNuxtApp()
On the server, the initialized client is intended exclusively for error tracking. For other server-side analytics, instantiate a separate client where needed.
Development
pnpm i
pnpm build
Links
- Main repo: https://github.com/agridvn/agrid-js
Related Packages
@piwikpro/nuxt-piwik-pro
Dedicated Piwik PRO library that helps with implementing Piwik PRO Tag Manager a...
9,831
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.1.13 | ^3.0 | MIT | |
| 1.1.12 | ^3.0 | MIT | |
| 1.1.11 | ^3.0 | MIT | |
| 1.1.10 | ^3.0 | MIT | |
| 1.1.9 | ^3.0 | MIT | |
| 1.1.8 | ^3.0 | MIT | |
| 1.1.7 | ^3.0 | MIT | |
| 1.1.6 | ^3.0 | MIT | |
| 1.1.5 | ^3.0 | MIT |