Skip to content

Releases: tfkhdyt/clustrex

v0.0.4

19 Apr 07:36
Compare
Choose a tag to compare

Changelog

All notable changes to this project will be documented in this file.

[0.0.4] - 2025-04-19

Added

  • Initial public release of Clustrex
  • Core functionality for creating and managing worker processes in Node.js
  • TypeScript support with full type definitions
  • Support for graceful shutdown of worker processes
  • Automatic worker process management based on CPU cores
  • Configurable number of worker processes
  • Support for both clustered and non-clustered modes

Features

  • Simple API for creating worker processes
  • Automatic process management
  • Graceful shutdown handling
  • TypeScript support
  • ESM module support
  • Source maps for debugging
  • Minified production builds

Technical Details

  • Built with TypeScript
  • Uses Node.js cluster module
  • Supports ESM modules
  • Includes TypeScript type definitions
  • Source maps for better debugging
  • Minified production builds
  • Zero dependencies (only dev dependencies)

Getting Started

import { createCluster } from "clustrex";

createCluster(
  () => {
    // Your worker process code here
    console.log(`Worker ${process.pid} is running`);
  },
  {
    enable: true, // Enable clustering (default: true)
    numOfWorkers: 4, // Number of workers (default: number of CPU cores)
  }
);

v0.0.3

19 Apr 07:18
Compare
Choose a tag to compare
v0.0.3 Pre-release
Pre-release

Full Changelog: v0.0.2-rc1...v0.0.3

v0.0.2-rc1

19 Apr 06:57
Compare
Choose a tag to compare
v0.0.2-rc1 Pre-release
Pre-release

Full Changelog: v0.0.1-rc2...v0.0.2-rc1

v0.0.1-rc2

19 Apr 06:55
Compare
Choose a tag to compare
v0.0.1-rc2 Pre-release
Pre-release

Full Changelog: v0.0.1-rc1...v0.0.1-rc2

v0.0.1-rc1

19 Apr 06:44
Compare
Choose a tag to compare
v0.0.1-rc1 Pre-release
Pre-release