🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@blahai/schema

Package Overview
Dependencies
Maintainers
0
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blahai/schema

JSON schema and validator for blah.json configuration files

0.4.0
latest
npm
Version published
Weekly downloads
6
-85.37%
Maintainers
0
Weekly downloads
 
Created
Source

@blahai/schema

JSON Schema and validator for blah.json configuration files. This package provides tools to validate your blah.json configurations and ensure they follow the correct structure.

Installation

npm install @blahai/schema

Usage

import { BlahValidator } from "@blahai/schema";

const validator = new BlahValidator();

const config = {
  name: "my-blah-manifest",
  version: "1.0.0",
  // ... rest of your config
};

const result = validator.validate(config);
if (result.valid) {
  console.log("Configuration is valid!");
} else {
  console.error("Validation errors:", result.errors);
}

Schema Structure

A valid blah.json configuration must include:

  • name: Name of your blah manifest
  • version: Version of your manifest

Optional fields include:

  • alias: Name used when tools are listed
  • description: Description of your manifest
  • env: Environment variables
  • tools: Array of tool configurations
  • flows: Array of flow configurations
  • prompts: Reserved for future use
  • resources: Reserved for future use
  • tags: Array of string tags
  • config: Additional configuration options

See the example configuration for a complete example.

License

MIT

FAQs

Package last updated on 18 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts