Home/Documentation/Core Package

Core Installation

Install

Install Core when you are writing shared policies, validating plain TypeScript objects, or building framework adapter code.

npm install @validation-rules-engine/core

Application forms usually install @validation-rules-engine/angular or @validation-rules-engine/react; those adapters depend on Core and expose framework-specific lifecycle APIs. For a live Core-only UI, open the Vanilla Showcase or follow the Vanilla Quick Start.

Imports

import {
  ValidatorHelper,
  type ValidationPolicy,
  type Validator,
  type ValidationModel,
  type ValidationResult
} from '@validation-rules-engine/core';

Runtime boundaries

Core has no Angular, React, DOM, or router dependency. It validates plain objects and records validation metadata on the evaluated model.

Verify

const helper = new ValidatorHelper();
const validators = [helper.validateFor('email').isEmail('Invalid email')];

console.log(validators[0].propertyName);

If TypeScript resolves ValidatorHelper and ValidationPolicy, the package is installed correctly.

Continue in the live platform

Open Vanilla JS ShowcaseRun the same Core policies with framework-free TypeScript forms →Open PortalLaunch documentation and every showcase from one place →