An open API service indexing awesome lists of open source software.

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

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)