// plugin
v0.3.1•MIT•Tested up to WP 0.7
Gridsome Source Plugin for dev.to API
A Gridsome source plugin that fetches articles from the DEV.to API and creates a GraphQL collection for your static site.
gridsomevuejsdev.tostatic-sitegraphql
// description
Description
This plugin pulls posts from any dev.to profile using the DEV.to API and makes them available as a GraphQL collection in your Gridsome project.
Perfect for developers who write on dev.to and want to display their articles on their personal Gridsome-powered site without duplicating content.
// features
Features
- Fetches posts from any dev.to user profile
- Creates a GraphQL collection for easy querying
- Supports pagination and filtering
- Configurable API endpoint and username
- Lightweight with zero dependencies beyond Gridsome
// requirements
Requirements
- Gridsome 0.7+
- Node.js 12+
// installation
Installation
- 1Install the plugin: npm install @perlatsp/gridsome-source-devto or yarn add @perlatsp/gridsome-source-devto
- 2Add the plugin to your gridsome.config.js with your dev.to username
- 3Restart the Gridsome development server
- 4Query your dev.to posts via GraphQL in your pages and templates
// faq
Frequently Asked Questions
// external services
External Services
This plugin relies on DEV.to API, a third-party service operated by Forem (DEV Community).
// changelog
Changelog
0.3.1
- • Bug fixes and stability improvements
0.3.0
- • Added support for fetching from multiple usernames
- • Improved error handling for API rate limits
0.1.0
- • Initial release
- • Fetches posts from dev.to API
- • Creates GraphQL collection in Gridsome
// ready?
Let's build something
I'm always excited to collaborate on new projects. Let's discuss how I can help bring your ideas to life.