mhujer/javascript-error-handler-bundle
A Symfony bundle that integrates a JavaScript error handler, capturing client-side JavaScript errors and reporting them to your backend so they can be logged and monitored alongside server-side issues.
Premise correction (blocking): This is a Symfony bundle, not a Laravel package. It ships a Symfony Bundle subclass, DI container wiring, and Twig resources — none of which resolve in a Laravel application. There is no service provider, no facade, no publishable config. Any roadmap item that assumes "composer require and go" is mis-scoped and should be corrected before it enters a sprint. From a TPM standpoint this is the single most important finding: the artifact is not adoptable as a dependency, so the decision to be made is "what do we build or buy instead," not "do we install this."
Architecture fit
window.onerror hook that converts uncaught JS exceptions into visible alert() dialogs. That pattern is framework-agnostic and can be re-hosted in a Laravel app's Vite asset pipeline in under a day.Integration feasibility
Technical risk (high)
alert() blocks the main thread and is user-hostile. In an error loop it becomes an outage amplifier — the reporting mechanism makes the incident worse.script-src without nonces/hashes — a common enterprise blocker.window.onerror misses cross-origin sanitized errors ("Script error."), resource load failures, and promise rejections. Any signal we get will be misleadingly sparse, which is worse than no signal if someone makes a decision on it.Key questions for the requester
sendBeacon endpoint. This package serves neither well.Stack fit
APP_DEBUG/env flags for gating, and an optional rate-limited route or vendor SDK as the sink.resources/js/app.js, guarded by an environment flag, with alert() replaced by console.error (dev) or navigator.sendBeacon to a rate-limited endpoint / vendor SDK (prod).Migration path
composer require. Confirm the package resolves against nothing in our lockfile and stop there — document this so the question doesn't recur.unhandledrejection handling the original lacks.Compatibility
Sequencing
Maintenance
Support
Scaling
sendBeacon/queue path are mandatory, not nice-to-haves.alert() scales negatively: the more users and the more errors, the worse the experience. It is structurally unsuitable for production at any scale above "one developer on localhost."Failure modes
unhandledrejection promise failures escape window.onerror. Partial coverage creates false confidence, which is a worse outcome than an acknowledged gap.Ramp-up
How can I help you explore Laravel packages today?