@guardian-js/core
v0.0.4
Published
Shared types, interfaces, result schemas and utilities for guardian-js
Downloads
558
Maintainers
Readme
Shared types, result schemas, and utilities for the guardian-js toolkit.
This package is the foundation of the @guardian-js ecosystem. It exports the Result<T> type, error utilities, and all shared interfaces used by the other packages.
Installation
pnpm add @guardian-js/core zodUsage
import { ok, err, guardianError } from '@guardian-js/core';
import type { Result, AgeVerificationProvider, ContentClassificationProvider } from '@guardian-js/core';Part of guardian-js
This package is part of the guardian-js monorepo — a privacy-first, stateless toolkit for age verification and content classification, built for compliance with Brazil's ECA Digital (Law 15,211/2025).
License
Apache 2.0
