npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

shel-neos-schema

v1.1.2

Published

A tool to validate Neos YAML schema files like nodetypes and other configuration

Downloads

108

Readme

JSON schema for Neos CMS nodetypes & node migrations

Tests

This repository contains JSON schema definitions, that can be used in PHPStorm or VSCode to get the following features for NodeTypes.*.yaml, Caches.yaml and node migration Version*.yaml files:

  • autocompletion
  • typehints
  • validation
  • inline documentation

In addition, it includes a binary which allows validating whole Neos CMS projects against the included schemas.

Example usage in PHPStorm

When the schema is stable enough it will hopefully be made available in the schema store.

The schema is based on the old YAML schemas we already have in Neos & Flow. But they all need some converting and can be updated with the latest functionality of what JSON schema can do. With a bit of community effort we can upgrade them, put them in the core, replace our own schema validator and make the schemas officially available on https://www.schemastore.org/json/. The schemastore allows your IDE to automatically download the one your need.

CLI usage

Example to validate the site package of a Neos CMS project:

bin/validate.js -v validate path-to-neos-project/DistributionPackages/My.Site

Features for Neos nodetypes

Autocompletion

In addition to usual fields there are also conditional schema definitions for the following properties:

  • editor (due to a bug in IntelliJ, autocompletion doesn't show the matching editorOptions but validation works)
  • validation

Typehints

Typehints for all known Neos core nodetype properties.

Validation

You can run validations against your nodetypes with Ajv or similar. See test.js for an example.

Inline docs

This is still work-in-progress and only a few entries properties have full documentation. Feel free to open a PR to add more. We support the fields title, description and x-intellij-html-description for html docs.

Features for Neos node migrations:

Autocompletion, typehints, validation and inline docs are available also for node migrations files. Custom transformations & filters and their options are of course not included.

Features for Neos cache configuration:

Autocompletion and descriptions for default cache frontends, backends and their options based on the documentation. Custom cache implementations and their options are of course not included.

Features for Neos routing configuration:

Autocompletion and descriptions for routing configuration based on the documentation.

How to use

PHPStorm / IntelliJ IDEA

Simple option

Install the Neos plugin, it will automatically activate the latest nodetypes schema from this repository.

Manual configuration (nodetypes)

Follow the official instruction and add the url:

https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Schema.json

Make sure there is no space at the end of the url when pasting it into your IDE or the Schema will not validate.

Set Schema Version to JSON Schema version 7.

Add path mappings to the packages you work on. For example:

DistributionPackages/*/Configuration/NodeTypes*.yaml

Manual configuration (migrations)

See above and add the url:

https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeMigration.Schema.json

Make sure there is no space at the end of the url when pasting it into your IDE or the Schema will not validate.

Set Schema Version to JSON Schema version 7.

Add path mappings to the packages you work on. For example:

DistributionPackages/*/Migrations/ContentRepository/Version*.yaml

Manual configuration (caches)

See above and add the url:

https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/Caches.Schema.json

Make sure there is no space at the end of the url when pasting it into your IDE or the Schema will not validate.

Set Schema Version to JSON Schema version 7.

Add path mappings to the packages you work on. For example:

DistributionPackages/*/Configuration/Caches*.yaml

Manual configuration (routing)

See above and add the url:

https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/Routes.Schema.json

Make sure there is no space at the end of the url when pasting it into your IDE or the Schema will not validate.

Set Schema Version to JSON Schema version 7.

Add path mappings to the packages you work on. For example:

DistributionPackages/*/Configuration/Routes*.yaml

Manual configuration (presets)

See above and add the url:

https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Presets.Schema.json

Make sure there is no space at the end of the url when pasting it into your IDE or the Schema will not validate.

Set Schema Version to JSON Schema version 7.

Add path mappings to the packages you work on. For example:

DistributionPackages/*/Configuration/Settings.Presets.*.yaml

Visual Studio Code

Install this plugin to enable JSON schema for YAML: https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml

Open the Command Palette with F1 or Ctrl + Shift + P in VSCode, then search for 'settings json' and add there the following snippet:

{
    "yaml.schemas": {
        "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Schema.json": ["DistributionPackages/*/Configuration/NodeTypes*.yaml", "DistributionPackages/*/NodeTypes/**/*.yaml"],
        "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeMigration.Schema.json": "DistributionPackages/*/Migrations/ContentRepository/Version*.yaml",
        "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/Caches.Schema.json": "DistributionPackages/*/Configuration/Caches*.yaml",
        "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/Routes.Schema.json": "DistributionPackages/*/Configuration/Routes*.yaml",
        "https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Presets.Schema.json": "DistributionPackages/*/Configuration/Settings.Presets.*.yaml"
    }
}

Other editors

Other editors also support JSON schema. Instructions are easy to find with your favourite search engine.

Schema variants

Certain declarations in a NodeTypes.*.yaml file are valid but not considered as "best practise". The default schema mentioned in the instructions above will not enforce those.

Strict schema

If you want additional strict validation, you can instead use the strict schema with the url:

https://raw.githubusercontent.com/Sebobo/Shel.Neos.Schema/main/NodeTypes.Schema.Strict.json

Implemented additional checks:

  • Only 1 nodetype per file

FAQ

I get duplicate results for autocompletion

This happens when you have an older version of the Neos plugin installed in an IntelliJ IDE and you manually set up the schemas in your IDE. The plugin also provided some basic autocompletion hints in older versions than 1.7. After that it referenced the schema in this repository.

Contribution

If you know how to use the schema in other editors, please provide a PR with the instructions.

If you have ideas on how to improve the schema, please provide an issue with an example, and a PR that would resolve the issue if you can.