[!IMPORTANT] Conductor gateway is still under development, and currently available as alpha.
Please use it with caution. Feedback and Contributions are always welcome!
Conductor is a cutting-edge, open-source GraphQL Gateway, fully compliant with the GraphQL specification and designed to supercharge any GraphQL API with a number of powerful features and proxy flows. Crafted entirely in Rust, it offers unparalleled performance and a great developer experience, making it an ideal choice for projects requiring advanced GraphQL capabilities.
Conductor's configuration can be defined in both YAML and JSON formats. The config file contains several key sections:
server:
port: 9000
logger:
filter: error
sources:
- type: graphql
id: my-source
config:
endpoint: https://my-source.com/graphql
endpoints:
- path: /graphql
from: my-source
plugins:
- type: cors
config:
allowed_origin: "*"
- type: graphiql
{
"server": {
"port": 9000
},
"logger": {
"filter": "error"
},
"sources": [
{
"type": "graphql",
"id": "my-source",
"config": {
"endpoint": "https://my-source.com/graphql"
}
}
],
"endpoints": [
{
"path": "/graphql",
"from": "my-source",
"plugins": [
{
"type": "cors",
"config": {
"allowed_origin": "*"
}
},
{
"type": "graphiql"
}
]
}
]
}
Conductor can be ran via the docker image, and it can even be ran via npx
for quick and convenient usage. It also fully supports running as a WASM on Cloudflare Workers, providing flexibility in deployment options.
npx @graphql-conductor/bin ./conductor.config.yaml
Or, locally:
cargo run --bin conductor ./conductor.config.json
If config is not provided as the first argument, Conductor will try to read config.json
from the root by default. For more details on setting up and running Conductor, refer to our documentation.
Contributions, issues and feature requests are very welcome. If you are using this package and fixed a bug for yourself, please consider submitting a PR!
And if this is your first time contributing to this project, please do read our Contributor Workflow Guide before you get started off.
Help us keep Conductor open and inclusive. Please read and follow our Code of Conduct as adopted from Contributor Covenant
Conductor is open-source software licensed under MIT.