Socket
Socket
Sign inDemoInstall

@graphistry/client-api-react

Package Overview
Dependencies
64
Maintainers
5
Versions
93
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphistry/client-api-react

Embed a Graphistry visualization via React


Version published
Maintainers
5
Weekly downloads
853
decreased by-18.99%

Weekly downloads

Readme

Source

Graphistry's Client API React Component

Automatically upload and visualize datasets using React, powered by Graphistry's GPU graph visualization infrastructure.

Install

npm install @graphistry/client-api-react

Usage

import React from 'react';
import ReactDOM from 'react-dom';

import { Graphistry } from '@graphistry/client-api-react';
//... Specify bundle format when default is incompatible: @graphistry/client-api-react/dist/index.{esm,cjs,iife}.js

import '@graphistry/client-api-react/assets/index.less';

ReactDOM.render(
    <Graphistry dataset='Miserables'
                graphistryHost='https://hub.graphistry.com'/>,
    document.getElementById('react-root')
);

Additional React examples

  • API: Interactive storybook
  • Project structure: Create React App sample project

Versions

  • @graphistry/client-api-react wraps @graphistry/client-api, so use aligned versions
  • By default, React is linked as an external dependency (16.8+, 17.x, 18.x)
  • You can use multiple module formats: @graphistry/client-api-react (default) or pick a specific format via @graphistry/client-api-react/dist/index.{esm,cjs,iife}.js
  • You can also use the library standalone, where React is already inlined: @graphistry/client-api-react/dist/index.full.{esm,cjs,iife}.js

FAQs

Last updated on 22 Mar 2024

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc