@enfyra/kernel
v1.1.30
Published
Closed-distribution Enfyra kernel runtime
Downloads
2,773
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),
});