Typed NetScript project configuration: schemas, loaders, environment helpers, workspace discovery, diagnostics, and scaffold constants. This page is generated from the package public surface with deno doc (US-2). For the full index of packages and plugins return to the reference overview.
The root entrypoint (@netscript/config) exposes the authoring, loading, environment, workspace, and diagnostic contract. The usual path is to define a project config once with defineConfig in netscript.config.ts, load it at process startup with initConfig, and read the validated NetScriptConfig synchronously with getConfig. Schema-only APIs live on sub-paths so the public root surface does not leak Zod internals:
Scaffold directory, file, and permission constants.
@netscript/config/schema/plugins
./src/schema/plugins/mod.ts
Appsettings plugin-entry validation schemas.
@netscript/config/merge
Folds a plugin-contributed partial config fragment into an already-validated project config.
Symbol
Signature
Description
mergePartialConfig
function mergePartialConfig(base: NetScriptConfig, contribution: PartialConfig): NetScriptConfig
Merge a plugin-contributed partial config into a validated NetScript config.
Symbol
Kind
Description
PartialConfig
interface
Partial NetScript config fragment contributed by a plugin manifest.
AppContributionEntry
type alias
Application config entry accepted in plugin contribution fragments.
ServiceContributionEntry
type alias
Service config entry accepted in plugin contribution fragments.
DatabaseEntry
type alias
Database config entry accepted in plugin contribution fragments.
This entrypoint also re-exports the shared section types (NetScriptConfig, ServiceConfig, DatabaseConfig, the saga/trigger config types, and related shapes) documented under the root Types section.
@netscript/config/paths
Standard scaffold constants consumed by NetScript generators and CLI commands.
Symbol
Signature
Description
PERMISSIONS
const PERMISSIONS: PermissionGroups
Standard Deno permission flags grouped by intent.
SCAFFOLD_DIRS
const SCAFFOLD_DIRS: ScaffoldDirs
Standard scaffold directory names.
SCAFFOLD_FILES
const SCAFFOLD_FILES: ScaffoldFiles
Standard scaffold file names.
Symbol
Kind
Description
PermissionGroups
interface
Standard Deno permission groups used by generated package commands.
ScaffoldDirs
interface
Standard scaffold directory names used by NetScript generators.
ScaffoldFiles
interface
Standard scaffold file names used by NetScript generators.
@netscript/config/schema/plugins
Validation schemas for plugin-backed entries written into generated appsettings.json.