npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@logtide/nuxt

v0.7.2

Published

LogTide SDK integration for Nuxt — auto error capture, request tracing via Nitro hooks

Readme


Features

  • Nuxt Module — zero-config setup via nuxt.config.ts
  • Server-side request tracing via Nitro lifecycle hooks
  • Vue error handler for client-side error capture
  • Navigation tracking as breadcrumbs on the client
  • W3C Trace Context propagation (traceparent)
  • Runtime config injection (server + public)
  • Full TypeScript support with strict types

Installation

npm install @logtide/nuxt
# or
pnpm add @logtide/nuxt
# or
yarn add @logtide/nuxt

Quick Start

Add the module to your nuxt.config.ts:

// nuxt.config.ts
export default defineNuxtConfig({
  modules: ['@logtide/nuxt'],

  logtide: {
    dsn: 'https://[email protected]',
    // Or use apiUrl + apiKey instead of dsn:
    // apiUrl: 'https://your-instance.com',
    // apiKey: 'lp_your_key',
    service: 'my-nuxt-app',
    environment: 'production',
    release: '1.0.0',
  },
});

That's it. The module automatically:

  1. Registers a Nitro server plugin that traces every request and captures errors
  2. Registers a Vue client plugin that captures Vue errors and tracks navigation

Configuration

All options are set in nuxt.config.ts under the logtide key:

| Option | Type | Default | Description | |--------|------|---------|-------------| | dsn | string | required | DSN string: https://lp_KEY@host/PROJECT | | service | string | 'nuxt-app' | Service name for log attribution | | environment | string | — | Environment (e.g. production, staging) | | release | string | — | Release / version identifier | | debug | boolean | false | Enable debug logging |


How It Works

Server (Nitro)

The server plugin hooks into Nitro's lifecycle:

  • request — creates a trace span, extracts incoming traceparent, stores context on the event
  • afterResponse — finishes the span as ok
  • error — finishes the span as error and captures the error with full context

Client (Vue)

The client plugin:

  • Sets up vueApp.config.errorHandler to capture Vue component errors
  • Tracks page:start and page:finish hooks as navigation breadcrumbs
  • Reads configuration from Nuxt runtime config (public)

Runtime Config

The module injects LogTide configuration into Nuxt's runtime config, making it available in both server and client plugins:

// Server-side
const config = useRuntimeConfig().logtide;

// Client-side
const config = useRuntimeConfig().public.logtide;

Type Support

import type { ModuleOptions } from '@logtide/nuxt';

The ModuleOptions interface extends ClientOptions from @logtide/types (excluding integrations and transport which are configured automatically).


License

MIT License - see LICENSE for details.

Links