Gathering detailed insights and metrics for gatsby-source-dogapi
Gathering detailed insights and metrics for gatsby-source-dogapi
npm install gatsby-source-dogapi
Typescript
Module System
Node Version
NPM Version
62.4
Supply Chain
96.1
Quality
74.9
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Verify real, reachable, and deliverable emails with instant MX records, SMTP checks, and disposable email detection.
Total Downloads
738
Last Day
1
Last Week
2
Last Month
4
Last Year
75
MIT License
2 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Aug 11, 2018
Minified
Minified + Gzipped
Latest Version
2.0.0-beta.1
Package Id
gatsby-source-dogapi@2.0.0-beta.1
Unpacked Size
96.38 kB
Size
26.53 kB
File Count
11
NPM Version
6.3.0
Node Version
10.4.0
Cumulative downloads
Total Downloads
Last Day
0%
1
Compared to previous day
Last Week
0%
2
Compared to previous week
Last Month
-77.8%
4
Compared to previous month
Last Year
-6.3%
75
Compared to previous year
The doggy source plugin you'll love.
gatsby-source-dogapi is a simple Gatsby source plugin to add thedogapi.com doggy features to your Gatsby website.
This source plugin lack of features right now but you can use it to play with the API and get random dog pictures. I'll add more options as soon as I can.
The Dog API is a free service and you can play with it without the needs for an API key.
However if you want to play with more datas, you'll need to signup here and get your API key ready for the next steps.
yarn add -D gatsby-source-dogapi
or npm i -D gatsby-source-dogapi
gatsby-config.js
file:1module.exports = { 2 siteMetadata: { 3 title: 'Wow! Such site! Very title', 4 }, 5 plugins: [ 6 { 7 resolve: "gatsby-source-dogapi", 8 options: { 9 "limit": 10, 10 "page": 0, 11 "order": "DESC", 12 "x-api-key": "YOUR_API_KEY", 13 }, 14 }, 15 'gatsby-plugin-offline', 16 ], 17}
This source plugin supports all options present within the Dog API but you can only get images for now. Here's the options you can use:
Option | Default | Description |
---|---|---|
limit | 1 | [Optional] number of images to return valid 1 to 10 |
page | 0 | [Optional] only works if account_id is present to page through your own uploads |
order | DESC | [Optional] only works if account_id is present, either ASC or DESC - ascending or descending |
x-api-key | null | [Optional] your API key (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) |
Get more documentation about The Dog API here.
To query 10 random images:
{
allDogApiPic {
edges {
node {
id
url
sub_id
created_at
original_filename
}
}
}
}
To query 1 random image:
{
allDogApiPic(limit: 1) {
edges {
node {
id
url
sub_id
created_at
original_filename
}
}
}
}
Example output:
1{ 2 "data": { 3 "allDogApiPic": { 4 "edges": [ 5 { 6 "node": { 7 "id": "22ae1251-42f1-55b7-835a-77b59115b76c", 8 "url": "https://cdn2.thedogapi.com/images/Skx45T6EQ.gif", 9 "sub_id": "tumblr_o6kk05nXYJ1tlb56zo1_400.gif", 10 "created_at": "2018-07-31T11:38:15.000Z", 11 "original_filename": "tumblr_o6kk05nXYJ1tlb56zo1_400.gif" 12 } 13 } 14 ] 15 } 16 } 17}
Here's a link to your localhost query.
Released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/2 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
38 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-03-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More