
Security News
PolinRider: North Korea-Linked Supply Chain Campaign Expands Across Open Source Ecosystems
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.
shatter_monitor
Advanced tools
A tiny tool for Site Error & Performance & User Behavior Monitor.
It is a shatter monitor tool, but it can be combined to form a complete tool.
There is release @1.0.11.
Specific options information may be viewed in index.ts file
More features(like hooks) in development...
<script src="https://cdn.jsdelivr.net/npm/shatter_monitor@1.0.9/build/index.min.js"></script>
<script>
const { ShatterInit } = shatter
const Shatter = new ShatterInit({
dsn: 'https://your.site.com',
appkey: 'mangotsing',
debug: false,
beforeSendData: () => {
console.log('test')
return true
},
usage: 'all', // or ['ErrorForShatter', 'PerformanceForShatter', 'BehaviorForShatter']
onlyImg: true,
blockConsole: true
});
</script>
In the Vue Project, In addition to the original function, the $report method is also mounted on this
You can use it for your async methods Error Report, like this:
this.$report(params: SendType)
Suggest Vue Project use blockConsole: true, otherwise vue warn will cause repeated errors.
//terminal
npm install --save shatter_monitor
// main.js
import { ShatterErrorVue } from 'shatter_monitor'
// vue 2.x
Vue.use(ShatterErrorVue, {
dsn: 'https://your.site.com',
appkey: 'mangotsing',
debug: false,
beforeSendData: () => {
console.log('test')
return true
},
blockConsole: true
onlyImg: true,
blockTry: true
})
// or vue-next
const app = createApp()
app.use(ShatterErrorVue, {
dsn: 'https://your.site.com',
appkey: 'mangotsing',
debug: false,
beforeSendData: () => {
console.log('test')
return true
},
onlyImg: true,
blockTry: true
})
If your browser support navigator.sendBeacon function, will use it.
Otherwise use Image() to send a get request for monitor.
yarn
yarn watch
cd examples && http-server // 8080
// new terminal
cd examples && http-server // 8081
FAQs
A SDK for monitoring browser errors
We found that shatter_monitor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PolinRider expands across npm, Packagist, Go modules, and Chrome extensions, using hidden loaders to target developer environments.

Security News
Open source attacks are accelerating as AI coding agents pull in dependencies faster, with less human review.

Research
/Security News
Malicious Chrome and Firefox extensions posed as free VPNs while stealing clipboard data through later extension updates.