JSPM

@fieldtest/core

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q23527F
  • License MIT

Open source validation toolkit for data pipelines, APIs, and integrations. Built with TypeScript for modern development workflows.

Package Exports

  • @fieldtest/core

Readme

FieldTest Core

FieldTest is a framework-agnostic TypeScript validation toolkit for Markdown and Standard Schema. It helps you catch content errors at build time, with strong TypeScript support and clear diagnostics.

Install

npm install @fieldtest/core
# or
pnpm add @fieldtest/core

Quick Example

import { loadUserSchema, parseMarkdown, validateWithSchema, z } from "@fieldtest/core";

const blogSchema = z.object({
  title: z.string(),
  date: z.string(),
  tags: z.array(z.string()).optional(),
});

const schema = loadUserSchema(blogSchema);
const doc = parseMarkdown(`---\ntitle: Hello\ndate: 2025-01-01\n---\nContent`);
const result = await validateWithSchema(schema, doc.frontmatter, { throwOnError: true });

Features

  • Markdown + frontmatter parsing
  • Standard Schema compatibility
  • Zod-based schema authoring
  • Helpful error formatting
  • Fast validation for large content sets

Documentation

https://docs.matthewhendricks.net/fieldtest/

License

MIT