{"id":23711200,"url":"https://github.com/daphnesmit/koa-typescript-graphql-starter","last_synced_at":"2026-04-13T17:03:25.342Z","repository":{"id":54462223,"uuid":"339344521","full_name":"daphnesmit/koa-typescript-graphql-starter","owner":"daphnesmit","description":"KOA server, GraphQL and Typescript starter","archived":false,"fork":false,"pushed_at":"2021-05-11T17:32:30.000Z","size":107,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-30T06:47:44.857Z","etag":null,"topics":["graphql","koa","nodejs","server","typescript"],"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/daphnesmit.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}},"created_at":"2021-02-16T09:21:29.000Z","updated_at":"2021-05-11T17:32:33.000Z","dependencies_parsed_at":"2022-08-13T16:20:42.381Z","dependency_job_id":null,"html_url":"https://github.com/daphnesmit/koa-typescript-graphql-starter","commit_stats":null,"previous_names":[],"tags_count":0,"template":true,"template_full_name":null,"purl":"pkg:github/daphnesmit/koa-typescript-graphql-starter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daphnesmit%2Fkoa-typescript-graphql-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daphnesmit%2Fkoa-typescript-graphql-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daphnesmit%2Fkoa-typescript-graphql-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daphnesmit%2Fkoa-typescript-graphql-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daphnesmit","download_url":"https://codeload.github.com/daphnesmit/koa-typescript-graphql-starter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daphnesmit%2Fkoa-typescript-graphql-starter/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31761996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T15:25:13.801Z","status":"ssl_error","status_checked_at":"2026-04-13T15:25:09.162Z","response_time":93,"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","koa","nodejs","server","typescript"],"created_at":"2024-12-30T19:34:32.211Z","updated_at":"2026-04-13T17:03:25.302Z","avatar_url":"https://github.com/daphnesmit.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# koa-typescript-graphql-starter\nKOA server, GraphQL and Typescript starter.\n\n\n## Installation\n\n### Dependencies\n\nStart installing the dependencies by running `npm i`\n\n### Environment Variables\nCheck out the `example.env` for available env variables.\n\nWe are using dotenv.\n\nCreate a `.env` file and fill in your env variables.\n\n## Start Development Server\n\nStart the development server and the worker by running:\n\n```\nnpm run dev\n```\n\n\nThis will run ts-node-dev to start the development server.\n\nThe development server will be served from the port set in your env file (default 4000).\nOn that port you will now see the GraphQL playground.\n\n## Run Production Build\n\nBuild and start a production server and the worker by running:\n\n```\nnpm run build \u0026\u0026 npm run start\n```\n\nThis will build the .js files to the ./dist folder and start node in production mode.\n\n\n## Examples\n\n### Example Query\nTo trigger the example query use the following GraphQL query in the GraphQL Playground.\n\n```gql\nfragment Example on Example {\n  id\n  title\n}\n\nquery GetExample($id: String!) {\n  example(id: $id) {\n    ...Example\n  }\n}\n```\n### Example Mutation\nTo make the example mutation use the following GraphQL query in the GraphQL Playground.\n\n```gql\nmutation UpdateExample($input: ExampleInput!) {\n  updateExample(input: $input) {\n    id\n  }\n}\n```\n\n### Example Subscription\nI added 2 pubsub mechanisms as examples to use for you as inspiration. One is based on redis and the other one is based on Apollo Server pubsub.\nYou can find them in the folders `src/graphql/subscriptions/redis` and  `src/graphql/subscriptions/graphql`.\n\nTo start listening to the example subscription use the following GraphQL query in the GraphQL Playground.\n(Our example triggers a pubsub update when you're firing the example mutation for testing purposes. See `src/graphql/resolvers/example/mutations.ts`)\n\n```gql\nsubscription ExampleUpdated {\n  exampleUpdated {\n    id\n    title\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaphnesmit%2Fkoa-typescript-graphql-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaphnesmit%2Fkoa-typescript-graphql-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaphnesmit%2Fkoa-typescript-graphql-starter/lists"}