Skip to content
CAI
Software that uses CAICheck a score

takagiy/validated-extendable.js

53.9

Adequate · 8 November 2026

150

lines of production code

TypeScript

primary language

7

measurements over time

CAI band scale
CAI trend line
CAI lens gauges

What this system is

This system is a JavaScript library called validated-extendable that provides factory functions for creating classes with built-in Zod schema validation. It offers two modes: immutable instances for static data and mutable instances backed by proxies that re-validate state on every property change. The library aims to reduce boilerplate by allowing developers to define extendable classes that automatically enforce schema constraints and support round-trip validation.

Features

Introduce Validated and ValidatedMutable class constructors with Zod integration

This change introduces two new factory functions, \Validated\ and \ValidatedMutable\, which create class constructors that validate input data against a Zod schema. \Validated\ returns immutable instances, while \ValidatedMutable\ returns instances backed by a Proxy that re-validates the entire object state on every property mutation. Both constructors expose a \schema\ property for direct access to the underlying Zod schema and a \z()\ method that returns a Zod type capable of transforming and validating instances back into the class structure. An optional \wrapValue\ option allows wrapping the validated data in a \{ value }\ object, which is automatically applied for primitive types or when explicitly requested.

src · high confidence

Test coverage

Added test coverage for Validated and ValidatedMutable classes

Added a new test suite in test/index.ts that validates the behavior of the Validated and ValidatedMutable class factories. The tests cover basic instantiation, property access, method invocation, and error handling for invalid inputs. They also verify the functionality of the wrapValue option, which exposes the underlying validated object via a .value property, and confirm that the .z() static method correctly parses and validates input data.

test · high confidence

Dependencies

Initial release of validated-extendable v7.3.0

This entry introduces the validated-extendable library (version 7.3.0), a tool for defining classes that extend Zod schemas to reduce boilerplate. The package is configured for dual CommonJS and ESM support via explicit exports, uses SWC for bundling, and lists Zod as a peer dependency.

(dependencies) · high confidence

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

How this codebase got here

Score

  • CAI 53 → 54 (+0.9)
  • Rubric changed (rubric-2026.10.5 → rubric-2026.11.2) — scores are not directly comparable.

Lenses

  • Code Health 76 → 76 (+0.2)
  • Architecture 69 → 69 (+0.0)
  • Maturity 43 → 43 (+0.0)
  • Readiness 55 → 55 (+0.0)
  • Security 67 → 79 (+11.4)

Resolved (5)

  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • Medium CVE: [GHSA redacted] (pnpm-lock.yaml)

New (3)

  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)
  • High CVE: [GHSA redacted] (pnpm-lock.yaml)

Written by cca.canine.dev from the codebase's own history, inside the signed delivery this page is composed from.

Survey your own repository

takagiy/validated-extendable.js was measured the same way every project in this corpus was: the same rubric, at a pinned commit, with the result published in full. Point a surveyor at a repository you know and see whether you agree with it.

About this page

  • The score is its most recent published measurement, taken on 8 November 2026 at a pinned commit. It is not a live figure and does not change until the project is measured again.
  • Measured at commit 63da702ae3db44cd7303dc5f4f0f297f749f39d6 — the exact code this score is about.
  • Scored under rubric-2026.11.2 — the same rubric and the same method as every other entry in this index.
  • Measured by Canine Code Analyzer (cca.canine.dev) using cca measure-2026.11.3+preprod-45ab2cab63de.