{"id":15192619,"url":"https://github.com/hoangvvo/graphyne","last_synced_at":"2025-10-02T08:31:06.188Z","repository":{"id":57253753,"uuid":"253918366","full_name":"hoangvvo/graphyne","owner":"hoangvvo","description":"⚡ Lightning-fast JavaScript GraphQL Server ⚡","archived":true,"fork":false,"pushed_at":"2020-08-27T13:58:16.000Z","size":2314,"stargazers_count":19,"open_issues_count":13,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-09-28T22:01:15.262Z","etag":null,"topics":["framework-agnostic","graphql","graphql-server","javascript","node","web-worker"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hoangvvo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-04-07T21:41:52.000Z","updated_at":"2023-01-28T13:06:09.000Z","dependencies_parsed_at":"2022-09-02T10:52:05.282Z","dependency_job_id":null,"html_url":"https://github.com/hoangvvo/graphyne","commit_stats":null,"previous_names":[],"tags_count":120,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangvvo%2Fgraphyne","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangvvo%2Fgraphyne/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangvvo%2Fgraphyne/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hoangvvo%2Fgraphyne/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hoangvvo","download_url":"https://codeload.github.com/hoangvvo/graphyne/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234957792,"owners_count":18913349,"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":["framework-agnostic","graphql","graphql-server","javascript","node","web-worker"],"created_at":"2024-09-27T22:00:21.393Z","updated_at":"2025-10-02T08:31:00.863Z","avatar_url":"https://github.com/hoangvvo.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003e # This project has been renamed to `benzene`. https://github.com/hoangvvo/benzene \n\n# Graphyne\n\n![ci](https://github.com/hoangvvo/graphyne/workflows/Test%20and%20coverage/badge.svg)\n[![codecov](https://codecov.io/gh/hoangvvo/graphyne/branch/master/graph/badge.svg)](https://codecov.io/gh/hoangvvo/graphyne)\n[![PRs Welcome](https://badgen.net/badge/PRs/welcome/ff5252)](/CONTRIBUTING.md)\n\nA **lightning-fast** JavaScript GraphQL Server, featuring:\n\n- Caching of query validation and compilation with LRU strategy.\n- Highly performant Just-In-Time compiler via [graphql-jit](https://github.com/zalando-incubator/graphql-jit).\n- Lightweight, non-opinionated, and non-coupled integration with great extensibility: Does nothing more but returning handler functions to integrate into framework' routers, web workers, or [`ws`](https://github.com/websockets/ws).\n\n## Why\n\n`Graphyne` uses `graphql-jit` under the hood to compile queries into optimized functions that significantly improve performance ([more than 10 times better than `graphql-js`](https://github.com/zalando-incubator/graphql-jit#benchmarks)). By furthur caching the compiled queries in memory using a LRU strategy, `Graphyne` manages to become lightning-fast.\n\n## Examples\n\nSee [examples](examples).\n\n## Packages\n\n### Graphyne Server\n\n[![npm](https://badgen.net/npm/v/graphyne-server)](https://www.npmjs.com/package/graphyne-server)\n\nFast and simple GraphQL Server for Node.js frameworks.\n\n[Documentation](packages/graphyne-server) [npm](https://www.npmjs.com/package/graphyne-server)\n\n### Graphyne Worker\n\n[![npm](https://badgen.net/npm/v/graphyne-worker)](https://www.npmjs.com/package/graphyne-worker)\n\nRun GraphQL execution layer in the browser ([Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Web_Workers_API)) and at the edge ([Cloudflare Workers®](https://workers.cloudflare.com/)).\n\n[Documentation](packages/graphyne-worker) [npm](https://www.npmjs.com/package/graphyne-worker)\n\n### Graphyne WebSocket\n\n[![npm](https://badgen.net/npm/v/graphyne-ws)](https://www.npmjs.com/package/graphyne-ws)\n\nAdd WebSocket support to `graphyne-server`. Implements [GraphQL over WebSocket Protocol](https://github.com/apollographql/subscriptions-transport-ws/blob/master/PROTOCOL.md).\n\n[Documentation](packages/graphyne-ws) [npm](https://www.npmjs.com/package/graphyne-ws)\n\n## Features / TODO\n\n`Graphyne` is a work-in-progress. It is obviously not battle-tested and lack several features. My plan for now is to implement the following:\n\n- [x] WebSocket/Subscriptions\n- [ ] Persisted queries\n- [ ] Federation\n- [ ] Gateway\n\nGraphQL execution layer is also bounded by the limitation of [graphql-jit](https://github.com/zalando-incubator/graphql-jit#differences-to-graphql-js). Yet, I have been using it in production and see no problems for my use-cases.\n\n## Contributing\n\nPlease see my [contributing.md](/CONTRIBUTING.md).\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoangvvo%2Fgraphyne","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhoangvvo%2Fgraphyne","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhoangvvo%2Fgraphyne/lists"}