npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@trymirai/uzu-schemas

v0.0.1

Published

TypeScript types and parsers generated from JSON schemas.

Readme

@trymirai/uzu-schemas

TypeScript types and parsers generated from JSON schemas.

Installation

npm install @trymirai/uzu-schemas

Generated Types

This package includes TypeScript types and parsers for the following schemas:

  • Agent
  • Approval
  • Classifier
  • Common
  • End
  • Graph
  • IfElse
  • Pipeline
  • Router
  • SetState
  • Start
  • Subgraph
  • Transform
  • While

Usage

Importing Types and Parsers

import { Agent, parseAgent } from '@trymirai/uzu-schemas';

Validating Data

Each parser function takes unknown data and returns a typed parsing result:

import { parseAgent } from '@trymirai/uzu-schemas';

const data = {
};

const result = parseAgent(data);

if (result.success) {
  console.log('Valid data:', result.data);
} else {
  console.error('Parsing errors:', result.errors);
}

Parsing Result Interface

All parsers return a ParsingResult object with the following structure:

interface ParsingResult {
  success: boolean;
  data?: Agent;
  errors?: ParsingError[];
}

interface ParsingError {
  instancePath: string;
  schemaPath: string;
  keyword: string;
  params: Record<string, unknown>;
  message?: string;
}

Example: Successful Parsing

const validData = {
};

const result = parseAgent(validData);

console.log(result);

Example: Failed Parsing

const invalidData = {
};

const result = parseAgent(invalidData);

console.log(result);

Available Parsers

  • parseAgent(data: unknown): ParsingResult
  • parseApproval(data: unknown): ParsingResult
  • parseClassifier(data: unknown): ParsingResult
  • parseCommon(data: unknown): ParsingResult
  • parseEnd(data: unknown): ParsingResult
  • parseGraph(data: unknown): ParsingResult
  • parseIfElse(data: unknown): ParsingResult
  • parsePipeline(data: unknown): ParsingResult
  • parseRouter(data: unknown): ParsingResult
  • parseSetState(data: unknown): ParsingResult
  • parseStart(data: unknown): ParsingResult
  • parseSubgraph(data: unknown): ParsingResult
  • parseTransform(data: unknown): ParsingResult
  • parseWhile(data: unknown): ParsingResult

TypeScript Support

All types are fully typed with strict TypeScript definitions. Import them directly:

import type { Agent } from '@trymirai/uzu-schemas';
import type { Approval } from '@trymirai/uzu-schemas';
import type { Classifier } from '@trymirai/uzu-schemas';
import type { Common } from '@trymirai/uzu-schemas';
import type { End } from '@trymirai/uzu-schemas';
import type { Graph } from '@trymirai/uzu-schemas';
import type { IfElse } from '@trymirai/uzu-schemas';
import type { Pipeline } from '@trymirai/uzu-schemas';
import type { Router } from '@trymirai/uzu-schemas';
import type { SetState } from '@trymirai/uzu-schemas';
import type { Start } from '@trymirai/uzu-schemas';
import type { Subgraph } from '@trymirai/uzu-schemas';
import type { Transform } from '@trymirai/uzu-schemas';
import type { While } from '@trymirai/uzu-schemas';

Generated with

This package is automatically generated from JSON schemas using json-schema-to-typescript and Ajv.