1.2.1 • Published 5 years ago

graphql-birdseye v1.2.1

Weekly downloads
62
License
MIT
Repository
github
Last release
5 years ago

NPM JavaScript Style Guide

Description

Birdseye is an interactive tool that dynamically displays GraphQL schemas. It helps teams visualize and understand the nodes and connections within their schema. Birdseye was built using jointJS and makes for a lightweight addition to any web project.

Features

  1. Graphical view of any GraphQL schema
  2. Ability to click on a field or type to view its connections
  3. Dynamic zooming to focus on small portions of the schema at a time
  4. Add to any web project
  5. Customizable styling and theming

React Package Documentation

This is the documentation to use Birdseye as a React package. To learn how to use Birdseye as a Javascript library, please refer to the core repository README.

Installation

Install using NPM or yarn

NPM
npm install --save graphql-birdseye
Yarn
yarn add graphql-birdseye

Usage

Here’s an example of how to use Birdseye in a React project. See the API Reference for how to pass your schema to the component.

import * as React from "react";

import GraphqlBirdseye from "graphql-birdseye";

class Example extends React.Component {
  render() {
    return (
      <GraphqlBirdseye
        introspectionQuery={dummySchema.data}
        style={{ height: "100vh" }}
      />
    );
  }
}

Try this example in code sandbox: Edit graphql-birdseye-demo

We used Birdseye as React package in our demo site. You can download and test that code in the example folder in the main repository.

API

NameTypeDescription
introspectionQueryJSON objectPass your schema as a JSON of an introspection query response. Use this introspection query to return your schema as a GraphQL schema object.
schemaGraphQL schema objectPass your schema as a GraphQL schema object. Return using makeExecutableSchema from GraphQL tools.
styleobjectPass in an object to style the container. Example style={{ height: "100vh" }}
themeobjectAn object defining the theme of the components. Theme objects should follow the type defined here. Here's a full example.

Roadmap

We have plans to keep improving Birdseye. Here's what is next: 1. Improve performance for larger schemas 2. Option to toggle zoom navigation style 3. Smoother UI transitions and interactions

Contributing

This is an open source project. To learn how to contribute, please check out our contributing guide.

License

MIT © Novvum


1.2.1

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.2

5 years ago

1.1.2-rc2

5 years ago

1.1.2-rc1

5 years ago

1.1.1

5 years ago

1.1.1-rc10

5 years ago

1.1.1-rc6

5 years ago

1.1.1-rc5

5 years ago

1.1.1-rc4

5 years ago

1.1.1-rc3

5 years ago

1.1.1-rc2

5 years ago

1.1.1-rc1

5 years ago

1.1.0

5 years ago

1.1.0-rc4

5 years ago

1.1.0-rc3

5 years ago

1.1.0-rc2

5 years ago

1.1.0-rc1

5 years ago

1.0.9

5 years ago

1.0.9-rc10

5 years ago

1.0.9-rc9

5 years ago

1.0.9-rc8

5 years ago

1.0.9-rc7

5 years ago

1.0.9-rc6

5 years ago

1.0.9-rc5

5 years ago

1.0.9-rc4

5 years ago

1.0.9-rc3

5 years ago

1.0.9-rc2

5 years ago

1.0.9-rc1

5 years ago

1.0.8

5 years ago

1.0.8-rc1

5 years ago

1.0.7

5 years ago

1.0.6-rc3

5 years ago

1.0.6-rc2

5 years ago

1.0.6-rc1

5 years ago

1.0.6

5 years ago

1.0.5-rc1

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago