Gatsby Source Directus screenshot

Gatsby Source Directus

Author Avatar Theme by Ikonrad
Updated: 7 Jan 2020
26 Stars

Source plugin for pulling data into GatsbyJS from Directus CMS (https://getdirectus.com)

Overview

The gatsby-source-directus plugin is a tool designed to streamline the integration of Directus CMS with Gatsby. It allows users to pull data seamlessly from custom tables in Directus, making it particularly useful for developers looking to build dynamic web applications that require content management capabilities. Despite its usefulness, it’s important to note that this plugin is no longer maintained, and users are encouraged to explore official alternatives for long-term projects.

Using this plugin simplifies the process of accessing data from Directus, allowing for the easy creation of Gatsby nodes corresponding to the tables defined in your CMS. This means developers can quickly craft queries to access posts, categories, and more without ranging far from Gatsby’s conventions.

Features

  • Data Node Creation: Automatically generates Gatsby nodes for each custom table in Directus, simplifying data handling for developers.
  • Query Access: Provides access to queries like allDirectusPost and directusPost so users can easily fetch data for specific fields.
  • Dynamic Page Creation: Works seamlessly with Gatsby’s createPages function, enabling the dynamic generation of blog posts and other content types.
  • Custom Node Naming: Utilizes the Pluralize module to transform table names into singular node types, with provisions for custom naming through the nameExceptions configuration.
  • Simplified Setup: Installation is straightforward with an npm command, and configuring the plugin in gatsby-config.js is simple to follow for developers.
  • Planned Extensions: The author has plans for future enhancements, indicating ongoing commitment to improving the integration for users despite its current maintenance status.