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

@symbo.ls/analyzing

v3.14.782

Published

Browser-side observability SDK for DOMQL apps — pipes @symbo.ls/analyze events (errors, console, network, perf, lifecycle, state) to the analyzed worker. Faro-compatible manual API (captureError / captureMessage / identify / setContext / addMeasurement).

Readme

@symbo.ls/analyzing

Browser-side observability SDK for DOMQL / smbls apps. Streams everything the @symbo.ls/analyze plugin captures — errors, console output, network calls, performance, navigation, lifecycle, state — to the analyzed worker, which persists into Supabase and exposes it for AI-driven session analysis.

Replaces Grafana Faro for symbo.ls apps. Faro-compatible manual API: captureError, captureMessage, identify, setContext, addMeasurement.

Usage

import { create } from 'smbls'
import { createAnalyzing } from '@symbo.ls/analyzing'

const analyzing = createAnalyzing({
  endpoint: 'https://analyzed.symbo.ls/v1/ingest',
  appKey: 'workspace',
  tenantKey: 'symbols-app',
  release: process.env.BUILD_SHA,
  env: 'production',

  // Auth — pick one:
  sdk,                                      // pulls bearer from sdk.tokenManager
  // apiKey: 'sk_…',                        // X-Analyze-Key header
  // getAuth: () => fetchToken(),           // custom resolver

  level: 'info',
  sampleRate: 1,
  redact: [/password/i, /token/i],
  beforeSend: (envelope) => envelope        // scrub or drop
})

create(app, {
  plugins: [analyzing.plugin],
  analyze: analyzing.config
})

// Manual API
analyzing.identify({ userId: 'u_123', traits: { plan: 'pro' } })
analyzing.setContext('feature_flag', 'new-onboarding')
analyzing.setTag('build', 'canary')

try {
  doSomething()
} catch (err) {
  analyzing.captureError(err, { route: '/onboarding' })
}

analyzing.captureMessage('Checkout started', 'info', { cart: 3 })
analyzing.addMeasurement('checkout.tti', 920, 'ms')

Identity and privacy

  • identify() keeps an allowlist: the user id (userId or id) and traits.plan. The e-mail, name, username and every other trait are dropped. A missing id, or an e-mail where the id should be, leaves the session anonymous — there is no fallback to the e-mail.
  • setContext() refuses personal-data keys (e-mail, phone, address, names, IP, tokens …) and e-mail-shaped values, because it writes into the same traits bag every envelope carries.
  • Public mode (bootAnalyzing, the published-site tracker) identifies nobody on its own. It does not read a site's own login (no sb-*-auth-token scan). A visitor is the first-party visitor id (smbls_vid) only; client.visitorId returns it (or null).

Public page API — window.SymbolsAnalytics

bootAnalyzing installs one frozen handle (version 2) on every page the tracker runs on. Page code is untrusted input:

SymbolsAnalytics.capture('add_to_cart', { productId: 'p1', quantity: 1 })   // → true | false
SymbolsAnalytics.capture('funnel.ask', { surface: 'landing', page: '/', intent: 'crm' })
SymbolsAnalytics.capture('funnel.alias', { from: svid })   // the other origin's visitor id
SymbolsAnalytics.visitorId                                  // this page's visitor id, read-only (or null)
  • Names — an allowlist: the commerce events (view_item, add_to_cart, begin_checkout, purchase), the sign-up funnel stages a client emits (funnel.ask, funnel.answer, funnel.blueprint, funnel.make_real, funnel.signup, funnel.signup_error, funnel.workspace_ready, funnel.provision_error) and funnel.alias. The server-truth stages (funnel.arrived, funnel.activated, funnel.paid) and the Fly Worker's funnel.lead are refused.
  • Data — a flat object of scalars: ≤ 16 keys, ≤ 2 KB, strings cut at 200 chars; nested values dropped; personal-data keys and e-mail-shaped values dropped.
  • funnel.alias — exactly { from }: an opaque id (8–64 letters, digits, _, -) that is not the page's own; refused when the page has no visitor id; one per page load.
  • Volume — at most 100 accepted events per page load; the stub's pre-boot queue (≤ 50 calls) drains in order into the same session.
  • visitorId exists only on the real handle (after the bundle loads); read it when you need it (a click, a sign-up), not at page load.

What gets captured

By default, the remote preset enables:

| Category | Notes | |-------------|-------------------------------------------------------------------------| | errors | window.onerror, unhandledrejection, DOMQL lifecycle throws | | warnings | console.warn + sentinel framework warnings | | console | log / warn / error / debug — args safely stringified | | performance | LCP, CLS, longtask, paint, first-input, custom measurements | | navigation | router transitions | | viewport | resize, orientationchange, visibilitychange |

Opt in via capture: { … } overrides. Sensitive categories (pointer, keyboard, forms, scroll) stay off in the remote preset by design.

Network capture (window.fetch + XMLHttpRequest + smbls fetch plugin events) is off by default — the analyzed server discards un-opted-in logType='network' envelopes at ingest (server cd64446f), so shipping them was wasted client CPU + egress. Re-enable with the same levers the server honors: debug: true (restores traces end-to-end — every envelope stamps app.debug, the server's per-envelope opt-in) or capture: { network: true } / runtime setNetworkCapture(true) (the client half of the per-workspace Organization.settings.analyzedNetworkCapture opt-in).

Log type classification

Every event is tagged with log_type ∈ bug | network | log | verbose before shipping. The server re-runs the classifier on ingest (never trust the client) but the client hint lets dashboards stream a single column without joins.

| Rule | log_type | |--------------------------------------------|-----------| | level === 'error' or type === 'error' | bug | | type === 'network' | network | | type === 'console' + level ≥ warn | bug | | type === 'console' + level ≤ info | log | | level === 'warn' | bug | | level === 'info' | log | | else (debug, trace, lifecycle, state, …) | verbose |