• Stars
    star
    319
  • Rank 131,491 (Top 3 %)
  • Language
    Rust
  • License
    MIT License
  • Created almost 2 years ago
  • Updated 4 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

GraphQL + TypeScript toolchain

nitrogql logo

GraphQL + TypeScript. Done right.

Documentation

nitrogql

nitrogql is a toolchain for using GraphQL in TypeScript projects. Main features include:

Type generation with sourcemap support.

nitrogql generates TypeScript types for your GraphQL schema and queries. It also generates a sourcemap file that maps the generated types to the original GraphQL schema and queries. With sourcemaps, you will never see generated code in your IDE, and you will always be able to jump to the original source code.

VSCode's "Peek Definition" command showing the original GraphQL query

Static check for GraphQL code.

nitrogql can check your GraphQL code statically and guard you from any runtime errors caused by type mismatch.

Result of running nitrogql check on a sample project

And more planned...

Type generation currently only supports client side code (usage with GraphQL clients like Apollo Client). Support for writing server side code (resolvers) is planned.

Installation

Install the nitrogql CLI with npm:

npm install --save-dev @nitrogql/cli

The CLI will enable you to check GraphQL files and generate types. Read more about the CLI in the CLI documentation.

To use GraphQL in your front-end project, you will also need to install appropriate loader.

For webpack-based projects:

npm install --save-dev @nitrogql/graphql-loader

For Rollup-based projects:

npm install --save-dev @nitrogql/rollup-plugin

More Repositories

1

better-typescript-lib

Better TypeScript standard library
TypeScript
423
star
2

eslint-plugin-import-access

TypeScript
364
star
3

rocon

Router Library with Ultimate Type Safety
TypeScript
248
star
4

lightwindcss

TypeScript
168
star
5

typescript-puzzle

Learn TypeScript with Type Puzzles.
TypeScript
94
star
6

please-star-first

GitHub Action that automatically closes issues opened by non-stargazers
JavaScript
89
star
7

jinrou

Are you a werewolf?
CoffeeScript
75
star
8

castella

CSS in JS library for React, backed by Web Components
TypeScript
62
star
9

react-wc

TypeScript
57
star
10

ts-array-length

TypeScript utilities for dealing with array length
TypeScript
56
star
11

the-html-programming-language

TypeScript
55
star
12

blog.uhy.ooo

blog.uhy.ooo
MDX
50
star
13

react-suspense-handson

TypeScript
31
star
14

eslint-plugin-var-length

TypeScript
30
star
15

eslint-plugin-tree-shakable

TypeScript
30
star
16

ui-library-benchmark

TypeScript
24
star
17

react-19-beta-playground

TypeScript
24
star
18

EmojiScript

A fork of TypeScript with better emoji support
TypeScript
22
star
19

rsc-without-nextjs

Sample repository for a Zenn article
TypeScript
21
star
20

tenji

Converts Japanese text and ็‚นๅญ—.
TypeScript
21
star
21

async-object-stack

A wrapper of AsyncLocalStorage for structural logging
TypeScript
21
star
22

resourcebundles

Resource Bundles Toolkit
TypeScript
19
star
23

zenn.dev

Articles for zenn.dev
15
star
24

custom-emojis

JavaScript
15
star
25

akitainu

Unified linting tool for node.js projects
TypeScript
12
star
26

css-grid-quiz

TypeScript
11
star
27

tenji-web

Web UI for the tenji package.
JavaScript
9
star
28

recoil-infinite-scroll-sample

TypeScript
8
star
29

react-suspense-handson-2

TypeScript
7
star
30

a11y-browser

TypeScript
7
star
31

chrome-xxxx

A โ–ˆโ–ˆโ–ˆโ–ˆing extension.
TypeScript
6
star
32

ts-satisfactory-plugin

TypeScript
6
star
33

mu-5000-app

TypeScript
5
star
34

react-usememo-bench

TypeScript
5
star
35

everycolor

Gives name to every color
TypeScript
5
star
36

blue-eyes

The Blue Eyes Red Monster
TypeScript
5
star
37

proxy-for-mammonists

JavaScript
5
star
38

expunged-site

Nunjucks
4
star
39

liquid

Liquid Types Inference for a ML-like language.
OCaml
4
star
40

socketchat

JavaScript
4
star
41

rocon-website

Rocon Website
TypeScript
4
star
42

