{"id":45197250,"url":"https://github.com/bnomei/kirby-schema","last_synced_at":"2026-02-20T13:01:06.508Z","repository":{"id":40664863,"uuid":"507307612","full_name":"bnomei/kirby-schema","owner":"bnomei","description":"JSON Schema file for Kirby CMS blueprints","archived":false,"fork":false,"pushed_at":"2026-01-24T13:15:43.000Z","size":579,"stargazers_count":50,"open_issues_count":4,"forks_count":4,"subscribers_count":4,"default_branch":"main","last_synced_at":"2026-01-25T01:09:11.746Z","etag":null,"topics":["autocompletion","blueprint","json-schema","kirby","kirby-cms","phpstorm","validation","vscode","yaml"],"latest_commit_sha":null,"homepage":"https://forum.getkirby.com/t/blueprint-yaml-file-autocompletion-and-validation-in-your-favourite-code-editor/25905","language":"JavaScript","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/bnomei.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"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":"2022-06-25T12:39:25.000Z","updated_at":"2026-01-24T13:26:20.000Z","dependencies_parsed_at":"2025-07-04T03:55:55.381Z","dependency_job_id":"49d820a1-b87d-4a2b-9f74-a8ded4ff7486","html_url":"https://github.com/bnomei/kirby-schema","commit_stats":null,"previous_names":["bnomei/kirby-schema"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/bnomei/kirby-schema","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby-schema","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby-schema/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby-schema/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby-schema/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bnomei","download_url":"https://codeload.github.com/bnomei/kirby-schema/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bnomei%2Fkirby-schema/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29651964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-20T09:27:29.698Z","status":"ssl_error","status_checked_at":"2026-02-20T09:26:12.373Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["autocompletion","blueprint","json-schema","kirby","kirby-cms","phpstorm","validation","vscode","yaml"],"created_at":"2026-02-20T13:01:05.379Z","updated_at":"2026-02-20T13:01:06.480Z","avatar_url":"https://github.com/bnomei.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/bnomei"],"categories":[],"sub_categories":[],"readme":"# Kirby JSON Schema\n\n[![Kirby 3](https://flat.badgen.net/badge/Kirby/3?color=ECC748)](https://getkirby.com)\n[![Kirby 4](https://flat.badgen.net/badge/Kirby/4?color=ECC748)](https://getkirby.com)\n[![Kirby 5](https://flat.badgen.net/badge/Kirby/5?color=ECC748)](https://getkirby.com)\n![Release](https://flat.badgen.net/github/release/bnomei/kirby3-schema?color=ae81ff\u0026icon=github\u0026label)\n![Checks](https://flat.badgen.net/github/checks/bnomei/kirby3-schema)\n[![Discord](https://flat.badgen.net/badge/discord/bnomei?color=7289da\u0026icon=discord\u0026label)](https://discordapp.com/users/bnomei)\n[![Buymecoffee](https://flat.badgen.net/badge/icon/donate?icon=buymeacoffee\u0026color=FF813F\u0026label)](https://www.buymeacoffee.com/bnomei)\n\nJSON Schema file for Kirby blueprints\n\n## Install\n\n### Schemastore (not yet)\n\nIdeally, this repo's schema would be available from the [Schemastore](https://www.schemastore.org/json/), and there would be almost zero configuration in most IDEs. But that is something the Kirby CMS team should eventually do, not me.\n\n### Download the Schema\n\nYou can clone the entire repo or download the file `kirbyX-blueprints.schema.json`, where `X` matches your intended Kirby version. Put that file inside your project or in a global space of your dev setup. Then configure your IDE to use that file to get Schema information for Kirby's blueprints.\n\n## Configure your IDE\n\n### VSCode\n\nYou will need the [Red Hat VS Code YAML Extension](https://github.com/redhat-developer/vscode-yaml), and then you can use the `yaml.schemas` setting to add your schema like this:\n\n```yaml\n  \"yaml.schemas\": {\n    \"/path/to/your/schema/kirby5-blueprints.schema.json\": \"site/blueprints/**/*.yml\"\n  }\n```\n\nor via an URL (thanks @janstuemmel)\n\n```yaml\n  \"yaml.schemas\": { \n    \"https://raw.githubusercontent.com/bnomei/kirby-schema/refs/heads/main/kirby5-blueprints.schema.json\": \"site/blueprints/**/*.yml\" \n}\n```\n\nThis will automatically use the schema for all blueprint files.\n\nThe extension prepends `/` on the path so its `/~/YOUR_FOLDER/kirby3-schema/kirby5-blueprints.schema.json`.\n\n\u003e [!NOTE]\n\u003e thanks @tobimori and @iskrisis\n\n### PHPStorm\n\nClone this repo to your local machine. Open the IDE settings and search for `JSON Schema`. Then select `Languages \u0026 Frameworks` » `Schemas and DTDs` » `JSON Schema Mappings`. Click the `+` button at the top to add a new JSON validate configuration. Then, fill in the corresponding name, file or URL, and version.\n\nFor testing, I mapped it to my `site/blueprints` folder.\n\n### Sublime Text\n\nYou can use the schema in Sublime Text by cloning this repo to your local machine and setting a custom JSON schema location using [this Sublime Text extension](https://github.com/sublimelsp/LSP-json?tab=readme-ov-file#custom-schemas]) and wildcards in `fileMatch` [schema settings](https://github.com/sublimelsp/LSP-yaml/blob/7b928a7b84f25381b01fa98c04ca7b1418b3a465/LSP-yaml.sublime-settings#L37) ([more](https://github.com/sublimelsp/LSP-json?tab=readme-ov-file#custom-schemas)).\n\n## Blueprint detection\n\nSince Kirby reuses some types like `file`, `info`, `pages` in fields and sections the schema cannot always determine which blueprint you are working on with absolute certainty. For now, I introduced a `blueprint` property to solve this. Use it in your `block`, `field`, `file`, `page`, `section`, `site`, `tab` and `user` blueprints.  \n\n```diff\n+ blueprint: site\n\ntitle: My Site Blueprint\n\nfields:\n  text:\n    type: text\n```\n\n```diff\n+ blueprint: page\n\ntitle: My Page Blueprint\n\nfields:\n  text:\n    type: text\n```\n\n\u003e [!IMPORTANT]\n\u003e Adding the `blueprint` property does not affect Kirby in any way. It is just a hint for your IDE. It's safe to share such blueprints with colleagues that do not have the schema installed.\n\n## Known Limitations\n\n### Extends - Here be Dragons\n\nThe `extends` property on blueprint definitions is an edge case for the schema. The schema is a pattern matcher at heart, and it cannot validate what you are extending from in inspecting referenced files. There is no way that I am aware of to make `extends` play nice. For that reason I decided to have the schema surface an error instead of muting/hiding the inability to validate that part of the blueprint.\n\n## Validate\n\nCheck out the test files in the `tests` folder on how to programmatically validate your blueprints with the schema. You can use a similar setup in your CI pipeline.\n\n## Disclaimer\n\nThis schema is provided \"as is\" with no guarantee. Use it at your own risk and always test it yourself before using it in a production environment. If you find any issues, please [create a new issue](https://github.com/bnomei/kirby3-schema/issues/new).\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n\nIt is discouraged to use this schema in any project that promotes racism, sexism, homophobia, animal abuse, violence or any other form of hate speech.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnomei%2Fkirby-schema","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbnomei%2Fkirby-schema","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbnomei%2Fkirby-schema/lists"}