Gathering detailed insights and metrics for gatsby-source-pocket
Gathering detailed insights and metrics for gatsby-source-pocket
Gathering detailed insights and metrics for gatsby-source-pocket
Gathering detailed insights and metrics for gatsby-source-pocket
npm install gatsby-source-pocket
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
39 Commits
2 Forks
1 Watchers
2 Branches
5 Contributors
Updated on Feb 27, 2024
Latest Version
3.1.0
Package Id
gatsby-source-pocket@3.1.0
Unpacked Size
11.79 kB
Size
4.74 kB
File Count
7
NPM Version
6.14.17
Node Version
14.21.2
Published on
Feb 19, 2023
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
2
1
☠️ THIS PROJECT IS NO LONGER MAINTAINED ☠️
Please use gatsby-source-pocketapi instead 🚀
Fetch data from Pocket API.
An example site for this plugin is available:
Gatsby@4
Gatsby@3
and lowernpm install --save gatsby-source-pocket
Go to https://getpocket.com/developer/ and create a new app to get your consumer key.
Run node node_modules/node-getpocket/authorise --consumerkey 'YOUR-CONSUMER-KEY'
and point your browser to http://127.0.0.1:8080to get your POCKET_ACCESS_TOKEN
string.
For more info on this process see https://github.com/vicchi/node-getpocket, which this plugin uses to talk to the Pocket API.
In your gatsby-config.js
1module.exports = { 2 plugins: [ 3 { 4 resolve: `gatsby-source-pocket`, 5 options: { 6 consumerKey: INSERT_HERE_YOUR_POCKET_CONSUMER_KEY, 7 accessToken: INSERT_HERE_YOUR_POCKET_ACCESS_TOKEN, 8 weeksOfHistory: 52, 9 apiMaxRecordsToReturn: 3000, 10 getCurrentWeekOnly: `n`, 11 stateFilterString: "archive", 12 tagFilter: false, 13 tagFilterString: "_untagged_", 14 favouriteFilter: false, 15 favouriteFilterValue: 0, 16 searchFilter: false, 17 searchFilterString: "These 21 things", 18 domainFilter: false, 19 domainFilterString: "buzzfeed.com" 20 } 21 } 22 ] 23};
n
will fetch data based on the settings above.y
returns the current week and the last week (it'll make sense when you try it).unread
= only return unread items.archive
= only return archived items.all
= return both unread and archived items.true
will use the tagFilterString
value to get articles with that tag.false
will ignore the tagFilterString
valuetagFilter
is true then get articles tagged with this value. '\_untagged\_'
will only return articles with no tags.true
will use the favouriteFilterValue
to get articles that have/have not been favourited in Pocketfalse
will ignore the favouriteFilterValue
0
= only return un-favorited items1
= only return favorited itemstrue
will use the searchFilterString
value to get articles with that value in the URL or title.false
will ignore the searchFilterString
valuesearchFilter
is true then get articles with this value in the URL or title.true
will use the domainFilterString
value to get articles for that domain.false
will ignore the domainFilterString
valuedomainFilter
is true then get articles from this domain.Below is a sample query for fetching all Article nodes.
1query PageQuery { 2 allPocketArticle(sort: { fields: readWeek }) { 3 edges { 4 node { 5 id 6 url 7 title 8 favourite 9 excerpt 10 is_article 11 is_index 12 has_video 13 has_image 14 word_count 15 tags 16 time_read 17 readDay 18 readWeek 19 articleDomain 20 domainFavicon 21 image { 22 item_id 23 src 24 width 25 height 26 } 27 } 28 } 29 } 30}
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 3
Details
Reason
Found 6/23 approved changesets -- score normalized to 2
Reason
project is archived
Details
Reason
detected GitHub workflow tokens with excessive permissions
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
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
79 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-07
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