{"id":20460946,"url":"https://github.com/ericgj/json-schema-hyper","last_synced_at":"2026-04-21T04:04:30.404Z","repository":{"id":10485416,"uuid":"12664929","full_name":"ericgj/json-schema-hyper","owner":"ericgj","description":"JSON Hyper-Schema module","archived":false,"fork":false,"pushed_at":"2013-11-21T21:21:23.000Z","size":284,"stargazers_count":3,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-09T09:14:13.216Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ericgj.png","metadata":{"files":{"readme":"Readme.md","changelog":"History.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-09-07T13:01:03.000Z","updated_at":"2020-04-21T20:05:46.000Z","dependencies_parsed_at":"2022-07-30T12:18:01.466Z","dependency_job_id":null,"html_url":"https://github.com/ericgj/json-schema-hyper","commit_stats":null,"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"purl":"pkg:github/ericgj/json-schema-hyper","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-hyper","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-hyper/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-hyper/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-hyper/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ericgj","download_url":"https://codeload.github.com/ericgj/json-schema-hyper/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ericgj%2Fjson-schema-hyper/sbom","scorecard":{"id":380298,"data":{"date":"2025-08-11","repo":{"name":"github.com/ericgj/json-schema-hyper","commit":"326294d8fbd30457a82b39a396857b628c0839a6"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-18T15:16:51.886Z","repository_id":10485416,"created_at":"2025-08-18T15:16:51.886Z","updated_at":"2025-08-18T15:16:51.886Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32076295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-21T02:38:07.213Z","status":"ssl_error","status_checked_at":"2026-04-21T02:38:06.559Z","response_time":128,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T12:22:35.767Z","updated_at":"2026-04-21T04:04:30.388Z","avatar_url":"https://github.com/ericgj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# json-schema-hyper\n\n**Please note this library is not ready for production use.**\n\nJSON Hyper-Schema, as specified in the [IETF Draft spec][spec].\n\nThis component extends the behavior of JSON Schema, as implemented in \n[json-schema-core][core], providing \n\n- parser classes for links (`Links`, `Link`). \n- a method for resolving link templates against an instance (`resolveLinks`)\n- link finder methods for typical cases (`links.rel`, `links.mediaType`,\n`links.alternate`), as well as generic `links.find(fn)` and `links.select(fn)`\n- addressability from the schema (e.g. `schema.$('#/links/0')`)\n- dereferencing JSON references used in either \"links\" itself or in \nindividual links or link attributes, or in \"media\" subtrees.\n\nNote that this component does not deal with aspects of the spec related to\nHTTP request/response, e.g. schema and targetSchema pre- and post- \nvalidation, setting Accept headers, instance correlation via HTTP response \nheaders, etc. For this, see [json-schema-agent][agent].\n\nNote also this component does not depend on JSON Schema *validation*, which\nis implemented as a separate [core][core] plugin \n([json-schema-valid][valid]).\n\n\n## Installation\n\ncomponent:\n\n    $ component install ericgj/json-schema-hyper\n\nnpm:\n\n    $ npm install json-schema-hyper-component\n\n\n## Example\n\n  ```javascript\n  \n  var core = require('json-schema-core')\n    , hyper = require('json-schema-hyper')\n    , Schema = core.Schema\n\n  Schema.use(hyper);\n\n  var schema = new Schema().parse( schemaObject );\n  \n  // resolve links in root path of instance, returns a Links object\n  // or an array of Links objects if the root path of the instance is an array\n  var links = schema.resolveLinks( instanceObject );\n\n  // find the first link with rel == 'search'\n  var searchLink = links.rel('search');\n\n  // find the first link with mediaType == 'application/xml'\n  var altLink = links.mediaType('application/xml');\n\n  // find the first link rel == 'alternate' and mediaType == 'application/xml',\n  // with method == 'GET'\n  var rssLink = links.alternate('application/atom+xml', {method: 'GET'});\n\n\n  // or simply use correlation methods as shortcuts to the above\n\n  var correlation = schema.bind(instanceObject);\n \n  correlation.links();\n  correlation.rel('search');\n  correlation.mediaType('application/xml');\n  correlation.alternate('application/atom+xml', {method: 'GET'});\n  \n  ```\n\n## API\n   \n\n## TODO\n\n  - Add pre-processing of URI templates, as defined in \n    [section 5.1.1.1][spec-preproc] of the spec.\n  \n## License\n\n  MIT\n\n[spec]: http://tools.ietf.org/html/draft-luff-json-hyper-schema-00\n[spec-preproc]: http://tools.ietf.org/html/draft-luff-json-hyper-schema-00#section-5.1.1\n[core]: https://github.com/ericgj/json-schema-core\n[agent]: https://github.com/ericgj/json-schema-agent\n[valid]: https://github.com/ericgj/json-schema-valid\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fjson-schema-hyper","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fericgj%2Fjson-schema-hyper","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fericgj%2Fjson-schema-hyper/lists"}