{"id":51130892,"url":"https://github.com/webdevbynight/schemata-validator","last_synced_at":"2026-06-25T12:30:26.401Z","repository":{"id":346033741,"uuid":"1188299355","full_name":"webdevbynight/schemata-validator","owner":"webdevbynight","description":"Check the validity of Schema.org vocabulary used in JSON-LD and HTML microdata","archived":false,"fork":false,"pushed_at":"2026-06-24T01:11:04.000Z","size":329,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-24T03:08:56.192Z","etag":null,"topics":["html","html5","json-ld","microdata","schema-org","validator","web-semantic"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/webdevbynight.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-03-21T22:11:36.000Z","updated_at":"2026-06-24T01:11:08.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/webdevbynight/schemata-validator","commit_stats":null,"previous_names":["webdevbynight/schemata-validator"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/webdevbynight/schemata-validator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fschemata-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fschemata-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fschemata-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fschemata-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/webdevbynight","download_url":"https://codeload.github.com/webdevbynight/schemata-validator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/webdevbynight%2Fschemata-validator/sbom","scorecard":{"id":1245122,"data":{"date":"2026-03-23T00:02:37Z","repo":{"name":"github.com/webdevbynight/schemata-validator","commit":"1532a6eb59ab85dfdae1e0088ec6e4119ae67922"},"scorecard":{"version":"v5.3.0","commit":"c22063e786c11f9dd714d777a687ff7c4599b600"},"score":7.1,"checks":[{"name":"Code-Review","score":0,"reason":"Found 0/5 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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#code-review"}},{"name":"Dependency-Update-Tool","score":10,"reason":"update tool detected","details":["Info: detected update tool: RenovateBot: renovate.json:1"],"documentation":{"short":"Determines if the project uses a dependency update tool.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dependency-update-tool"}},{"name":"Maintained","score":0,"reason":"project was created within the last 90 days. Please review its contents carefully","details":["Warn: Repository was created within the last 90 days."],"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#maintained"}},{"name":"Pinned-Dependencies","score":10,"reason":"all dependencies are pinned","details":["Info:   7 out of   7 GitHub-owned GitHubAction dependencies pinned","Info:   2 out of   2 third-party GitHubAction dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#packaging"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#security-policy"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":10,"reason":"GitHub workflow tokens follow principle of least privilege","details":["Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:16","Info: topLevel 'contents' permission set to 'read': .github/workflows/biome.yml:11","Info: topLevel 'contents' permission set to 'read': .github/workflows/commitlint.yml:10","Info: topLevel 'contents' permission set to 'read': .github/workflows/release.yml:9","Info: topLevel 'contents' permission set to 'read': .github/workflows/run-tests.yml:11","Info: topLevel permissions set to 'read-all': .github/workflows/scorecard.yml:10"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#dangerous-workflow"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#cii-best-practices"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#vulnerabilities"}},{"name":"SAST","score":10,"reason":"SAST tool is run on all commits","details":["Info: all commits (6) are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#sast"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#license"}},{"name":"Branch-Protection","score":8,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'main'","Info: 'force pushes' disabled on branch 'main'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'main'","Info: 'stale review dismissal' is required to merge on branch 'main'","Warn: required approving review count is 1 on branch 'main'","Warn: codeowners review is not required on branch 'main'","Info: 'last push approval' is required to merge on branch 'main'","Info: 'up-to-date branches' is required to merge on branch 'main'","Info: status check found to merge onto on branch 'main'","Info: PRs are required in order to make changes on branch 'main'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#branch-protection"}},{"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/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#signed-releases"}},{"name":"Contributors","score":0,"reason":"project has 0 contributing companies or organizations -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project has a set of contributors from multiple organizations (e.g., companies).","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#contributors"}},{"name":"CI-Tests","score":10,"reason":"4 out of 4 merged PRs checked by a CI test -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project runs tests before pull requests are merged.","url":"https://github.com/ossf/scorecard/blob/c22063e786c11f9dd714d777a687ff7c4599b600/docs/checks.md#ci-tests"}}]},"last_synced_at":"2026-03-23T00:53:41.870Z","repository_id":346033741,"created_at":"2026-03-23T00:53:41.871Z","updated_at":"2026-03-23T00:53:41.871Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34775927,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-25T02:00:05.521Z","response_time":101,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["html","html5","json-ld","microdata","schema-org","validator","web-semantic"],"created_at":"2026-06-25T12:30:24.594Z","updated_at":"2026-06-25T12:30:26.392Z","avatar_url":"https://github.com/webdevbynight.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# schemata-validator\n\nCheck the validity of Schema.org vocabulary used in JSON-LD and HTML microdata\n\n![License: MIT](https://img.shields.io/github/license/webdevbynight/schemata-validator)\n[![ESM-only package](https://img.shields.io/badge/package-ESM--only-ffe536)](https://nodejs.org/api/esm.html)\n[![Conventional Commits 1.0.0](https://img.shields.io/badge/Conventional_Commits-1.0.0-fe5196?logo=conventionalcommits\u0026logoColor=white)](https://conventionalcommits.org)\n[![Checked with Biome](https://img.shields.io/badge/Checked_with-Biome-60a5fa?style=flat\u0026logo=biome)](https://biomejs.dev)\n[![Released with release-change](https://img.shields.io/badge/Released_with-release--change-8d8d8d)](https://github.com/release-change/release-change)\n![NPM latest version](https://img.shields.io/npm/v/schemata-validator/latest)\n![Node support](https://img.shields.io/node/v/schemata-validator)\n![Build status](https://img.shields.io/github/actions/workflow/status/webdevbynight/schemata-validator/run-tests.yml)\n\n**schemata-validator** takes JSON-LD data and microdata in HTML and returns detailed validation results.\n\n## Installation\n\nInstall package for Node.js:\n```\npnpm add --save-dev schemata-validator\n```\nYou can also install it using `npm`:\n```\nnpm install --save-dev schemata-validator\n```\n\n## Usage\n\n### Options\n\n##### data\n\nType: `array`\n\nSpecifies which JSON-LD data to be sent to validation. This option takes precedence over the other options.\n\n##### files\n\nType: `array`  \nCLI arguments: `-f \u003cspace-separated list of files\u003e`, `--files \u003cspace-separated list of files\u003e`\n\nSpecifies which files to be sent to validation. This option takes precedence over the other options.\n\n##### paths\n\nType: `array`  \nCLI arguments: `-p \u003cspace-separated list of paths\u003e`, `--paths \u003cspace-separated list of paths\u003e`\n\nSpecifies which folders or files to be sent to validation. When omitted, all files are validated (skipping the `node_modules` folder), unless the `exclude` option is specified.\n\n##### exclude\n\nType: `array`\nCLI arguments: `-e \u003cspace-separated list of paths\u003e`, `--exclude \u003cspace-separated list of paths\u003e`\n\nLists strings to match in paths to skip. When omitted, all files specified by `files` options if defined (all files otherwise) are validated (skipping the `node_modules` folder).\n\n##### dryRun\n\nType: `boolean`  \nDefault: `false`\nCLI arguments: `-d`, `--dry-run`\n\nBypasses the validation (for usage while building CI).\n\n### CLI\n\nschemata-validator can be used as a CLI tool.\n\n```\nschemata-validator [flags]\n```\n\n#### `package.json` scripts\n\nYou can run `schemata-validator` from the `scripts` section of your `package.json` file.\n\n```json\n{\n  \"scripts\": {\n    \"one-folder\": \"schemata-validator --paths docs\",\n    \"one-file\": \"schemata-validator --files docs/index.html\",\n    \"all-files\": \"schemata-validator\"\n  }\n}\n```\n\n#### Examples\n\n- `schemata-validator`: validates all HTML files in the project;\n- `schemata-validator --paths docs --exclude build tmp`: validates all HTML files in the `docs/` folder, except files which have `build` or `tmp` anywhere in their pathname or filename;\n- `schemata-validator --files docs/index.html`: validates only the specified files.\n\n### Application code\n\nIn addition to the CLI interface, schemata-validator can be imported and called in ESM and TypeScript projects.\n\n```js\nimport { SchemataValidator } from \"schemata-validator\";\n\nconst jsonld = `{\n  \"@context\": \"https://schema.org\",\n  \"@type\": \"WebPage\",\n  \"name\": \"Web page title\",\n  \"description\": \"Web page description\"\n}`;\nconst options = { data: [jsonld] };\nconst validator = new SchemataValidator(options);\nconst validate = await validator.validate();\nvalidator.log(validate); // Outputs the reporting object\n```\n\n```js\nimport { SchemataValidator } from \"schemata-validator\";\n\nconst options = { paths: [\"docs\"] };\nconst validator = new SchemataValidator(options);\nconst validate = await validator.validate();\nvalidator.log(validate); // Outputs the reporting object\n```\n\n## Get help\n\n- [Stack Overflow](https://stackoverflow.com/questions/tagged/schemata-validator)\n\n## Copyright \u0026 licence\n\n© 2026 Victor Brito — Released under the [MIT licence](./LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbynight%2Fschemata-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebdevbynight%2Fschemata-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebdevbynight%2Fschemata-validator/lists"}