You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

gatsby-source-hnapi

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gatsby-source-hnapi

A gatsby plugin to pull data from node-hnapi, an unofficial API for Hacker News.

0.1.1
latest
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

gatsby-source-hnapi

Source plugin for pulling data into Gatsby from node-hnapi, an unofficial API for Hacker News.

Install

npm install gatsby-source-hnapi

#or

yarn add gatsby-source-hnapi

How to use

// In your gatsby-config.js
plugins: [`gatsby-source-hnapi`];

How To Query

Returns 30 results for allHnTopstories, allHnLateststories, allHnBeststories, allHnAsks, allHnShow, and allHnJobs.

query MyQuery {
  allHnLatestStories {
    nodes {
      title
      url
      points
      user
      id
      time_ago
      time
      domain
      comments
    }
  }
}

Credits

This plugin is wrapper around node-hnapi

Keywords

gatsby

FAQs

Package last updated on 19 Dec 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