
Security News
PyPI Expands Trusted Publishing to GitLab Self-Managed as Adoption Passes 25 Percent
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads
@dschau/gatsby-source-cosmicjs
Advanced tools
Gatsby Source Plugin for building websites using Cosmic JS as a data source
Source plugin for fetching data into Gatsby from Cosmic JS. Cosmic JS offers a Headless CMS for your Gatsby website.
Install the Cosmic JS Gatsby starter:
npm i cosmicjs -g
cosmic init gatsby-starter
cd gatsby-starter
cosmic start
Install the Cosmic JS Gatsby localization starter:
npm i cosmicjs -g
cosmic init gatsby-starter
cd gatsby-localization-starter
cosmic start
npm install --save gatsby-source-cosmicjs
// In your gatsby-config.js
plugins: [
{
resolve: `gatsby-source-cosmicjs`,
options: {
bucketSlug: ``,
objectTypes: [`posts`],
// If you have enabled read_key to fetch data (optional).
apiAccess: {
read_key: ``,
}
}
},
]
You can query the nodes created from Cosmic JS with the following:
{
allCosmicjsPosts {
edges {
node {
id
slug
title
}
}
}
}
and you can filter specific node using this:
{
cosmicjsPosts(slug: {eq: ''}) {
id
slug
title
}
}
{
allCosmicjsPosts(filter: {locale: {eq: "en"}}, sort: {fields: [published_at], order: DESC}) {
edges {
node {
id
slug
title
locale
}
}
}
}
FAQs
Gatsby Source Plugin for building websites using Cosmic JS as a data source
The npm package @dschau/gatsby-source-cosmicjs receives a total of 3 weekly downloads. As such, @dschau/gatsby-source-cosmicjs popularity was classified as not popular.
We found that @dschau/gatsby-source-cosmicjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.