You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@graphistry/client-api-react

Package Overview
Dependencies
Maintainers
3
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphistry/client-api-react

Embed a Graphistry visualization via React

4.0.1
Source
npmnpm
Version published
Weekly downloads
1.2K
75.78%
Maintainers
3
Weekly downloads
 
Created
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';
import '@graphistry/client-api-react/assets/index.less';

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

For React examples, see the (interactive storybook docs)

Versions

  • @graphistry/client-api-react wraps @graphistry/client-api, so use aligned versions
  • By default, React is linked as an external dependency (16.8+ and 17.0+)
  • You can use multipe module formats: @graphistry/client-api-react (automatic) or pick a specific one as @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

Package last updated on 08 Jan 2022

Did you know?

Socket

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