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

@jsilvanus/nudeer

v0.2.0

Published

Generic worker pool and model server infrastructure for embeddings, vision, and other model types. Supports process, thread, socket, and gRPC execution modes.

Readme

nudeer

nudeer Logo: a deer with vector numbers between antlers. Logo generated by ChatGPT. Public Domain.

Generic worker pool and model server infrastructure for Node.js model serving applications.

nudeer (nude + deer = just the core) provides a reusable WorkerPool abstraction that supports multiple execution modes — process isolation, worker threads, Unix sockets, and gRPC — without tying application code to any one transport.

It's the foundation for @jsilvanus/embedeer (text embeddings), @jsilvanus/seedeer (vision), and can be used to build model servers for any task.

Features

  • Pluggable execution modes: process, thread, socket (shared daemon), gRPC (remote/cross-language)
  • Generic engine abstraction: Any module exporting createEngine(options) -> { run(task), dispose() } works
  • Automatic or manual server management: Spawn model servers on demand or connect to pre-running daemons
  • Zero-overhead lazy loading: gRPC dependencies only imported when actually used
  • Multi-server load balancing: Distribute work across multiple servers (e.g., GPU + CPU)
  • First-class TypeScript definitions

Installation

npm install @jsilvanus/nudeer

Usage

import { WorkerPool } from '@jsilvanus/nudeer';

// Create a pool — here using an hypothetical embedding engine
const pool = new WorkerPool(
  './embedding-engine.js',  // path to engine module
  {
    mode: 'process',         // 'process' | 'thread' | 'socket' | 'grpc'
    concurrency: 4,          // number of local workers (for process/thread)
    engineOptions: {         // passed to createEngine()
      modelName: 'bert-base',
    },
  }
);

await pool.initialize();

// Run tasks
const result = await pool.run({ texts: ['hello', 'world'] });

// Clean up
await pool.destroy();

Engine Contract

An engine module must export an async createEngine(options) function:

export async function createEngine(options) {
  // Load model, initialize resources, etc.
  const model = await loadModel(options.modelName);

  return {
    async run(task) {
      // Process task and return result
      return await model.inference(task);
    },

    async dispose() {
      // Optional: cleanup (models, connections, etc.)
      await model.unload();
    },
  };
}

Execution Modes

| Mode | Use case | Isolation | |------|----------|-----------| | process | Default, safest; each worker is an isolated child process | ✅ Per-worker | | thread | Lower memory; workers are worker_threads in the same process | ⚠️ Shared memory | | socket | Shared daemon across multiple OS processes (e.g., web server + background jobs) | ✅ Server crash isolated | | grpc | Remote servers, cross-language clients, multi-server LB with built-in round-robin | ✅ Per-server |

Multi-Server Load Balancing

For socket/gRPC modes, pass a servers option:

const pool = new WorkerPool('./engine.js', {
  mode: 'grpc',
  servers: [
    'gpu-server-1:50051',
    'gpu-server-2:50051',
    'cpu-server:50051',
  ],
});

All three servers receive requests in a round-robin fashion (or with natural weights if using the WorkerPool-level LB approach).

License

MIT