{"name":"graphql-yoga","version":"3.9.1-rc-20230418133209-b93b5b3b","keywords":["graphql","server","api","graphql-server"],"author":{"url":"https://saihaj.dev/","name":"Saihajpreet Singh","email":"saihajpreet.singh@gmail.com"},"license":"MIT","_id":"graphql-yoga@3.9.1-rc-20230418133209-b93b5b3b","maintainers":[{"name":"dotansimha","email":"dotansimha@gmail.com"}],"homepage":"https://github.com/dotansimha/graphql-yoga#readme","bugs":{"url":"https://github.com/dotansimha/graphql-yoga/issues"},"dist":{"shasum":"d05bb524a3a305b519824cfdbd6a7e9e431d6a61","tarball":"http://registry-npm.ywwl.com/graphql-yoga/download/graphql-yoga-3.9.1-rc-20230418133209-b93b5b3b.tgz","fileCount":148,"integrity":"sha512-Xhko9l0dB3EVYkCjDIiDeAiM0ogmF/RqYnugghy4W/Hzp+C7kLR8RO38XPsHmbbd/Z/ynjNmvAEJ6N3yNuZrQg==","signatures":[{"sig":"MEYCIQCkn5l12F9ehtbYYJOAjEY2z7e8KZRqQVxDRBZ2OYp6iAIhAIQ4CE4qhzh+QLgAsJZHVHJAQDC9ti0tPfwLgGr5ZlTQ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":242097,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPpwVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoYsQ/+Ktt/VlMiBwDOYwiiYIUe4RBOK/7joB/vNuE1GBmrRN9qPKCQ\r\nPz0YuubZkLj/7BnFlZQPh5IrQ9XGqBcXRU1xXHp+7C/4PowRk4XvkAjCaKIQ\r\nnq3rjf357hGf7HVU4NBICO4bY775wJO40No5Np5HcY7AQnaZCeqGhl4hToxy\r\nSZZpRTUjnW7qEFraAcDY6478/23KivY9xHV3uQwLuQB36LSAbNVK3PJUYf7m\r\ncOnZOZhO+lvSl7NMdkomdKPG48/sNVFdgvdN4FHbLPnIJMCYhTrQwvhV2p35\r\no4OzpQuhlNdp+SBQOiZuQjLHkavwxLhpf9ExTWtDgz1GppAbesZ1H7tCBgHc\r\nrGHrgrdEM0KW5m5rWvJIapc9Flg3HJ/2h2kfhZi+z9cTs24V4UI3HmMkkV+f\r\nzjlCHfhn8Fy3kz9QBQTLbhdBtvLhChesfRZNt7IHBB4PGb1zWgAGpgg0lKFP\r\nkB/q+n2TJnz9CH5Py07DSVlwM3ObW3yPSACKAE6Mvhr5U8rmJuTwv39LtuKY\r\nNNvksBtNuH+9BiJ1zRnphxJNxA8/JO9HEQNUqlES4Ey42gqUujTknW8t9W4M\r\ndYru+Iaaj9QW6I8FM1HjHMi2SL0FpcVZjFX2cb5bKoRV+hoD20I+S197r77i\r\nJQNrrbeTUE6iLqmOo8lTsXFQNA+HUQZlKz4=\r\n=3L/A\r\n-----END PGP SIGNATURE-----\r\n","size":50104,"noattachment":false,"key":"/graphql-yoga/-/graphql-yoga-3.9.1-rc-20230418133209-b93b5b3b.tgz"},"main":"cjs/index.js","type":"module","_from":"file:graphql-yoga-3.9.1-rc-20230418133209-b93b5b3b.tgz","module":"esm/index.js","readme":"<div align=\"center\"><img src=\"./website/public/cover.png\" width=\"720\" /></div>\n\n<div align=\"center\">\n  <h3>GraphQL Yoga</h3>\n  <h6>Fully-featured GraphQL Server with focus on easy setup, performance & great developer experience</h6>\n  <a href=\"https://www.the-guild.dev/graphql/yoga-server/v3\"><b>Go to documenation</b></a>\n</div>\n\n<br />\n\n<div align=\"center\">\n\n![npm](https://badgen.net/npm/v/graphql-yoga)\n![bundlephobia minified size](https://badgen.net/bundlephobia/min/graphql-yoga)\n![bundlephobia minified+zipped size](https://badgen.net/bundlephobia/minzip/graphql-yoga)\n![bundlephobia treeshaking](https://badgen.net/bundlephobia/tree-shaking/graphql-yoga)\n![license](https://badgen.net/github/license/dotansimha/graphql-yoga)\n\n</div>\n\n## Quick start\n\n### Install\n\n```sh\npnpm add graphql-yoga graphql\n```\n\n### Start\n\nMake a schema, create Yoga and start a Node server:\n\n```ts\nimport { createSchema, createYoga } from 'graphql-yoga'\nimport { createServer } from 'node:http'\n\nconst yoga = createYoga({\n  schema: createSchema({\n    typeDefs: /* GraphQL */ `\n      type Query {\n        hello: String\n      }\n    `,\n    resolvers: {\n      Query: {\n        hello: () => 'Hello from Yoga!'\n      }\n    }\n  })\n})\n\nconst server = createServer(yoga)\n\nserver.listen(4000, () => {\n  console.info('Server is running on http://localhost:4000/graphql')\n})\n```\n\n## Overview\n\n- **Easiest way to run a GraphQL server:** Sensible defaults & includes everything you need with minimal setup (we also export a platform/env-agnostic handler so you can build your own wrappers easily).\n- **Includes Subscriptions:** Built-in support for GraphQL subscriptions using [**S**erver-**S**ent **E**vents](https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events).\n- **Compatible:** Works with all GraphQL clients ([Apollo](https://www.apollographql.com/docs/react/), [Relay](https://relay.dev/), [Urql](https://formidable.com/open-source/urql/)...) and fits seamless in your GraphQL workflow.\n- **WHATWG Fetch API:** the core package depends on [WHATWG Fetch API](https://fetch.spec.whatwg.org/) so it can run and deploy on any environment (Serverless, Workers, Deno, Node).\n- **Easily Extendable:** New GraphQL-Yoga support all [`envelop`](https://www.envelop.dev) plugins.\n\n## [Features](https://www.the-guild.dev/graphql/yoga-server/v3)\n\n- Fully typed with [TypeScript](https://www.typescriptlang.org)\n- [GraphQL over HTTP spec compliant](https://github.com/enisdenjo/graphql-http/tree/master/implementations/graphql-yoga)\n- [GraphiQL included](https://www.the-guild.dev/graphql/yoga-server/v3/features/graphiql)\n- [File uploads with GraphQL Multipart Request spec](https://www.the-guild.dev/graphql/yoga-server/v3/features/file-uploads)\n- [Subscriptions and realtime capabilities](https://www.the-guild.dev/graphql/yoga-server/v3/features/subscriptions)\n- [Automatic persisted queries](https://www.the-guild.dev/graphql/yoga-server/v3/features/automatic-persisted-queries)\n- [Built-in parsing and validation caching](https://www.the-guild.dev/graphql/yoga-server/v3/features/parsing-and-validation-caching)\n- [Testing utilities](https://www.the-guild.dev/graphql/yoga-server/v3/features/testing)\n- Supports [ESM](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules)\n- Runs **everywhere**, including environments like:\n  - [Deno](https://www.the-guild.dev/graphql/yoga-server/v3/integrations/integration-with-deno)\n  - [Bun](https://www.the-guild.dev/graphql/yoga-server/v3/integrations/integration-with-bun)\n  - [Cloudflare Workers](https://www.the-guild.dev/graphql/yoga-server/v3/integrations/integration-with-cloudflare-workers)\n  - [AWS Lambda](https://www.the-guild.dev/graphql/yoga-server/v3/integrations/integration-with-aws-lambda)\n  - [_And other..._](https://www.the-guild.dev/graphql/yoga-server/v3/integrations/z-other-environments)\n- [_And more..._](https://www.the-guild.dev/graphql/yoga-server/v3)\n\n## [Documentation](https://www.the-guild.dev/graphql/yoga-server/v3)\n\nOur [documentation website](https://www.the-guild.dev/graphql/yoga-server/v3) will help you get started.\n\n## [Examples](https://github.com/dotansimha/graphql-yoga/tree/main/examples)\n\nWe've made sure developers can quickly start with GraphQL Yoga by providing a comprehensive set of examples. [See all of them in the `examples/` folder.](https://github.com/dotansimha/graphql-yoga/tree/main/examples)\n\n## [Comparison](https://www.the-guild.dev/graphql/yoga-server/v3/comparison)\n\nRead more about how GraphQL Yoga compares to other servers in the ecosystem [here](https://www.the-guild.dev/graphql/yoga-server/v3/comparison).\n\n## Contributing\n\nIf this is your first time contributing to this project, please do read our [Contributor Workflow Guide](https://github.com/the-guild-org/Stack/blob/master/CONTRIBUTING.md) before you get started off.\n\nFeel free to open issues and pull requests. We're always welcome support from the community.\n\n## Code of Conduct\n\nHelp us keep Yoga open and inclusive. Please read and follow our [Code of Conduct](https://github.com/the-guild-org/Stack/blob/master/CODE_OF_CONDUCT.md) as adopted from [Contributor Covenant](https://www.contributor-covenant.org/).\n\n## License\n\nMIT\n","exports":{".":{"import":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"default":{"types":"./typings/index.d.ts","default":"./esm/index.js"},"require":{"types":"./typings/index.d.cts","default":"./cjs/index.js"}},"./package.json":"./package.json"},"typings":"typings/index.d.ts","_npmUser":{"name":"dotansimha","email":"dotansimha@gmail.com"},"_resolved":"/tmp/9c5718dab43056a5907a38bb23c71ebe/graphql-yoga-3.9.1-rc-20230418133209-b93b5b3b.tgz","_integrity":"sha512-Xhko9l0dB3EVYkCjDIiDeAiM0ogmF/RqYnugghy4W/Hzp+C7kLR8RO38XPsHmbbd/Z/ynjNmvAEJ6N3yNuZrQg==","repository":{"url":"git+https://github.com/dotansimha/graphql-yoga.git","type":"git","directory":"packages/graphql-yoga"},"typescript":{"definition":"typings/index.d.ts"},"_npmVersion":"9.5.0","description":"<div align=\"center\"><img src=\"./website/public/cover.png\" width=\"720\" /></div>","directories":{},"sideEffects":false,"_nodeVersion":"18.15.0","dependencies":{"dset":"^3.1.1","tslib":"^2.3.1","lru-cache":"^7.14.1","@envelop/core":"^3.0.4","@whatwg-node/fetch":"^0.8.4","@whatwg-node/server":"^0.7.3","@graphql-tools/utils":"^9.2.1","@graphql-yoga/logger":"^0.0.1","@graphql-tools/schema":"^9.0.18","@graphql-tools/executor":"^0.0.18","@envelop/validation-cache":"^5.1.2","@graphql-yoga/subscription":"^3.1.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","peerDependencies":{"graphql":"^15.2.0 || ^16.0.0"},"_npmOperationalInternal":{"tmp":"tmp/graphql-yoga_3.9.1-rc-20230418133209-b93b5b3b_1681824789306_0.012903746880544631","host":"s3://npm-registry-packages"},"publish_time":1681824789561,"_cnpm_publish_time":1681824789561,"dist-tags":{"alpha":"6.2.0-alpha-20261126100851-58d9782f151a975e802f1a545a315263d8d886a7","beta":"2.0.0-beta.8","canary":"2.13.7-canary-4a8cc11.0","latest":"6.1.1","rc":"6.1.2-rc-20261124205929-9595907fc2bef8a397343bd288fef4685ab9f508","three":"3.0.0-next.12"}}