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

@errorgap/nuxt

v0.1.0

Published

Nuxt module for Errorgap error tracking (client and server).

Readme

@errorgap/nuxt

Nuxt module for Errorgap. It reports both client (browser / Vue) and server (Nitro) errors to your Errorgap project, wiring @errorgap/browser and @errorgap/node into Nuxt's plugin and Nitro hooks.

Works with Nuxt 3+.

Install

npm install @errorgap/nuxt

Configure

Add the module and your project settings to nuxt.config.ts:

export default defineNuxtConfig({
  modules: ["@errorgap/nuxt"],
  errorgap: {
    endpoint: "https://errorgap.example.com",
    projectSlug: "my-project",
    // Ingestion-only key. It can submit notices but not read data, so — like a
    // Sentry DSN — it is included in the client bundle for browser reporting.
    apiKey: process.env.ERRORGAP_API_KEY,
    environment: process.env.NODE_ENV,
    release: process.env.NUXT_APP_VERSION,
  },
});

Connection settings can also be provided through runtimeConfig (handy for per-environment secrets):

export default defineNuxtConfig({
  modules: ["@errorgap/nuxt"],
  runtimeConfig: {
    errorgap: { apiKey: "" }, // NUXT_ERRORGAP_API_KEY
    public: {
      errorgap: { endpoint: "", projectSlug: "" }, // NUXT_PUBLIC_ERRORGAP_*
    },
  },
});

Once configured, the module automatically reports:

  • Client: Vue render/lifecycle errors (vue:error), fatal app errors (app:error), and — via @errorgap/browser — uncaught window errors and unhandled promise rejections, with source-map-resolved stack traces.
  • Server: every unhandled Nitro request error, with the request method and path as context.

Options

| Option | Default | Notes | |---|---|---| | endpoint | — | Required. Errorgap base URL | | projectSlug | — | Required. | | projectId | — | | | apiKey | — | Ingestion-only key (x-errorgap-project-key); safe in the client bundle | | environment | "production" | | | release | — | | | sampleRate | 1 | Fraction (0..1) of errors reported | | sourceMaps | true | Resolve client frames through source maps | | client | true | Capture browser errors | | server | true | Capture Nitro errors | | captureGlobals | true | Install window/process handlers |

Manual reporting

<script setup lang="ts">
const errorgap = useErrorgap();

async function save() {
  try {
    await risky();
  } catch (error) {
    await errorgap.notify(error, { context: { component: "SaveButton" } });
  }
}
</script>

useErrorgap().notify works in both client and server contexts.

License

MIT.