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

@enfyra/kernel

v2.0.0

Published

Closed-distribution Enfyra kernel runtime

Readme

@enfyra/kernel

Enfyra kernel runtime package.

Dynamic context

The isolated executor snapshots cloneable $ctx keys into the sandbox automatically. Runtime platforms can expose new data fields from their own context factory without changing the kernel, while protected runtime capabilities such as $helpers, $cache, $repos, $socket, $throw, $trigger, $logs, $req, and $res stay kernel-managed. $env is readable inside the sandbox when provided by the host application, but sandbox mutations to $env are not merged back to the host context.

Use

import { createEnfyraKernel } from '@enfyra/kernel';

const kernel = createEnfyraKernel({
  knexService,
  mongoService,
  databaseConfigService,
  runtimeMetricsCollectorService,
  lazyRef,
  getPackageCacheService: () => packageCacheService,
  getPackageCdnLoaderService: () => packageCdnLoaderService,
});

container.register({
  queryBuilderService: asValue(kernel.queryBuilderService),
  isolatedExecutorService: asValue(kernel.isolatedExecutorService),
  executorEngineService: asValue(kernel.executorEngineService),
});

Executor lane tuning

The executor selects up to two runner processes and sizes physical isolate lanes from the effective CPU and memory limits. CPU establishes a baseline of two lanes per effective CPU and a flexible ceiling of four lanes per effective CPU. Available RAM can raise the target from the baseline toward that ceiling. The memory bound uses its raw safe lane count, reserving at most 25% of effective memory for isolate limits, with an absolute ceiling of 128 lanes per runner.

Each physical isolate admits up to six concurrent task contexts. This bounded multiplexing raises I/O throughput without recreating the old all-or-nothing worker failure domain: cancellation, native execution timeout, or isolate OOM disposes the affected isolate and fails only its sibling tasks with ERR_EXECUTOR_ISOLATE_LOST. The runner stays available for new work. This is a kernel policy, not a deployment environment setting.

Run yarn bench:executor-lanes --tasks-per-isolate 1,2,4,8 on the target hardware to sweep physical lane counts and task fan-in using I/O-bound and CPU-bound scripts. Use the smallest fan-in whose I/O queue wait has materially improved while CPU p95, runner RSS, and the isolate failure blast radius remain within the deployment budget.