@chillicream/nitro-embedded
TypeScript icon, indicating that this package has built-in type declarations

21.0.2 • Public • Published

Nitro GraphQL IDE

GraphQL IDE for Devs

Description

The IDE to create, explore, manage, and test GraphQL APIs with ease.

Installation

Install this package in your project:

npm install @chillicream/nitro-embedded --save-dev
# or
yarn add @chillicream/nitro-embedded --dev
# or
pnpm add @chillicream/nitro-embedded --save-dev

Recipes

🔗 Usage with express
Install the middleware in your project:
npm install @chillicream/nitro-express-middleware --save-dev
# or
yarn add @chillicream/nitro-express-middleware --dev
# or
pnpm add @chillicream/nitro-express-middleware --save-dev

Add it to your /graphql route or any other (e.g., /nitro):

import express from "express";
import nitroMiddleware from "@chillicream/nitro-express-middleware";

// ...

const app = express();

app.use(
  "/graphql",

  // for `cdn` hosted version
  nitroMiddleware({ mode: "cdn" })

  // for `embedded` version
  // nitroMiddleware({ mode: "embedded" }),

  // place here your graphql middleware and others
);

app.listen(3000, () => {
  console.log(`GraphQL on http://localhost:3000/graphql`);
});

Package Sidebar

Install

npm i @chillicream/nitro-embedded

Weekly Downloads

189

Version

21.0.2

License

SEE LICENSE FILE

Unpacked Size

11.9 MB

Total Files

50

Last publish

Collaborators

  • rafaelstaib