SkillAgentSearch skills...

Tsd

spins up a server to receive time-series data via tcp streams and then graphs it in the browser via web-sockets

Install / Use

/learn @heapwolf/Tsd
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

NAME

tsd-web(3)

SYNOPSIS

Spin up a quick server to visualize time series data.

USAGE

Deadly simple. just specify the ports you want it to listen on.

var tsd = require('tsd-web');

tsd({
  http: 80,
  tcp: 9099
});

Write some dummy data to the socket (LINE DELIMITED!).

var net = require('net');
var x = 0;
var client = net.connect({ port: 9099 }, function() {

  function write(json) {
    client.write(JSON.stringify(json) + '\n');
  }
  
  setInterval(function() {

    x++;

    write({ key: 'hello',   value: (Math.random() + x) / 50 });
    write({ key: 'goodbye', value: (Math.random() + x) / 20 });
    write({ key: 'ohai', value: 1000 });
    write({ key: 'neat-stuff', value: (Math.random() + x) / 10 });

  }, 150);

});

WUT?

screenshot

TODO

This is a work in progress. Pull requests welcome.

  • Provide a way to flush the cache.
View on GitHub
GitHub Stars55
CategoryDevelopment
Updated29d ago
Forks2

Languages

JavaScript

Security Score

80/100

Audited on Mar 7, 2026

No findings