Naming a Plugin
Plugin title naming conventions
There are four standard plugin naming conventions for Gatsby:
gatsby-source-*— a source plugin loads data from a given source (e.g. WordPress, MongoDB, the file system). Use this plugin type if you are connecting a new source of data to Gatsby.- Example:
gatsby-source-contentful - Docs: creating a source plugin
- Example:
gatsby-transformer-*— a transformer plugin converts data from one format (e.g. CSV, YAML) to a JavaScript object. Use this naming convention if your plugin will be transforming data from one format to another.- Example:
gatsby-transformer-yaml - Docs: creating a transformer plugin
- Example:
gatsby-[plugin-name]-*— if a plugin is a plugin for another plugin 😅, it should be prefixed with the name of the plugin it extends (e.g. if it adds emoji to the output ofgatsby-transformer-remark, call itgatsby-remark-add-emoji). Use this naming convention whenever your plugin will be included as a plugin in theoptionsobject of another plugin.- Example:
gatsby-remark-images
- Example:
gatsby-theme-*— this naming convention must be used for Gatsby themes, which are a type of plugin.gatsby-plugin-*— this is the most general plugin type. Use this naming convention if your plugin doesn’t meet the requirements of any other plugin types.- Example:
gatsby-plugin-sharp
- Example:
Edit this page on GitHub