Security News
PyPI’s New Archival Feature Closes a Major Security Gap
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
vite-plugin-graphiql
Advanced tools
Integrate GraphiQL IDE in your Vite projects
Please note that this plugin is only intended to be used in development mode.
First, install the plugin:
npm install --save-dev vite-plugin-graphiql
yarn add --dev vite-plugin-graphiql
pnpm add --save-dev vite-plugin-graphiql
GraphiQL
requires graphql
to be installed in
your project; so install that too if you haven't already.
Then, import and add the plugin to your vite.config.ts
and pass in the
required configuration options:
import { defineConfig } from 'vite'
import graphiql from 'vite-plugin-graphiql'
export default defineConfig({
plugins: [
graphiql({
client: {
url: 'https://mygraphqlapi.com/graphql',
},
}),
],
})
Now start your dev server and navigate to http://localhost:5173/__graphiql
to
see the GraphiQL IDE.
You can find the full configuration options here.
Inspired by @unocss/inspector
Licensed under the MIT License.
FAQs
Integrate GraphiQL IDE in your Vite projects
The npm package vite-plugin-graphiql receives a total of 79 weekly downloads. As such, vite-plugin-graphiql popularity was classified as not popular.
We found that vite-plugin-graphiql demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now allows maintainers to archive projects, improving security and helping users make informed decisions about their dependencies.
Research
Security News
Malicious npm package postcss-optimizer delivers BeaverTail malware, targeting developer systems; similarities to past campaigns suggest a North Korean connection.
Security News
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.