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

@llevella/signal-trace

v0.1.3

Published

Tiny Canvas 2D time-series line charts for live metrics, dashboards, monitoring and telemetry.

Downloads

238

Readme

SignalTrace

Tiny canvas charts for live signals, with legacy Knockout/AMD support kept intact.

The project started as a tiny graph renderer for memory-constrained interfaces such as network traffic pages on embedded devices. It is now shaped as a small framework-agnostic package for router dashboards, IoT panels, compact admin tools and live operational metrics.

Features

  • Multiple line series on one canvas.
  • Live updates through append(label, values).
  • Bounded history through maxPoints.
  • DOM-free core model in chart-core.js.
  • Canvas renderer with HiDPI/Retina scaling.
  • resize(width, height) for responsive layouts.
  • Fixed or autoscaled Y axis through yMin, yMax, yPadding.
  • Axis formatters, units, gaps and threshold lines.
  • Grid lines, smarter rounded ticks, cursor tooltip and legend toggle.
  • Batched appends through appendMany(), pause/resume and queued flush.
  • JSON/CSV/image export helpers.
  • Theme tokens and accessibility summaries.
  • ESM/CJS package output with TypeScript declarations.
  • Web Component plus thin React, Vue and Svelte adapters.
  • Legacy AMD/Knockout files still available.

Install

SignalTrace is published to npmjs as the primary public registry and mirrored to GitHub Packages.

From npm:

npm install @llevella/signal-trace

From GitHub Packages:

npm config set @llevella:registry https://npm.pkg.github.com
npm install @llevella/signal-trace

Modern Usage

import {create} from '@llevella/signal-trace';

const chart = create('traffic-canvas', 500, 300);

chart.init([], [
	{legend: {id: 'rx', text: 'rx', color: 'green'}},
	{legend: {id: 'tx', text: 'tx', color: 'blue'}}
], {text: 'Traffic'}, {
	maxPoints: 300,
	yMin: 0,
	yUnit: ' Mbps',
	thresholds: [{value: 900, label: 'limit', color: 'orange'}]
});

chart.append('00:01', {rx: 120, tx: 84});
chart.render();

chart.cursorAt(240, 120, {render: true});
chart.toggleSeries('tx', false).render();
console.log(chart.toCSV());

Web Component

<time-series-chart id="traffic" max-points="300" height="280"></time-series-chart>

<script type="module">
	import '@llevella/signal-trace/web-component';

	const chart = document.getElementById('traffic');
	chart.setData([], [
		{legend: {id: 'rx', text: 'rx', color: 'green'}},
		{legend: {id: 'tx', text: 'tx', color: 'blue'}}
	], {text: 'Traffic'}, {yMin: 0, yUnit: ' Mbps'});

	chart.append('00:01', {rx: 120, tx: 84});
</script>

Framework adapters:

  • @llevella/signal-trace/adapters/react
  • @llevella/signal-trace/adapters/vue
  • @llevella/signal-trace/adapters/svelte

Legacy AMD modules:

  • @llevella/signal-trace/legacy/amd/core
  • @llevella/signal-trace/legacy/amd/draw
  • @llevella/signal-trace/legacy/amd/knockout

Project Layout

  • chart-core.js - DOM-free data normalization and plot model.
  • draw.js - Canvas 2D renderer.
  • web-component.mjs - time-series-chart custom element.
  • adapters/ - React, Vue and Svelte integration helpers.
  • dist/ - generated ESM/CJS package output and TypeScript declarations.
  • examples/ - live examples and benchmark page.
  • docs/ - development plan, getting started guide and comparison notes.

Checks

npm run check
npm run test:unit
npm run test:e2e
npm run typecheck
npm run audit:prod
npm pack --dry-run

Documentation

npm run test:e2e includes a browser visual smoke test that checks real canvas pixels in the benchmark example.

Positioning

Use this project when you need a tiny live time-series chart with predictable memory usage and a very small API surface. Use Chart.js, Apache ECharts or uPlot when you need broader chart types, richer interaction systems or a larger ecosystem.