> For the complete documentation index, see [llms.txt](https://guide.graphqleditor.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://guide.graphqleditor.com/graphql-editor/graph/generate-typescript-javascript-client-library.md).

# Generate TypeScript library

GraphQL Editor offers an easy way to generate autocomplete JS/TS clients for Browser/Node/React Native. Working with a generated client provides an easy and **type-safe** way for developers to work with their schema. To generate an autocomplete library your schema should  at least have a **root schema Query type.**

To generate a GraphQL Client:

1. Click the Export schema icon
2. Select Export autocomplete libraries

<figure><img src="/files/v0HycYsNhB1NddJ6mZb5" alt=""><figcaption><p>Export option in the menu</p></figcaption></figure>