counter-button-maker

ๆŠผใ™ใจๆ•ฐใŒๅข—ใˆใ‚‹ใƒœใ‚ฟใƒณใ‚’ไฝœใ‚‹ใ‚ตใƒผใƒ“ใ‚น
TypeScript
4
star
43

react-hooks-sandbox

JavaScript
3
star
44

footnotes-view

HTML
3
star
45

react-concurrent-sandbox

TypeScript
3
star
46

mjapp

mjapp.
JavaScript
3
star
47

record-high-calendar

TypeScript
3
star
48

gulp-typed-css-modules

Gulp plugin for typed-css-modules
JavaScript
3
star
49

masaospace

Masao posting space.
TypeScript
3
star
50

is-othello

ใ‚ชใ‚ปใƒญใƒ—ใƒญใƒˆใ‚ณใƒซใฎใ‚ใ‚Œใงใ™ใ€‚
TypeScript
3
star
51

masao-editor-core

Web Masao Editor.
TypeScript
3
star
52

canvasmasaoconverter

Chrome extentions that converts Java Masao into Canvas Masao.
JavaScript
3
star
53

eternal-summer-vacation

TypeScript
3
star
54

event-bubbling

TypeScript
3
star
55

masao-js

Utilities for Canvas Masao.
TypeScript
3
star
56

rsc-transfer-size-exp

TypeScript
3
star
57

masao-editor-standalone

Standalone masao editor.
TypeScript
2
star
58

any-coverage

TypeScript
2
star
59

dns-propagation

TypeScript
2
star
60

gengou-yosou

JavaScript
2
star
61

wordetymologiesmatter

HTML
2
star
62

rust-othello

Rust
2
star
63

uhyoooooo

uhyoooooo!!!!!! (socket.io game engine/server)
JavaScript
2
star
64

uhyohyo.net

uhyohyo.net
WebAssembly
2
star
65

bf-gen

BF-like language generator
TypeScript
2
star
66

bf-wasm

Branfuck interpreter for wasm
Rust
2
star
67

ltl-formula

LTL Formula -> Bรผchi automaton
JavaScript
2
star
68

recoil-uncontrolled-form

TypeScript
2
star
69

jinrou-doc-2

ๆœˆไธ‹ไบบ็‹ผ document.
JavaScript
2
star
70

tex-unicode

unc
TypeScript
2
star
71

emoji-world

http://xn--vg8h70c.uhyo.space/
JavaScript
2
star
72

mc_extensions

Extensions for the Canvas Masao.
JavaScript
2
star
73

x-dot-com

HTML
2
star
74

bf-backend

b
TypeScript
1
star
75

cards

JavaScript
1
star
76

my-static

My static website generator for me.
TypeScript
1
star
77

swc-styled-plugin-bug-repro

TypeScript
1
star
78

recoil-vs-rxjs-example

TypeScript
1
star
79

declarative-shadow-dom-sample

Declarative Shadow DOM Sample
CSS
1
star
80

game

node game!
JavaScript
1
star
81

my-router

My simple path router for me.
CoffeeScript
1
star
82

h-n-component

TypeScript
1
star
83

brainfuck-jit

Brainfuck interpreter written in JavaScript.
JavaScript
1
star
84

canvasmasao

JavaScript
1
star
85

my-react-hooks

A collection of my React Hooks for me.
TypeScript
1
star
86

spec-masao

Website for masao technical information
Pug
1
star
87

rotary-element

Rotary Element Demo.
JavaScript
1
star
88

dice-columbus

TypeScript
1
star
89

node-local

gone...
JavaScript
1
star
90

node-hakoniwa

hakoniwa
CoffeeScript
1
star
91

nanikiru

What's this?
JavaScript
1
star
92

graphql-resolvers-test

Sample repository for a Zenn article
JavaScript
1
star
93

tandem-repeat

Report
Rust
1
star
94

html5step

HTML5 onigiri game
JavaScript
1
star
95

domdom-talks-1

HTML
1
star
96

bf-bench

Benchmarking Brainfuck interpreter for my report.
JavaScript
1
star
97

my-list-tree

Make lists fancy trees.
TypeScript
1
star
98

nanohasimjs

A simulator written by JavaScript.
TypeScript
1
star
99

test-masao

masao
CoffeeScript
1
star
100

quiz-llm

TypeScript
1
star