{"id":21466591,"url":"https://github.com/permafrost-dev/hacker-news-graphql","last_synced_at":"2026-05-19T07:33:35.908Z","repository":{"id":37057944,"uuid":"373493038","full_name":"permafrost-dev/hacker-news-graphql","owner":"permafrost-dev","description":"Hacker News GraphQL server","archived":false,"fork":false,"pushed_at":"2026-02-13T19:16:54.000Z","size":100,"stargazers_count":0,"open_issues_count":14,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-02-14T02:29:52.272Z","etag":null,"topics":["graphql","graphql-server","hackernews"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/permafrost-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2021-06-03T12:06:01.000Z","updated_at":"2022-02-12T00:23:11.000Z","dependencies_parsed_at":"2025-05-23T05:32:03.786Z","dependency_job_id":"0fa89003-6d76-4271-baec-751db2a8e01c","html_url":"https://github.com/permafrost-dev/hacker-news-graphql","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/permafrost-dev/hacker-news-graphql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fhacker-news-graphql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fhacker-news-graphql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fhacker-news-graphql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fhacker-news-graphql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/permafrost-dev","download_url":"https://codeload.github.com/permafrost-dev/hacker-news-graphql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/permafrost-dev%2Fhacker-news-graphql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33206320,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-19T07:16:55.748Z","status":"ssl_error","status_checked_at":"2026-05-19T07:16:54.366Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["graphql","graphql-server","hackernews"],"created_at":"2024-11-23T08:14:41.384Z","updated_at":"2026-05-19T07:33:35.889Z","avatar_url":"https://github.com/permafrost-dev.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Hacker News GraphQL server\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://codecov.io/gh/permafrost-dev/hacker-news-graphql/branch/main/graph/badge.svg?token=7QchRpYsX1\" alt=\"codecov\" /\u003e\n\u003c/p\u003e\n\n## Development setup\n\nCreate a `.env` file in the project directory:\n\n```\nNODE_ENV=development\nPORT=3000\nHACKERNEWS_API_URL=https://hacker-news.firebaseio.com/v0\nCACHE_DRIVER=memory\n```\n\n_The `CACHE_DRIVER` variable can be either `memory` or `redis` - if `redis`, then a Redis service is assumed to be running._\n\n\nThen install the dependencies and run `start:dev`, which both builds the application using `esbuild` and runs it:\n\n```bash\nnpm install\nnpm run start:dev\n```\n\nBrowse to `http://127.0.0.1:3000/graphql` in your browser to open the GraphiQL explorer.\n\n\n## Examples\n\nReturn the first 5 top stories from HN:\n\n```gql\nquery {\n  stories(first: 5, kind: TOP) {\n    title\n    url\n    time\n    commentCount\n    score\n    author {\n      id\n      karma\n    }\n    comments(first: 2) {\n      author {\n        id\n        karma\n      }\n      time\n      text\n    }\n  }\n}\n```\n\n\n## Running tests\n\nTo run the tests successfully, you need to start the test http server first, which returns the data stored in `tests/fixtures`.\n\nOnce the test http server is running, you may run the jest test suite using `npm run test`.\n\n```bash\ncd tests/server\nnpm install\ncd -\nnode tests/server/index.js \u0026\nnpm run test\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermafrost-dev%2Fhacker-news-graphql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpermafrost-dev%2Fhacker-news-graphql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpermafrost-dev%2Fhacker-news-graphql/lists"}