{"id":13700838,"url":"https://github.com/ryanhs/graphql-koa-scripts","last_synced_at":"2025-05-04T19:33:28.017Z","repository":{"id":37028155,"uuid":"264289646","full_name":"ryanhs/graphql-koa-scripts","owner":"ryanhs","description":"Apollo Graphql + Koa, just a simplified setup","archived":false,"fork":false,"pushed_at":"2025-03-17T07:46:41.000Z","size":531,"stargazers_count":2,"open_issues_count":12,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-17T08:40:55.063Z","etag":null,"topics":["graphql","graphql-koa-scripts","koa2","nodejs"],"latest_commit_sha":null,"homepage":"https://ryanhs.github.io/graphql-koa-scripts/","language":"JavaScript","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/ryanhs.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}},"created_at":"2020-05-15T20:14:48.000Z","updated_at":"2024-12-09T03:32:44.000Z","dependencies_parsed_at":"2023-02-15T20:45:43.650Z","dependency_job_id":"83f7dcfc-3bee-49fa-b521-f19ef533f46f","html_url":"https://github.com/ryanhs/graphql-koa-scripts","commit_stats":null,"previous_names":[],"tags_count":31,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhs%2Fgraphql-koa-scripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhs%2Fgraphql-koa-scripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhs%2Fgraphql-koa-scripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanhs%2Fgraphql-koa-scripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanhs","download_url":"https://codeload.github.com/ryanhs/graphql-koa-scripts/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252389427,"owners_count":21740133,"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":["graphql","graphql-koa-scripts","koa2","nodejs"],"created_at":"2024-08-02T20:01:02.698Z","updated_at":"2025-05-04T19:33:27.699Z","avatar_url":"https://github.com/ryanhs.png","language":"JavaScript","readme":"# Graphql Koa Scripts\n\n![npm](https://img.shields.io/npm/v/graphql-koa-scripts)  ![node-current](https://img.shields.io/node/v/graphql-koa-scripts)  [![Build Status](https://travis-ci.com/ryanhs/graphql-koa-scripts.svg?branch=master)](https://travis-ci.com/ryanhs/graphql-koa-scripts)  [![Coverage Status](https://coveralls.io/repos/github/ryanhs/graphql-koa-scripts/badge.svg?branch=master)](https://coveralls.io/github/ryanhs/graphql-koa-scripts?branch=master)  \n\n\nDocumentation: [https://ryanhs.github.io/graphql-koa-scripts/](https://ryanhs.github.io/graphql-koa-scripts/)\n\n## Motivation\n\nThis scripts made to be simplify the setup of projects. with koa + apollo graphql.\n\nI really want to make a project setup as simple as possible:\n  - `index.js`,\n  - `package.json`,\n  - `Dockerfile` (optional when needed)\n\nThats it! no more overhead setup.\n\n\n## Example index.js\n\nWith this enough `index.js`, graphql already setup. This what simple is?\n\n*Notes: if you use subscription on your graphql, it will automatically listen subscription-ws.*\n\n```javascript\nconst { Server } = require('graphql-koa-scripts');\n\nServer({\n  configure: () =\u003e ({ PORT: 14099 }),\n\n  router(_, { graphqlHandler }) {\n    graphqlHandler({\n      typeDefs: `\n          type Query {\n            hello: String\n          }\n        `,\n      resolvers: {\n        Query: {\n          hello: () =\u003e 'Awesome!',\n        },\n      },\n      endpointUrl: '/graphql',\n    });\n  },\n})\n```\n\n\n## Installation\n\nTo install just use `yarn` or `npm`. Example:\n```sh\nyarn add graphql-koa-scripts\n```\n\n\n## [Examples](https://ryanhs.github.io/graphql-koa-scripts/#/examples)\n\n\n## [API References](https://ryanhs.github.io/graphql-koa-scripts/#/API)\n\n\n## LICENSE\n\nMIT\n","funding_links":[],"categories":["Implementations"],"sub_categories":["JavaScript/TypeScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanhs%2Fgraphql-koa-scripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanhs%2Fgraphql-koa-scripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanhs%2Fgraphql-koa-scripts/lists"}