schema-shield
CommunitySecure, stack-safe JSON Schema validation.
AuthorMasquerade-Circus
Version1.0.0
Installs0
System Documentation
What problem does it solve?
SchemaShield provides a CSP-safe, zero-runtime-code validator for JSON Schema, designed to prevent prototype pollution and remote references, while ensuring predictable performance in strict environments.
Core Features & Use Cases
- CSP-compliant, no eval or code generation, making it safe for strict environments and CSP policies.
- Stack-safe, with a flat interpreter to prevent recursion-related stack overflows in deeply nested payloads.
- Zero runtime dependencies and native support for runtime object validation (including class instances) with rich error reporting.
- Edge/Serverless ready and suitable for Cloudflare Workers, Vercel Edge Functions, Deno, or Bun environments.
- Immutable mode and configurable fail-fast behavior, plus extensibility via custom types, formats, and keywords.
Quick Start
Install SchemaShield, import it, and compile a schema with new SchemaShield().compile(schema) to validate data.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: schema-shield Download link: https://github.com/Masquerade-Circus/schema-shield/archive/main.zip#schema-shield Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.