A simple Package to convert your REST API into a GQL API

Usage no npm install needed!

<script type="module">
  import easyresttogql from 'https://cdn.skypack.dev/easyresttogql';


EasyRESTToGQL · Tests npm version GitHub license PRs Welcome

A package to simple convert your REST API into a GQL API


Using npm:

$ npm i easyRESTToGQL

In Node.js:

// Load the full build.
const { Server, Fields, Entities} = require('easyRESTToGQL');
const { StringField, IntField } = Fields;
const { Entity } = Entities;

const nameField = new StringField("name");
const ageField = new IntField("age");

const clientEntity = new Entity("Client", "localhost:3000/clients",[nameField, ageField]);

const server = new Server("4000",[clientEntity]);


For more examples visit the example folder


Semantic Versioning

EasyRESTToGQL follows semantic versioning. We release patch versions for critical bugfixes, minor versions for new features or non-essential changes, and major versions for any breaking changes. When we make breaking changes, we also introduce deprecation warnings in a minor version so that our users learn about the upcoming changes and migrate their code in advance.

Every significant change is documented in the changelog file.


Every two weeks there is a release. If you want to know what are the features we are working, here are the current sprint tasks.


Code of Conduct

EasyRESTToGQL has adopted the Contributor Covenant as its Code of Conduct, and we expect project participants to adhere to it. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing Guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to EasyRESTToGQL.


Special thanks to contributors


EasyRESTToGQL is MIT licensed