{"id":43242421,"url":"https://github.com/onecrayon/gridsome-source-static-meta","last_synced_at":"2026-02-01T11:39:13.842Z","repository":{"id":34396878,"uuid":"178337448","full_name":"onecrayon/gridsome-source-static-meta","owner":"onecrayon","description":"Read JSON or YAML objects in static files into GraphQL metaData","archived":false,"fork":false,"pushed_at":"2022-02-11T18:39:49.000Z","size":129,"stargazers_count":5,"open_issues_count":6,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-02T20:52:18.626Z","etag":null,"topics":["gridsome","gridsome-plugin"],"latest_commit_sha":null,"homepage":null,"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/onecrayon.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2019-03-29T05:20:24.000Z","updated_at":"2022-04-17T02:47:33.000Z","dependencies_parsed_at":"2022-08-08T01:00:25.240Z","dependency_job_id":null,"html_url":"https://github.com/onecrayon/gridsome-source-static-meta","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/onecrayon/gridsome-source-static-meta","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecrayon%2Fgridsome-source-static-meta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecrayon%2Fgridsome-source-static-meta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecrayon%2Fgridsome-source-static-meta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecrayon%2Fgridsome-source-static-meta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/onecrayon","download_url":"https://codeload.github.com/onecrayon/gridsome-source-static-meta/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/onecrayon%2Fgridsome-source-static-meta/sbom","scorecard":{"id":706941,"data":{"date":"2025-08-11","repo":{"name":"github.com/onecrayon/gridsome-source-static-meta","commit":"47b6e800c4d8168565adf05abcb2062ce91ee5e3"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.3,"checks":[{"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":"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":"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":"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":"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":"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/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":"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":"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":"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":"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":"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":"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"}},{"name":"Vulnerabilities","score":0,"reason":"18 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-6chw-6frg-f759","Warn: Project is vulnerable to: GHSA-v88g-cgmw-v5xw","Warn: Project is vulnerable to: GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: GHSA-3gx7-xhv7-5mx3","Warn: Project is vulnerable to: GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: GHSA-p6mc-m468-83gw","Warn: Project is vulnerable to: GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-vh95-rmgr-6w4m","Warn: Project is vulnerable to: GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-22T06:54:06.853Z","repository_id":34396878,"created_at":"2025-08-22T06:54:06.853Z","updated_at":"2025-08-22T06:54:06.853Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28977334,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-01T11:31:13.034Z","status":"ssl_error","status_checked_at":"2026-02-01T11:30:25.558Z","response_time":56,"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":["gridsome","gridsome-plugin"],"created_at":"2026-02-01T11:39:13.251Z","updated_at":"2026-02-01T11:39:13.837Z","avatar_url":"https://github.com/onecrayon.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gridsome-source-static-meta\n\nThis is a Gridsome source plugin that converts values in JSON and/or YAML files into keys on the global GraphQL `metaData` query.\n\nWhat this means in practice is that you can define standard metadata (like `siteName` or `siteUrl`) along with custom keys in static JSON or YAML files, and have the values automatically available via standard GraphQL queries. *Most projects will not need this.* However, if for whatever reason you wish to define static metaData without modifying the `gridsome.config.js` file, this is an easy method.\n\n## Guidelines (read before using!)\n\nWhen authoring your JSON or YAML metadata files, you must observe the following guidelines:\n\n- All files must have root-level key/value mappings\n- Arrays cannot mix types\n- Arrays of objects must include all possible keys in the first object in the array (using non-`null` values)\n- Identical keys in separate files may behave in strange ways; it is best to keep all of your settings in a single file, or at minimum avoid duplicate root-level keys across files.\n\nFailing to observe the above guidlines may result in data in your JSON/YAML files being ignored and missing from GraphQL (see below for why).\n\n**Changes to your JSON files will require restarting the server.** Gridsome is not currently setup to allow live updating the `metaData` GraphQL data.\n\n## Install\n\n- `yarn add gridsome-source-static-meta`\n- `npm install gridsome-source-static-meta`\n\n## Usage\n\n```js\nmodule.exports = {\n  plugins: [\n    {\n      use: 'gridsome-source-static-meta',\n      options: {\n        path: 'settings/*.json'\n      }\n    }\n  ]\n}\n```\n\n## Options\n\n#### path\n\n- Type: `string` *required*\n\nWhere to look for files. Should be a glob path.\n\n## Possible reasons for missing data in GraphQL\n\nDepending on how you format your files, **you may lose data** due to the way Gridsome constructs GraphQL types. Please keep the following in mind:\n\n- You cannot mix data types in arrays, and an array's type is determined by the first element in the array. This means that if you have an array of objects, **the first object must include all possible keys** (subsequent objects can leave optional keys out, if you wish).\n    - The first object in an array must use non-`null` values for all keys (null keys will be ignored). E.g., if you have an empty string key, your JSON would look like: `\"stringKey\": \"\"`. (For subsequent objects you can omit the key, and the GraphQL data will include a `null` value.)\n- All JSON or YAML files formatted with a root-level arrays will be silently ignored (e.g. if the first character in your JSON file is `[` or `-` in your YAML file, it will be ignored). A key/value mapping is required for all files.\n- Identical keys in separate files will behave as follows (execution order is *not* guaranteed):\n    - Arrays will concatenate (probably poorly, given the restrictions above)\n    - Objects will update (adding or overwriting keys as necessary)\n    - All other data types will be overwritten\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecrayon%2Fgridsome-source-static-meta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonecrayon%2Fgridsome-source-static-meta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonecrayon%2Fgridsome-source-static-meta/lists"}