https://github.com/cometkim/rescript-codegen
ReScript code generator and toolkit for GraphQL/OpenAPI integration
https://github.com/cometkim/rescript-codegen
Last synced: 7 months ago
JSON representation
ReScript code generator and toolkit for GraphQL/OpenAPI integration
- Host: GitHub
- URL: https://github.com/cometkim/rescript-codegen
- Owner: cometkim
- License: mit
- Created: 2024-01-03T20:14:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-03T20:15:00.000Z (over 2 years ago)
- Last Synced: 2025-02-01T13:42:24.911Z (over 1 year ago)
- Language: TypeScript
- Size: 986 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rescript-codegen
ReScript code generator and toolkit for GraphQL/OpenAPI integration, powered by [GraphQL Code Generator](https://the-guild.dev/graphql/codegen) & [GraphQL Mesh](https://the-guild.dev/graphql/mesh)
## Not only GraphQL!
It can handle OpenAPI (or Swagger) for sure!
```mermaid
flowchart TB
source[OpenAPI Spec]
step1([GraphQL Mesh - OmniGraph])
result1[GraphQL Definitions]
step2([GraphQL Mesh - GraphQL Codegen])
result2[ReScript Types & Client Stubs]
source --> step1 --> result1 --> step2 --> result2
```
Generated runtime will be ran on the [graphql-js](https://github.com/graphql/graphql-js), it's not that different compared to other typical client runtime implementations.
## LICENSE
[MIT](LICENSE)