Giter Site home page Giter Site logo

add stats section about gulpjs.github.io HOT 6 CLOSED

gulpjs avatar gulpjs commented on June 25, 2024
add stats section

from gulpjs.github.io.

Comments (6)

SomethingNew71 avatar SomethingNew71 commented on June 25, 2024

I can help with this if you are interested. Is there an API endpoint that would provide this data?

from gulpjs.github.io.

phated avatar phated commented on June 25, 2024

I don't think there's an API that gets both installs and plugins. Installs would come from npm and plugins would come from npmsearch. The companies and seconds saved would be static, I'm guessing.

from gulpjs.github.io.

SomethingNew71 avatar SomethingNew71 commented on June 25, 2024

API for npm downloads - https://github.com/npm/registry/blob/master/docs/download-counts.md

Example: https://api.npmjs.org/downloads/point/last-day/gulp
Results:

  {
    "downloads": 159388,
    "start": "2017-10-25",
    "end": "2017-10-25",
    "package": "gulp"
  }

Note: Maximum amount of data is the last 365 days so maybe it could be the number of installs in the last month or something?

from gulpjs.github.io.

SomethingNew71 avatar SomethingNew71 commented on June 25, 2024

Do you like the look of this? It's just mocked up with static data I did last night.

screen shot 2017-10-26 at 3 14 12 pm

from gulpjs.github.io.

SomethingNew71 avatar SomethingNew71 commented on June 25, 2024

And I have found the plugin count based on a search.

API for Related Plurgins - https://api-docs.npms.io/#api-Search-ExecuteSearchQuery

Probably could grab the total out of the response.

Example: https://api.npms.io/v2/search?q=gulp
Results:

{
  "total": 11424,
  "results": [{
    "package": {
      "name": "gulp",
      "scope": "unscoped",
      "version": "3.9.1",
      "description": "The streaming build system",
      "date": "2016-02-08T18:50:16.472Z",
      "links": {
        "npm": "https://www.npmjs.com/package/gulp",
        "homepage": "http://gulpjs.com",
        "repository": "https://github.com/gulpjs/gulp",
        "bugs": "https://github.com/gulpjs/gulp/issues"
      },
      "author": {
        "name": "Fractal",
        "email": "[email protected]",
        "url": "http://wearefractal.com/"
      },
      "publisher": {
        "username": "phated",
        "email": "[email protected]"
      },
      "maintainers": [{
          "username": "contra",
          "email": "[email protected]"
        },
        {
          "username": "phated",
          "email": "[email protected]"
        }
      ]
    },
    "flags": {
      "insecure": 2
    },
    "score": {
      "final": 0.7768170783638859,
      "detail": {
        "quality": 0.8562822998580506,
        "popularity": 0.8196480107850486,
        "maintenance": 0.6658730989477251
      }
    },
    "searchScore": 100000.78, 
    {
      ....more packages.....
    }
  }]
}

from gulpjs.github.io.

phated avatar phated commented on June 25, 2024

Closed by #75 thanks to @SomethingNew71

from gulpjs.github.io.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.