• Stars
    star
    221
  • Rank 179,216 (Top 4 %)
  • Language
    JavaScript
  • License
    Apache License 2.0
  • Created almost 8 years ago
  • Updated over 5 years ago

Reviews

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

Repository Details

A graphical interactive in-browser GraphQL IDE enhanced with tabbed navigation, HTTP headers, arbitrary endpoints, etc.

GraphiQL Workspace

npm version

A graphical interactive in-browser GraphQL IDE (GraphiQL), enhanced with following features:

  • Tabbed navigation
  • HTTP header editor
  • Arbitrary endpoint support
  • Workspace save/load (as JSON file)
  • Local storage support
  • Request proxy
  • Saved queries
  • Query history

You can use it in your own projects like this:

import React from 'react';
import ReactDOM from 'react-dom';
import {GraphiQLWorkspace, AppConfig} from 'graphiql-workspace';

import 'graphiql-workspace/graphiql-workspace.css'
import 'graphiql/graphiql.css'

const config = new AppConfig("graphiql", bootstrapOptions);
ReactDOM.render(<GraphiQLWorkspace config={config} />, document.getElementById('graphiql-workspace'));

You still will need to add bootstrap CSS in you final application. For instance, you can use bootstrap-loader in webpack config. For an example application, that uses graphiql-workspace, check out graphql-toolbox

Here is how it look like in your browser:

graphiql-workspace

Getting started

After you cloned the project, do the npm install and then use ./scripts/build.sh or ./scripts/quickBuild.sh to build the project.

In order to see it in action, you can use an example html page ./example/index.html.

Standalone Usage

Here is an example HTML:

<!doctype html>

<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>GraphiQL Workspace Example</title>

    <link rel="stylesheet" media="screen" href="//maxcdn.bootstrapcdn.com/bootstrap/latest/css/bootstrap.min.css">
    <link rel="stylesheet" media="screen" href="//cdnjs.cloudflare.com/ajax/libs/graphiql/0.11.6/graphiql.min.css">
    <link rel="stylesheet" media="screen" href="//cdn.jsdelivr.net/npm/[email protected]/graphiql-workspace.min.css">

    <script src="//cdn.jsdelivr.net/npm/[email protected]/react.min.js"></script>
    <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/react-dom.min.js"></script>
    <script src="//cdn.jsdelivr.net/npm/[email protected]/graphiql-workspace.min.js"></script>
  </head>
  <body>
    <div id="workspace" class="graphiql-workspace"></div>

    <script>
      var config = new graphiqlWorkspace.AppConfig("graphiql", {});

      ReactDOM.render(
        React.createElement(graphiqlWorkspace.GraphiQLWorkspace, {config: config}),
        document.getElementById('workspace'));
    </script>
  </body>
</html>

Community

  • graphiql-workspace-app — an instance of create-react-app that wraps graphiql-workspace. Can be easily launched at graphiql.yourcompany.com as a lightweight Docker container (< 20MB). Hosted on GitLab.

More Repositories

1

scala-icon

Simple scala icon with shadow
65
star
2

graphql-gateway

SDL-based GraphQL gateway for REST and GraphQL-based micro-services
Scala
54
star
3

sangria-http4s-graalvm-example

An example of GraphQL server built with sangria, http4s and circe which compiles and runs as a GraalVM native image.
Scala
42
star
4

graphql-toolbox

GraphQL Toolbox - a set of GraphQL tools to help with GraphQL server and client development.
JavaScript
34
star
5

sangria-scalaio-demo

A demo project used in my scala.io talk.
Scala
29
star
6

hacking-scala-blog

Blog posts from hacking-scala.tumblr.com
HTML
20
star
7

presentation-graphql-introduction

"Introduction to GraphQL" presentation
CSS
19
star
8

sangria-auth-example

An example GraphQL server written with akka-http and sangria that authenticates users.
Scala
16
star
9

graalvm-native-image

GraalVM native-image as a docker container
Dockerfile
13
star
10

jmx-firewall-friendly-agent

JMX firewall friendly java agent
Java
10
star
11

sangria-tcp-msgpack-example

An example TCP GraphQL server that uses a binary data format (MessagePack)
Scala
7
star
12

sangria-optics-agent

Apollo Optics agent for Scala and Sangria
Scala
7
star
13

clojure-icons

Simple clojure icons and wallpapers
6
star
14

cornichon-gherkin

Cornichon - Gherkin integration
Scala
4
star
15

graalvm-sangria-test

An example of sangria + circe app compiled with GraalVM native-image.
Scala
2
star
16

circleci-agent

Generic docker container for a CI node (GCE, k8s, helm, gpg, git-crypt, etc.)
Shell
2
star
17

presentation-graphql-with-sangria

"GraphQL with Sangria" presentation
CSS
2
star
18

my-blog-images

Some images for blogs
1
star
19

toodledo-highlighter

toodledo-highlighter is Google Chrome extension that shows fields with user defined colors and improves layout
JavaScript
1
star
20

lunch-o-matic-4000

The ultimate lunch decision maker
HTML
1
star
21

cornichon-logo

Cornichon Logo
1
star
22

presentation-graphql-ct

CSS
1
star
23

angelsmasterpiece-maven-repo

Angel's Masterpiece Maven 2 Repository
1
star
24

presentation-graphql-type-system-scaladays

"GraphQL - a type system for your API" presentation at ScalaDays 2017
CSS
1
star
25

my-scala-stuff

Some of my Scala stuff to play with
Scala
1
star
26

scala-essentials

General purpose library for scala projects. It provides easy command line processing, configuration , etc....
Scala
1
star
27

presentation-building-graphql-api-with-sangria-scalaio

"Building GraphQL API with Sangria" presentation at Scala.io 2018
CSS
1
star
28

presentation-implementing-graphql

"Implementing GraphQL" presentation
CSS
1
star
29

spring-scala-util

Spring-Scala Utilities. Provides scala namespace that includes different utility tags (e.g. for creating scala collections).
Scala
1
star