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

@allstak/vue

v0.2.0

Published

Official AllStak SDK for Vue 3 — error tracking, structured logs, distributed tracing, and observability for Vue applications.

Readme

@allstak/vue

npm License: MIT

Official AllStak SDK for Vue 3. Captures uncaught exceptions, structured logs, navigation spans, HTTP requests, and web vitals — with first-class composition-API ergonomics.

Install

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

vue@^3.2 is a peer dependency; vue-router@^4 is optional.

Setup

import { createApp } from 'vue';
import { AllStakPlugin } from '@allstak/vue';
import App from './App.vue';

createApp(App)
  .use(AllStakPlugin, {
    apiKey: import.meta.env.VITE_ALLSTAK_API_KEY,
    environment: import.meta.env.MODE,
    release: import.meta.env.VITE_APP_VERSION,
  })
  .mount('#app');

That single use(AllStakPlugin, …) wires:

  • app.config.errorHandler — every uncaught render/lifecycle error becomes an Issue
  • A $allstak injection key + globalProperties.$allstak
  • Auto release-health sessions
  • The full @allstak/js ingest pipeline (HTTP, db, logs, breadcrumbs, web-vitals)

Composition API

import { useAllStak, useAllStakUser, useAllStakSpan } from '@allstak/vue';

const allstak = useAllStak();
allstak.captureException(new Error('payment declined'));

// Bind a user for the lifetime of this component (cleared on unmount)
useAllStakUser({ id: currentUser.id, email: currentUser.email });

// Open a span; finished automatically on unmount
const span = useAllStakSpan({ op: 'checkout.review', description: 'review-cart' });
span.setTag('cart_size', items.value.length);

vue-router

Navigation instrumentation is automatic. Register vue-router before the plugin (or pass the router via the router option) and every route change becomes a navigation span + breadcrumb — no extra call required:

import { createApp } from 'vue';
import { createRouter, createWebHistory } from 'vue-router';
import { AllStakPlugin } from '@allstak/vue';
import App from './App.vue';

const router = createRouter({ history: createWebHistory(), routes });

createApp(App)
  .use(router)        // register the router first, then…
  .use(AllStakPlugin, { apiKey: import.meta.env.VITE_ALLSTAK_API_KEY })
  .mount('#app');

If the plugin runs before app.use(router), pass the router explicitly:

createApp(App)
  .use(AllStakPlugin, { apiKey: '…', router })
  .use(router)
  .mount('#app');

You can still wire it by hand (e.g. when autoInstrumentRouter: false):

import { installRouterInstrumentation } from '@allstak/vue';

const router = createRouter({ history: createWebHistory(), routes });
installRouterInstrumentation(router);

Auto-instrumentation is on by default and a safe no-op when vue-router isn't installed; set autoInstrumentRouter: false to opt out. Router errors become Issues. Instrumenting the same router twice is a no-op.

Component performance tracing

Opt in to per-component render timing. A span (ui.vue.<operation>, described as Vue <ComponentName>) is opened around each tracked component's lifecycle phase.

import { createApp } from 'vue';
import { AllStakPlugin } from '@allstak/vue';

createApp(App)
  .use(AllStakPlugin, {
    apiKey: import.meta.env.VITE_ALLSTAK_API_KEY,
    tracingOptions: {
      trackComponents: true,      // or a list: ['Checkout', 'Cart']
      hooks: ['mount', 'update'], // default: ['mount']
    },
  })
  .mount('#app');

Or install it standalone on an existing app:

import { installComponentTracing } from '@allstak/vue';

installComponentTracing(app, { trackComponents: ['Dashboard'] });

Error boundary

<script setup>
import { AllStakErrorBoundary } from '@allstak/vue';
</script>

<template>
  <AllStakErrorBoundary>
    <RiskyWidget />
    <template #fallback="{ error }">
      <p>Sorry — something broke. ({{ error?.message }})</p>
    </template>
  </AllStakErrorBoundary>
</template>

Configuration

AllStakPlugin accepts every option that @allstak/js's AllStak.init accepts, plus:

| Option | Default | Purpose | |---|---|---| | attachErrorHandler | true | Install app.config.errorHandler | | attachWarnHandler | false | Install app.config.warnHandler as breadcrumbs | | skipInit | false | Skip the AllStak.init call if you've already done it | | tracingOptions | — | Enable component-render tracing (trackComponents, hooks) |

License

MIT