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

@orkestrel/process

v0.0.9

Published

A typed child-process toolkit with supervised streaming, bounded output capture and termination, detached spawns, and keyed child registries.

Downloads

4,789

Readme

@orkestrel/process

A typed child-process toolkit in tiers. Process supervises one child: stdout is framed into lines under a bounded backlog, stderr is forwarded live and kept as a byte-bounded tail, stdin is a writable channel, and termination is bounded and reports whether the real exit arrived — SIGTERM then SIGKILL after a grace window on a POSIX host, a whole-tree kill on Windows. execute and executeSync buffer a child to completion and settle with an ExecuteResult carrying the captured output, the exit, and failed / expired / aborted / truncated, rejecting with a ProcessError by default or resolving the result when you pass strict: false. ProcessManager is a keyed registry of live children: launch spawns and registers by id, a settled child evicts itself with no polling, and stop terminates one id, a list, or every child. Process and ProcessManager expose typed emitter properties. Process, launch, and execute take an AbortSignal that terminates the child; executeSync and detach take none. No spawn uses a shell, so a metacharacter in an argument is data rather than syntax. The contracts are host-independent and ship from @orkestrel/process; the Node engine ships from @orkestrel/process/server. Part of the @orkestrel line.

Install

npm install @orkestrel/process

Requirements

  • Node.js >= 22.12.0
  • ESM and CommonJS builds
  • TypeScript moduleResolution set to node16, nodenext, or bundler

Usage

import { execute } from '@orkestrel/process/server'

// One-shot: buffer a command to completion and read its output and exit.
const { stdout } = await execute({ file: 'node', arguments: ['--version'] })
console.log(stdout.trim()) // for example, "v22.12.0"
import { createProcess } from '@orkestrel/process/server'

// Supervised: stream a live child's framed lines and stop it on a bounded window.
const child = createProcess({
	command: { file: 'node', arguments: ['worker.js'] },
	workspace: process.cwd(),
	grace: 5_000, // POSIX only: milliseconds between SIGTERM and SIGKILL on stop
})

for await (const line of child.lines) console.log(line)
const exit = await child.exit // { code, signal }
await child.destroy()

Guide

For the full surface — the supervised Process, the execute / executeSync / detach spawns, the keyed ProcessManager, the observable emitter, the ProcessError failure type, and the lower-level helpers — see guides/process.md.

Package

Typed entry points per the exports field in package.json: the host-independent contracts, constants, errors, and isProcessError guard from @orkestrel/process, and the Node engine — Process, execute, executeSync, detach, ProcessManager, and their factories and helpers — from @orkestrel/process/server.

License

MIT © Orkestrel — see LICENSE.