Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

gatsby-source-docker-hub

Package Overview
Dependencies
Maintainers
1
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-docker-hub

GatsbyJS source plugin to pull stats from the official Docker Hub.

  • 1.5.42
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
9
decreased by-52.63%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-source-docker-hub

CircleCI npm codecov

What is this?

A simple GatsbyJS source plugin allowing you to easily integrate stats from your Docker Hub profile in your Gatsby site. Just pass in a Docker Hub username, and get back your top 30 repos, sorted by pull count. It's as simple as:

{
  allDockerHubRepo(sort: { order: DESC, fields: pullCount }) {
    edges {
      node {
        architectures
        description
        lastUpdated
        name
        pullCount
        starCount
      }
    }
  }
}

And get back something like the below:

{
  "data": {
    "allDockerHubRepo": {
      "edges": [
        {
          "node": {
            "architectures": [
              "amd64",
              "arm",
              "arm64"
            ],
            "description": "OwnTracks. Multiarch. 👌",
            "lastUpdated": "2019-08-13T00:27:34.154761Z",
            "name": "owntracks",
            "pullCount": 491351,
            "starCount": 3
          }
        },
        {
          "node": {
            "architectures": [
              "arm",
              "arm64",
              "amd64"
            ],
            "description": "Nightly multi-architecture (amd64, arm64, armv7) builds for the Kubernetes Helm tiller service.",
            "lastUpdated": "2019-08-13T00:27:56.305902Z",
            "name": "tiller",
            "pullCount": 376722,
            "starCount": 11
          }
      },
      { "//": "etc." }
    ]
  }
}

Note that this includes an array of architectures, for Docker images with multiarch support (i.e., containing a valid V2 Manifest, Schema 2).

Check out a simple proof-of-concept at multiar.ch (source code available here) 🎉

Keywords

FAQs

Package last updated on 11 Aug 2021

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc