ChronoGrid

A deterministic calendar compiler and temporal rule engine for TypeScript.

ChronoGrid separates calendar arithmetic from presentation so the same canonical month model can be reused across web, print, PDF, JSON, and other renderers.

Architecture

Calendar Specification
        ↓
Normalization
        ↓
Temporal Rule Engine
        ↓
Canonical Calendar IR
        ↓
Invariant Validation
        ↓
HTML / JSON / PRINT / SVG

Example

const calendar = compileMonth({
  year: 2027,
  month: 3,
  weekStartsOn: 1
});

Core principles