
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
@maveio/metrics
Advanced tools
Our components library uses metrics to analyze video usage. This repo is meant to be transparent and accountable. This is only the client library and is part of Mave Metrics Server
Install the package within your project
npm install @maveio/metrics
import { Metrics } from '@maveio/metrics';
Metrics.config = {
socketPath: 'wss://{your domain here}/socket',
apiKey: '{your api key here}',
};
To collect video events you will need to create an Metrics instance using each HTMLVideoElement or Hls object:
new Metrics(<querySelector | Hls object>, <string>, <optional video query metadata>, <optional session query metadata>)
For instance, you can do this in your page:
const metrics = new Metrics('#my_video', 'label name', {
my_custom_query_id: 1234,
});
metrics.monitor();
When you are using the hls.js library you can use the following code to monitor the video:
const video = document.getElementById('hls_video');
const videoSrc = 'https://test-streams.mux.dev/x36xhzz/x36xhzz.m3u8';
if (Hls.isSupported()) {
const hls = new Hls();
hls.loadSource(videoSrc);
hls.attachMedia(video);
new Metrics(hls, 'Big buck bunny').monitor();
} else if (video.canPlayType('application/vnd.apple.mpegurl')) {
video.src = videoSrc;
new Metrics('#hls_video', 'Big buck bunny').monitor();
}
FAQs
privacy friendly (🇪🇺) video metrics hosted on mave.io
We found that @maveio/metrics demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.