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

@tuimedia/bug-tracker-widget

v0.6.1

Published

A self-contained [Lit](https://lit.dev/) web component that adds a floating bug reporting widget to any web app. Framework-agnostic — works with Vue, React, plain HTML, or anything else.

Downloads

1,072

Readme

@tuimedia/bug-tracker-widget

A self-contained Lit web component that adds a floating bug reporting widget to any web app. Framework-agnostic — works with Vue, React, plain HTML, or anything else.

Features:

  • Report an issue form (title, steps, expected/actual behaviour, page URL, screenshots)
  • My issues list with pagination and ticket detail view
  • Screenshot upload via S3 presigned URLs
  • Optional Sentry integration
  • Persists form state in localStorage

Prerequisites

The widget proxies all requests through your app's backend. You'll need:

  1. A running bug tracker API
  2. tuimedia/bug-tracker-client-bundle wired into your Symfony app

1. Backend — install the client bundle

The bundle registers proxy routes at /api/feedback/*, enforces role-based access, and prevents reporterEmail spoofing by overwriting it with the authenticated user's identity server-side.

Install via Composer

composer require tuimedia/bug-tracker-client-bundle

Register the bundle

// config/bundles.php
return [
    // ...
    Tui\BugTrackerBundle\TuiBugTrackerBundle::class => ['all' => true],
];

Mount the routes

# config/routes/bug_tracker.yaml
tui_bug_tracker:
    resource: '@TuiBugTrackerBundle/config/routes.yaml'
    prefix: /api/feedback

Configure

# config/packages/tui_bug_tracker.yaml
tui_bug_tracker:
    base_url: '%env(BUG_TRACKER_BASE_URL)%'
    api_key: '%env(BUG_TRACKER_API_KEY)%'
    required_role: ROLE_ADMIN   # or ROLE_FEEDBACK, etc.
BUG_TRACKER_BASE_URL=https://bug-tracker.example.com
BUG_TRACKER_API_KEY=your-api-key

2. Frontend — install the widget

Install

pnpm add @tuimedia/bug-tracker-widget
# or
npm install @tuimedia/bug-tracker-widget

Add to your app

Option A — import in your JS entry point (recommended for Vite projects)

// main.js / main.ts
import '@tuimedia/bug-tracker-widget'

Then add the element wherever you want it rendered, passing the current user's details as attributes. Control visibility however your app handles auth — the widget always renders when present in the DOM:

<bug-tracker-widget
  reporter-email="[email protected]"
  reporter-name="Jane Smith"
></bug-tracker-widget>

In Vue, tell the compiler to treat it as a native custom element. Without this, Vue will warn at runtime that bug-tracker-widget is an unknown component — the widget will still work, but the warning appears because Vue's template compiler tries to resolve it as a Vue component before the custom element registry is checked:

// vite.config.js
vue({
  template: {
    compilerOptions: {
      isCustomElement: tag => tag === 'bug-tracker-widget',
    },
  },
})

A full Vue example:

<bug-tracker-widget
  v-if="user?.isAdmin"
  :reporter-email="user.email"
  :reporter-name="user.displayName"
></bug-tracker-widget>

For Quasar, set isCustomElement in quasar.config.js:

viteVuePluginOptions: {
  template: {
    compilerOptions: {
      isCustomElement: (tag) => tag === 'bug-tracker-widget',
    },
  },
},

Option B — script tag (plain HTML / no bundler)

<script type="module" src="/path/to/bug-tracker-widget.js"></script>
<bug-tracker-widget reporter-email="[email protected]" reporter-name="Jane Smith"></bug-tracker-widget>

Attributes

| Attribute | Required | Description | |---|---|---| | reporter-email | No | Sent as reporterEmail on submission. The backend also overwrites this server-side as a spoofing guard. | | reporter-name | No | Sent as reporterName on submission. |

Sentry integration (optional)

If you use Sentry, expose it on window after initialising — the widget will pick it up automatically and link submitted reports to a Sentry event:

import * as Sentry from '@sentry/vue' // or @sentry/browser, etc.

Sentry.init({ /* ... */ })

window.Sentry = Sentry

API reference

All requests go through your Symfony app at /api/feedback/*. See the client bundle README for full details. Key endpoints:

| Method | Path | Description | |---|---|---| | POST | /api/feedback/public/tickets | Submit a ticket | | GET | /api/feedback/public/tickets/mine | List the current user's tickets | | GET | /api/feedback/public/tickets/mine/:id | Get a single ticket | | POST | /api/feedback/public/attachments/presign | Get a presigned S3 upload URL | | GET | /api/feedback/public/attachments/mine/:id | Retrieve an attachment (proxied redirect to S3) |


Publishing a new version

Bump the version in package.json, commit, then tag:

git tag v1.2.3
git push origin v1.2.3

The GitHub Actions workflow publishes automatically on tag push.