{"id":49281,"library":"schema-ast","title":"schema-ast","description":"A package providing helper utilities for working with JSON Schema abstract syntax trees (ASTs). Version 2.0.0, last updated and maintained sporadically. It offers functions to parse, transform, and generate JSON Schema documents. Differentiates from other JSON Schema libraries by focusing on low-level AST manipulation rather than validation or code generation. The package is minimal and intended for developers building tooling around JSON Schema. However, it lacks documentation and examples, and appears to be in early or incomplete state.","status":"maintenance","version":"2.0.0","language":"javascript","source_language":"en","source_url":"git://github.com/Raynos/schema-ast","tags":["javascript"],"install":[{"cmd":"npm install schema-ast","lang":"bash","label":"npm"},{"cmd":"yarn add schema-ast","lang":"bash","label":"yarn"},{"cmd":"pnpm add schema-ast","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"This package does not provide an ESM export; use CommonJS require.","wrong":"import schemaAst from 'schema-ast';","symbol":"schemaAst","correct":"const schemaAst = require('schema-ast');"},{"note":"Named export available via destructuring.","wrong":"const parse = require('schema-ast').parse;","symbol":"parse","correct":"const { parse } = require('schema-ast');"}],"quickstart":{"code":"const { parse } = require('schema-ast');\nconst schema = { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" } } };\nconst ast = parse(schema);\nconsole.log(JSON.stringify(ast, null, 2));\n// Output: AST representation of the schema","lang":"javascript","description":"Shows how to parse a JSON Schema object into an AST using the parse function."},"warnings":[{"fix":"Refer to the source code on GitHub for API usage.","message":"Package is poorly documented; examples in README are incomplete (TODO placeholders).","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Check the GitHub repository for any migration notes.","message":"Version 2.0.0 may have breaking changes from earlier versions, but no changelog is provided.","severity":"breaking","affected_versions":"2.0.0"}],"env_vars":null,"search_vec":"'2.0.0':19 'abstract':14 'appear':76 'around':66 'ast':3,17,48 'build':64 'code':54 'develop':63 'differenti':36 'document':35,72 'earli':80 'exampl':74 'focus':43 'function':27 'generat':32,55 'helper':7 'howev':69 'incomplet':82 'intend':61 'javascript':84 'json':12,33,39,67 'lack':71 'last':20 'level':47 'librari':41 'low':46 'low-level':45 'maintain':23 'manipul':49 'minim':59 'offer':26 'packag':5,57 'pars':29 'provid':6 'rather':50 'schema':2,13,34,40,68 'schema-ast':1 'sporad':24 'state':83 'syntax':15 'tool':65 'transform':30 'tree':16 'updat':21 'util':8 'valid':52 'version':18 'work':10","created_at":"2026-06-07T17:00:57.970244+00:00","updated_at":"2026-06-07T17:00:57.970244+00:00","problems":[{"fix":"Run `npm install schema-ast`.","cause":"Package not installed or not in node_modules.","error":"Cannot find module 'schema-ast'"},{"fix":"Use a named export like `const { parse } = require('schema-ast');`","cause":"Attempting to call the default export directly, but the package exports an object with methods.","error":"TypeError: schemaAst is not a function"}],"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":"https://github.com/Raynos/schema-ast","github":"git://github.com/Raynos/schema-ast","docs":null,"changelog":null,"pypi":null,"npm":"schema-ast","openapi_spec":null,"status_page":null,"smithery":null,"categories":["developer-tools"],"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}}