gatsby-source-npm-package-search

5.14.0 • Public • Published

gatsby-source-npm-package-search

This plugin uses Yarn's Algolia search to import all gatsby-related package info (any package with the gatsby-component or gatsby-plugin keyword). Check back for updates to search for other npm packages based on keyword.

Install

npm install gatsby-source-npm

How to use

// In your gatsby-config.js
plugins: [
  {
    resolve: `gatsby-source-npm-package-search`,
    options: {
      keywords: [`keyword1`, `keyword2`],
    },
  },
]

How to query

You can query npm nodes like the following

{
  allNpmPackages {
    edges {
      node {
        name
        humanDownloadsLast30Days
        readme {
          childMarkdownRemark {
            html
          }
        }
      }
    }
  }
}

Readme

Keywords

Package Sidebar

Install

npm i gatsby-source-npm-package-search

Weekly Downloads

559

Version

5.14.0

License

MIT

Unpacked Size

46.9 kB

Total Files

8

Last publish

Collaborators

  • mlgualtieri-gatsby
  • serhalp-netlify
  • kathmbeck
  • pieh
  • tylerbarnes
  • daniellewgatsby
  • fk