{"id":47782,"library":"gpzu-schema","title":"gpzu-schema","description":"gpzu-schema is a UMD JavaScript library (v1.0.20) for schema validation and data processing. It ships with TypeScript type definitions, enabling type-safe usage in TypeScript projects. The library is designed for environments that support UMD modules, including browsers and Node.js. Key differentiators: lightweight, zero dependencies, and straightforward API. The release cadence appears to be ad-hoc based on the single version available.","status":"active","version":"1.0.20","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","typescript"],"install":[{"cmd":"npm install gpzu-schema","lang":"bash","label":"npm"},{"cmd":"yarn add gpzu-schema","lang":"bash","label":"yarn"},{"cmd":"pnpm add gpzu-schema","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"Library ships TypeScript types; use named import for ESM. CommonJS require may fail in some bundlers.","wrong":"const GpzuSchema = require('gpzu-schema')","symbol":"GpzuSchema","correct":"import { GpzuSchema } from 'gpzu-schema'"},{"note":"Default export is not available; must use named import.","wrong":"import validate from 'gpzu-schema'","symbol":"validate","correct":"import { validate } from 'gpzu-schema'"},{"note":"TypeScript type import for type definitions.","symbol":"Schema","correct":"import type { Schema } from 'gpzu-schema'"}],"quickstart":{"code":"import { GpzuSchema, validate } from 'gpzu-schema';\n\nconst schema = new GpzuSchema({ type: 'string', minLength: 1 });\nconst result = validate(schema, 'hello world');\nif (result.valid) {\n  console.log('Valid:', result.value);\n} else {\n  console.error('Invalid:', result.errors);\n}","lang":"typescript","description":"Create a schema instance and validate a string value, handling success and error cases."},"warnings":[{"fix":"Lock to specific version if stability required.","message":"Library is in early release (v1.0.x). API may change without major version bump.","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Consult TypeScript declarations or examine source code directly.","message":"No README or documentation available. Functionality must be inferred from source or TypeScript types.","severity":"gotcha","affected_versions":">=1.0.0"}],"env_vars":null,"search_vec":"'ad':62 'ad-hoc':61 'api':54 'appear':58 'avail':69 'base':64 'browser':44 'cadenc':57 'data':17 'definit':24 'depend':51 'design':36 'differenti':48 'enabl':25 'environ':38 'gpzu':2,5 'gpzu-schema':1,4 'hoc':63 'includ':43 'javascript':10,70 'key':47 'librari':11,34 'lightweight':49 'modul':42 'node.js':46 'process':18 'project':32 'releas':56 'safe':28 'schema':3,6,14 'ship':20 'singl':67 'straightforward':53 'support':40 'type':23,27 'type-saf':26 'typescript':22,31,71 'umd':9,41 'usag':29 'v1.0.20':12 'valid':15 'version':68 'zero':50","created_at":"2026-06-07T16:53:17.384285+00:00","updated_at":"2026-06-07T16:53:17.384285+00:00","problems":[{"fix":"Use import { GpzuSchema } from 'gpzu-schema'","cause":"Importing incorrectly, likely using default import instead of named import.","error":"TypeError: gpzu_schema_1.GpzuSchema is not a constructor"},{"fix":"Run npm install gpzu-schema","cause":"Package not installed or not present in node_modules.","error":"Cannot find module 'gpzu-schema'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":null,"github":null,"docs":null,"changelog":null,"pypi":null,"npm":"gpzu-schema","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-07","next_check":"2026-09-05","install_tag":null}}