
Security News
PodRocket Podcast: Inside the Recent npm Supply Chain Attacks
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
@foundation/graph
Advanced tools
Add a force graph view to your react application. This module was built for use in the foundation suite but can be used in any react-based app.
Start by installing the package...
npm install @foundation/graph
Create a simple react component with your graph:
import React from 'react'
import { Graph, Nodes, Links } from '@foundation/graph'
const MyGraph = props => (
<Graph
nodes={[
{ id: 'foo' },
{ id: 'bar' },
{ id: 'baz' }
]}
links={[
{ source: 'foo', target: 'bar' },
{ source: 'foo', target: 'baz' }
]}
>
<Links />
<Nodes />
</Graph>
)
We support a variety of other features like panning/zooming, dragging, and node
selection. Documentation coming soon, see the /src
directory for now.
Contributions are more than welcome. We'd like to keep this package somewhat lightweight with a simple interface that allows consumers to wrap it. If you have an idea, feel free to open a ticket so we can discuss implementation options.
FAQs
Network graph modules for the foundation analysis suite.
We found that @foundation/graph 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
Socket CEO Feross Aboukhadijeh discusses the recent npm supply chain attacks on PodRocket, covering novel attack vectors and how developers can protect themselves.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.