Skip to content

This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.

EngineConfig

Defined in: packages/engine/src/constants/Configuration.ts:494

Complete engine configuration.

Every field has a default in DEFAULT_CONFIG. To customize, pass a Partial<EngineConfig> when constructing ExpressionEngine. Only the sections/fields you supply are overridden; all others use their defaults.

import { ExpressionEngine } from "solve-js";
const engine = new ExpressionEngine({ config: {
validation: {
maxExpressionLength: 1000,
maxComplexity: 200,
},
// date, performance, vm, worker, diagnostic all use defaults
} });
readonly backgroundRefresh: BackgroundRefreshConfig;

Defined in: packages/engine/src/constants/Configuration.ts:508

Proactive background refresh of live async values


readonly date: DateConfig;

Defined in: packages/engine/src/constants/Configuration.ts:496

Date/time expression evaluation bounds and formatting


readonly diagnostic: DiagnosticConfig;

Defined in: packages/engine/src/constants/Configuration.ts:506

Diagnostic pipeline configuration


readonly network: NetworkConfig;

Defined in: packages/engine/src/constants/Configuration.ts:510

Whether live data may be fetched at all. See NetworkConfig.


readonly performance: PerformanceConfig;

Defined in: packages/engine/src/constants/Configuration.ts:498

Performance budgets and cache sizing


readonly validation: ValidationConfig;

Defined in: packages/engine/src/constants/Configuration.ts:500

Safety limits for expression complexity


readonly vm: VMConfig;

Defined in: packages/engine/src/constants/Configuration.ts:502

Internal bytecode VM configuration


readonly worker: WorkerConfig;

Defined in: packages/engine/src/constants/Configuration.ts:504

Parallel worker pool configuration