# elm-graphql

Autogenerate type-safe GraphQL queries in Elm.

Canonical page: https://www.reposhelf.co.uk/projects/github/dillonkearns/elm-graphql.html

- Project ID: dillonkearns/elm-graphql
- Source: GitHub
- Original project: https://github.com/dillonkearns/elm-graphql
- Description attribution: project author metadata
- Categories: Other
- Technologies: Not recorded
- Licence: BSD-3-Clause
- Repository availability checked: 2026-11-05T21:14:19.467Z
- Demo page loaded: 2026-11-23T17:43:45.096Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Why use this package over the other available Elm GraphQL packages? This is the only one that generates type-safe code for your entire schema. Check out this blog post, Type-Safe &amp; Composable GraphQL in Elm, to learn more about the motivation for this library. \(It's also the only type-safe library with Elm 0.18 or 0.19 support, see this discourse thread\).

> I built this package because I wanted to have something that:

> dillonkearns/elm-graphql is an Elm package and accompanying command-line code generator that creates type-safe Elm code for your GraphQL endpoint. You don't write any decoders for your API with dillonkearns/elm-graphql, instead you simply select which fields you would like, similar to a standard GraphQL query but in Elm. For example, this GraphQL query

- Gives you type-safe GraphQL queries \(if it compiles, it's valid according to the schema\),
- Creates decoders for you in a seamless and failsafe way, and
- Eliminates GraphQL features in favor of Elm language constructs where possible for a simpler UX \(for example, GraphQL variables &amp; fragments should just be Elm functions, constants, lets\).

## Author-documented requirements and audience

> Why use this package over the other available Elm GraphQL packages? This is the only one that generates type-safe code for your entire schema. Check out this blog post, Type-Safe &amp; Composable GraphQL in Elm, to learn more about the motivation for this library. \(It's also the only type-safe library with Elm 0.18 or 0.19 support, see this discourse thread\).



- Paid service — Required: To do that, you will need to use custom code or a package that knows how to communicate over websockets \(or whichever protocol\) to setup a subscription with your particular framework.

Not recorded: Account, External API key, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/dillonkearns/elm-graphql/blob/master/README.md

Extraction checked: 2026-11-05T21:14:19.563Z

Last recorded source update: 2026-02-14T02:47:31.000Z

Saved release: Not recorded. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=dillonkearns%2Felm-graphql). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
