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

@plugandtrade/diescheite

v0.1.4

Published

Die Sceite node client library

Readme

NodeJS Die Scheite client

NodeJS Die Scheite client.

Documentation

Overview

This library is implemented with nact, basic actor pattern suuport library. nact has to be started, either outside Die Scheite or by Die Scheite.

Using default nact system:

const DieScheite = require('die-scheite');

const dieSchieteActParent = DieScheite.start(); // Starts a new nact system

Using custom nact system:

const DieScheite = require('die-scheite'),
      { start } = require('nact');

const actSystem = start(); // Start the nact system.
const dieSchieteActParent = DieScheite.start(actSystem);

Publishers

Console Publisher

A simple publisher writing entries as json to stdout is available.

Example:

const publisher = DieScheite.publishers.console.start(actSystem);
const prettyPublisher = DieScheite.publishers.console.start(actSystem, { pretty: true });

It takes the optioanl pretty argument, if set to true it will stringify entries with JSON.stringify(entry, null, 2).

Custom publishers

A publisher is a nact process handling the PUBLISH message type, { type: 'PUBLISH', entry: { /* ... */ } }. The entry contains the entire log entry object. The publish action on a publisher process must respond with a promise, resolving after successful publish, to the sender.

Example publisher writing each log entry to stdout with a pretty option:

const { spawn } = require('nact');

function createPublisher(actorParent, opts) {
  return spawn(
    actorParent,
    (state, msg, ctx) => {
      if (msg.type === 'PUBLISH') {
        let data = JSON.stringify(entry, null, state.pretty ? 2 : null);
        dispatch(
          ctx.sender,
          new Promise((resolve) => setImmediate(() => {
            console.log(data);
            resolve();
          }))
        );
      }
      return state;
    },
    uuid(), // Publisher process id
    { initialState: opts }
  );
}

Logged Action

A full example is found here. The fundamentals are:

const DieScheite = require('../index'),
      { start } = require('nact'),

const actSystem = start();
const logPublisher = DieScheite.publishers.console.start(actSystem);

const ds = DieScheite.generic(
  {
    serviceId: 'example-console',
    serviceVersion: '0.1.0',
    serviceInstanceId: '01'
  },
  logPublisher
);

ds.loggedAction(tracingScope.generic({}), entry => {
    // Do your work here
    entry.info("Some info log...");
    return 1;
  })
  .then({ result } => result === 1); // true

Express

const express = require('express'),
      { start } = require('nact'),
      DieScheite = require('../index');

const actSystem = start();
const logPublisher = DieScheite.publishers.console.start(actSystem, { pretty: true }); // Pretty print json

const app = express();

app.use(DieScheite.express.middleware(
  {
    serviceId: 'example-express',
    serviceVersion: '0.1.0',
    serviceInstanceId: '01',
    publisher,
    ignoredRoutes: [ '/healthcheck', /ignored/ ],
    ignoredHeaders: [ 'date' ],
    censoredHeaders: [ 'user-agent', 'foo' ]
  },
  app,
));

/*
...
...
*/

app.use(DieScheite.express.errorHandler);

app.listen(3000, (...args) => {
  // ...
});

API Documentation

here