GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

graphql-yoga

🧘 Rewrite of a fully-featured GraphQL Server with focus on easy setup, performance & great developer experience. The core of Yoga implements WHATWG Fetch API and can run/deploy on any JS environment.

  • 语言TypeScript
  • 默认分支main
  • 大小142.6 MB
  • 更新1 天前
  • Issues138
在 GitHub 打开
avatargraphql-hive

项目介绍

graphql-hive/graphql-yoga 是一个托管在 GitHub 上的开源项目,主要使用 TypeScript 编写,采用 MIT License 许可证,目前获得 8.5k 个 Star、602 次 Fork。

仓库全名
graphql-hive/graphql-yoga

README 摘要

GraphQL Yoga Fully-featured GraphQL Server with focus on easy setup, performance & great developer experience Go to documentation Quick start Install Start Make a schema, create Yoga and start a Node server: 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)…

完整内容见 GitHub 原始 README 或本页 。

常见问题

graphql-yoga 用什么语言开发?

主要使用 TypeScript 编写,采用 MIT License 许可证,目前有 8.5k 个 Star。

graphql-yoga 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 graphql-yoga 的源码?

可以直接克隆仓库:git clone https://github.com/graphql-hive/graphql-yoga.git,默认分支为 main;安装与运行步骤见仓库 README。

graphql-yoga 最近还在维护吗?

仓库最近一次更新为 1 天前,当前有 138 个未关闭 Issue;Star 数为 8.5k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

freeCodeCamp/freeCodeCamp avatar
freeCodeCampfreeCodeCamp
4 小时前
459.1k
47.5k
190

freeCodeCamp.org 的开源代码库和课程体系。免费学习数学、编程和计算机科学。

learn-to-codenonprofitsprogramming+7
TypeScript
571.2 MB
9
详情
morluto/rea avatar
reamorluto
1 小时前
457.2k
111.9k
939

借助智能体逆向分析任何内容,从应用行为直至原生二进制文件。

agent-skillsaiandroid+17
TypeScript
159.2 MB
0
详情
openclaw/openclaw avatar
openclawopenclaw
1 小时前
394.4k
82.9k
8.1k

真正做实事的 AI。任何 OS。任何平台。龙虾之道。🦞

aiassistantcrustacean+4
TypeScript
14.0 GB
18
详情
nilbuild/developer-roadmap avatar
developer-roadmapnilbuild
11 小时前
372.0k
46.2k
0

交互式路线图、指南及其他教育内容,帮助开发者在职业生涯中成长。

computer-scienceroadmapdeveloper-roadmap+7
TypeScript
356.3 MB
2
详情
deepseek-ai/deepseek-harness avatar
deepseek-harnessdeepseek-ai
12 小时前
280.4k
34.4k
0

DeepSeek Harness:一切皆插件。

ai-agentscordisdsh+1
TypeScript
380.6 MB
3
详情
anomalyco/opencode avatar
opencodeanomalyco
1 小时前
226.6k
30.7k
4.0k

开源编码代理。

TypeScript
708.5 MB
0
详情
vuejs/vue avatar
vuevuejs
2024年10月10日
212.5k
34.0k
368

这是 Vue 2 的仓库。如需 Vue 3,请前往 https://github.com/vuejs/core

vuejavascriptfrontend+1
TypeScript
31.4 MB
0
详情
n8n-io/n8n avatar
n8nn8n-io
2 小时前
210.4k
61.5k
1.2k

具备原生 AI 能力的公平代码工作流自动化平台。将可视化构建与自定义代码相结合,支持自托管或云端部署,提供 400+ 种集成。

automationipaasn8n+7
TypeScript
804.7 MB
3
详情

关于

bundenofetchgraphqlgraphql-serverjavascriptnodejsthe-guildtypescriptw3cwhatwg
  • MIT License
  • 8.5k Stars
  • 602 Forks
  • 62 Watching

简要分析

热度分
9805
价值分
5303
活跃状态
活跃
GitHub

语言占比

CSS
HTML
JavaScript
MDX
TypeScript

Release

  • [email protected]3 周前
  • @graphql-yoga/[email protected]3 周前
  • @graphql-yoga/[email protected]3 周前
  • @graphql-yoga/[email protected]3 周前
  • @graphql-yoga/[email protected]3 周前

贡献者

renovate[bot]renovate[bot]ardatanardatanschicklingschicklinggithub-actions[bot]github-actions[bot]n1ru4ln1ru4ldependabot[bot]dependabot[bot]enisdenjoenisdenjorenovate-botrenovate-botsaihajsaihajtheguild-bottheguild-botEmrysMyrddinEmrysMyrddinmaticzavmaticzav

GraphQL Yoga

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

npm bundlephobia minified size bundlephobia minified+zipped size bundlephobia treeshaking license

Quick start

Install

pnpm add graphql-yoga graphql

Start

Make a schema, create Yoga and start a Node server:

import { createServer } from 'node:http'
import { createSchema, createYoga } from 'graphql-yoga'

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

const server = createServer(yoga)

server.listen(4000, () => {
  console.info('Server is running on http://localhost:4000/graphql')
})

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

  • Fully typed with TypeScript
  • GraphQL over HTTP spec compliant
  • GraphiQL included
  • File uploads with GraphQL Multipart Request spec
  • Subscriptions and realtime capabilities
  • Automatic persisted queries
  • Built-in parsing and validation caching
  • Testing utilities
  • Supports ESM
  • Runs everywhere, including environments like:
    • Deno
    • Bun
    • Cloudflare Workers
    • AWS Lambda
    • And other…
  • And more…

Documentation

Our documentation website will help you get started.

Examples

We’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.

Comparison

Read more about how GraphQL Yoga compares to other servers in the ecosystem here.

Contributing

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

For this project in particular, to get started on stage/2-failing-test:

  1. Install Node.js
  2. Run in your terminal: npm i -g pnpm@8 && pnpm install && pnpm build
  3. Add tests to packages/graphql-yoga/__tests__ using Jest APIs
  4. Run the tests with pnpm test

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 Code of Conduct as adopted from Contributor Covenant.

License

MIT

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
7.1万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。