
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
ruru-components
Advanced tools
Grafast-flavoured GraphiQL distribution; the underlying React components
The React components behind ruru, in case you want to embed Ruru into an existing React project.
PRERELEASE: this is pre-release software; use at your own risk and do not embed into public-facing projects. This will likely change a lot before it's ultimately released. The pre-release nature also explains the shocking lack of documentation.
For other usage patterns, please see the main ruru package.
import "graphiql/style.css";
import "@graphiql/plugin-explorer/style.css";
import "ruru-components/ruru.css";
// Have Webpack include the Monaco workers
import "graphiql/setup-workers/webpack";
// Or: import "graphiql/setup-workers/vite";
// Or: see "Monaco workers" below
import { Ruru } from "ruru-components";
React.render(<Ruru endpoint="/graphql" />);
If you can't use graphiql/setup-workers/webpack (or
graphiql/setup-workers/vite for Vite) to set up the Monaco workers for you,
then instead add this <script> block to your HTML above your Ruru import:
<script type="module">
/* Set up monaco workers */
import createJSONWorker from "https://esm.sh/monaco-editor/esm/vs/language/json/json.worker.js?worker";
import createGraphQLWorker from "https://esm.sh/monaco-graphql/esm/graphql.worker.js?worker";
import createEditorWorker from "https://esm.sh/monaco-editor/esm/vs/editor/editor.worker.js?worker";
globalThis.MonacoEnvironment = {
getWorker(_workerId, label) {
switch (label) {
case "json":
return createJSONWorker();
case "graphql":
return createGraphQLWorker();
default:
return createEditorWorker();
}
},
};
</script>
FAQs
Grafast-flavoured GraphiQL distribution; the underlying React components
The npm package ruru-components receives a total of 1,553 weekly downloads. As such, ruru-components popularity was classified as popular.
We found that ruru-components demonstrated a healthy version release cadence and project activity because the last version was released less than 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.