{"id":17022811,"url":"https://github.com/yinkakun/gatsby-source-hnapi","last_synced_at":"2026-04-09T11:09:47.883Z","repository":{"id":107942342,"uuid":"439931077","full_name":"yinkakun/gatsby-source-hnapi","owner":"yinkakun","description":"Source plugin for pulling data into Gatsby from node-hnapi, an unofficial API for Hacker News.","archived":false,"fork":false,"pushed_at":"2021-12-19T19:26:51.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-27T22:13:21.613Z","etag":null,"topics":["gatsby","gatsby-source-hnapi","gatsby-source-plugin","hackernews"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/yinkakun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-19T17:52:25.000Z","updated_at":"2021-12-20T08:06:29.000Z","dependencies_parsed_at":"2023-03-13T14:29:41.881Z","dependency_job_id":null,"html_url":"https://github.com/yinkakun/gatsby-source-hnapi","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinkakun%2Fgatsby-source-hnapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinkakun%2Fgatsby-source-hnapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinkakun%2Fgatsby-source-hnapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yinkakun%2Fgatsby-source-hnapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yinkakun","download_url":"https://codeload.github.com/yinkakun/gatsby-source-hnapi/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244999407,"owners_count":20544873,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gatsby","gatsby-source-hnapi","gatsby-source-plugin","hackernews"],"created_at":"2024-10-14T07:11:21.425Z","updated_at":"2025-12-30T22:47:52.003Z","avatar_url":"https://github.com/yinkakun.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## gatsby-source-hnapi\n\nSource plugin for pulling data into Gatsby from [node-hnapi](https://github.com/cheeaun), an unofficial API for Hacker News.\n\n## Install\n\n```sh\nnpm install gatsby-source-hnapi\n\n#or\n\nyarn add gatsby-source-hnapi\n```\n\n## How to use\n\n```js\n// In your gatsby-config.js\nplugins: [`gatsby-source-hnapi`];\n```\n\n## How To Query\n\nReturns 30 results for `allHnTopstories`, `allHnLateststories`, `allHnBeststories`, `allHnAsks`, `allHnShow`, and `allHnJobs`.\n\n```graphql\nquery MyQuery {\n  allHnLatestStories {\n    nodes {\n      title\n      url\n      points\n      user\n      id\n      time_ago\n      time\n      domain\n      comments\n    }\n  }\n}\n```\n\n## Credits\n\nThis plugin is wrapper around [node-hnapi](https://github.com/cheeaun/node-hnapi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinkakun%2Fgatsby-source-hnapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyinkakun%2Fgatsby-source-hnapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyinkakun%2Fgatsby-source-hnapi/lists"}