Skip to content

stdSystem

stdSystem(): Extension

Defined in: packages/core/src/presets/std-system.ts:70

Compose the default fishbowl system: coreutils, text tools, shell, init, and pkg.

Extension

An Extension containing the full standard system.

stdSystem is the top-level composition factory — reach for it when you want “everything a user would expect in a shell.” It wraps the individual presets via mergeExtensions in this order: coreutils, grep, sed, gawk, diffutils, findutils, curl, jq, procps, utilLinux, bcCalc, jsRepl, nsTools, shell, initSystem, pkgManager. It also seeds DEFAULT_ENV and registers /lib/interp/{js,sh} interpreter shebang targets.

For a minimal image, compose individual presets directly instead of using this factory.

import { Unix, stdSystem } from '@fishnet/core'
import { testRuntime } from '@fishnet/runtime'
const image = await Unix().use(stdSystem()).build()
const sys = await testRuntime().boot(image)