Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
G

graphql-yoga

> 后端框架
Open source

Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API

8.5K stars0 likes0 views
WebsiteGitHub

About

Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API

GraphQL Yoga

Fully-featured GraphQL Server with focus on easy setup, performance & great developer experience

Docs

Installation

bash
npm i @graphql-yoga/node graphql

Quickstart

You will need to provide schema to Yoga, either by an existing executable schema, or by providing your type definitions and resolver map:

typescript
import { createServer } from '@graphql-yoga/node'

const server = createServer({
  schema: {
    typeDefs: /* GraphQL */ `
      type Query {
        hello: String
      }
    `,
    resolvers: {
      Query: {
        hello: () => 'Hello from Yoga!',
      },
    },
  },
})

server.start()

Overview

  • 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).
  • Includes Subscriptions: Built-in support for GraphQL subscriptions using Server-Sent Events.
  • Compatible: Works with all GraphQL clients (Apollo, Relay, Urql...) and fits seamless in your GraphQL workflow.
  • WHATWG Fetch API: the core package depends on WHATWG Fetch API so it can run and deploy on any environment (Serverless, Workers, Deno, Node).
  • Easily Extendable: New GraphQL-Yoga support all envelop plugins.

Features

  • GraphQL over HTTP spec compliant
  • TypeScript
  • File upload with GraphQL Multipart Request spec
  • Realtime capabilities
  • Accepts application/json, application/graphql+json, application/x-www-form-urlencoded, application/graphql and multipart/formdata content-types
  • Supports ESM
  • Runs everywhere: Can be deployed via now, up, AWS Lambda, Heroku etc.

Contributing

If this is your first time contributing to this project, please do read our Contributor Workflow Guide before you get started off.

Feel free to open issues and pull requests. We're always welcome support from the community.

Code of Conduct

Help us keep Yoga open and inclusive. Please read and follow our of Conduct as adopted from Contributor Covenant

License

MIT

Issues· 146 open

View all issuesOpen on GitHub
  • #3109

    Yoga/Envelop Response cache caches even when the result contains non-cacheable type

    kind/enhancementkind/docsgood first issueUpdated Sep 26, 2026
  • #4579

    Support NestJS v12 / @nestjs/graphql v14 peer dependencies in @graphql-yoga/nestjs

    Updated Sep 20, 2026
  • #3388

    Add a `createChild` method to the logger

    Updated Sep 14, 2026
  • #4565

    Add option to nest `useOpenTelemetry` resolver spans by field path

    Updated Sep 14, 2026
  • #4561

    response-cache: purgeResponse leaks empty Sets from entityToResponseIds under eviction pressure

    Updated Sep 12, 2026
  • #4576

    MCP Support

    Updated Sep 12, 2026
  • #4564

    Switch from `prom-client` to `@prometheus-io/client`.

    Updated Sep 7, 2026
  • #4412

    Duplicate transfer-encoding header when using multipart/mixed with uWebSockets.js

    Updated Mar 24, 2026
  • #691

    Dependency Dashboard

    Updated Mar 8, 2026
  • #4335

    useJWT DPoP support

    Updated Jan 31, 2026

> Tags

TypeScriptbundenofetchgraphql

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 30, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架