Mordred screenshot

Mordred

Author Avatar Theme by Egoist
Updated: 2 Sep 2020
206 Stars

[Experimental] Source data from anywhere, for Next.js, Nuxt.js, Eleventy and many more.

Categories

Overview:

Mordrednpm is a community-driven tool that allows you to source data from various platforms like Next.js, Nuxt.js, Eleventy, and more. It is inspired by Gatsby and enables you to query data from different sources using GraphQL. With Mordrednpm, you can automatically generate a JavaScript client for a better development experience. It is framework-agnostic and can be used with any framework that supports Static Site Generation (SSG).

Features:

  • GraphQL-powered data sourcing: Query data from various sources like Markdown, APIs, databases, and CMS using GraphQL.
  • Automatic JavaScript client generation: Mordrednpm automatically generates a JavaScript client, making it easier to interact with the data.
  • Framework agnostic: Works with any framework that supports SSG, providing flexibility to developers.
  • Extensible with plugins: The tool supports plugins for popular headless CMS, although contributions are needed in this area.

Installation:

To install Mordrednpm, follow these steps:

  1. Inside your project’s root directory, open next.config.js.
  2. Create a file named mordred.config.js in the same directory.
  3. In mordred.config.js, use the desired plugins for your project.
  4. Install the required plugins mentioned in the configuration.

You should also add the content folder (created in the project root) to the .gitignore file.

Summary:

Mordrednpm is a powerful tool for sourcing data from different platforms using GraphQL. It offers features like automatic client generation and framework agnosticism, making it a versatile choice for developers. By following the installation guide and utilizing its key features, developers can enhance their development experience and efficiently work with data from various sources.