{"id":40140772,"url":"https://github.com/kamilkodzi/star-api","last_synced_at":"2026-01-19T14:12:46.474Z","repository":{"id":211755081,"uuid":"728729211","full_name":"kamilkodzi/star-api","owner":"kamilkodzi","description":"Graph QL wrapper for https://swapi.dev/ ( The best Star Wars API )","archived":false,"fork":false,"pushed_at":"2023-12-10T20:03:49.000Z","size":34,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-04-25T05:05:18.433Z","etag":null,"topics":["apollo-server","apollographql","dataloader","deduplication","docker","docker-compose","graphql","hot-reload","nodemon"],"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/kamilkodzi.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}},"created_at":"2023-12-07T15:08:43.000Z","updated_at":"2023-12-10T20:07:17.000Z","dependencies_parsed_at":"2023-12-10T17:52:40.888Z","dependency_job_id":null,"html_url":"https://github.com/kamilkodzi/star-api","commit_stats":null,"previous_names":["kamilkodzi/star-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kamilkodzi/star-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilkodzi%2Fstar-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilkodzi%2Fstar-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilkodzi%2Fstar-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilkodzi%2Fstar-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kamilkodzi","download_url":"https://codeload.github.com/kamilkodzi/star-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kamilkodzi%2Fstar-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28571589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T12:50:50.164Z","status":"ssl_error","status_checked_at":"2026-01-19T12:50:42.704Z","response_time":67,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["apollo-server","apollographql","dataloader","deduplication","docker","docker-compose","graphql","hot-reload","nodemon"],"created_at":"2026-01-19T14:12:45.986Z","updated_at":"2026-01-19T14:12:46.465Z","avatar_url":"https://github.com/kamilkodzi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# If you ever wonder how to start working with Apollo server + GraphQL\n\nThis is just starting point for further developlemt.\n\n### Area to investigate:\n\n1. Add Redis server to docker-compose+network and use in project\n2. Cache each fetch results in to redis (watchout for null responses)\n3. Is possible to use just `Film` query with optional param`(id)` and return `Film[] | Film` instead of using `Films`\n4. Add tests - probably Jest can suit all needs\n\n## This is simple example of reducing deduplication (n+1) problem\n\nPackaget that fix problem:\n`datasource-rest`\n`dataloader`\n\n## Running application locally:\n\nMy node version = 20.9.0\n\n1. `git clone https://github.com/kamilkodzi/star-api.git`\n1. `cd star-api`\n1. `npm i`\n1. `npm run dev`\n\n## Running applicaton with Docker\n\nBe sure you have docker instaled on your system, then:\n\n1. `cd infra\\docer-compose\\`\n1. `docker-compose up`\n1. visit `http://localhost:4000/`\n   Projest starts on dev mode with hot-reloading,\n   so uou can add any console.log() just like that\n   [TIP]:\n   Use query bellow and watch console.\n   Each fetch will be prompt\n\n### Fishy query with deduplication:\n\n```js\nquery Films {\n  films {\n    title\n    producer\n    planets {\n      terrain\n      name\n      films {\n        species {\n          name\n          language\n        }\n      }\n    }\n    characters {\n      name\n    }\n    vehicles {\n      name\n      pilots {\n        name\n      }\n    }\n  }\n}\n`\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamilkodzi%2Fstar-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkamilkodzi%2Fstar-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkamilkodzi%2Fstar-api/lists"}