
Research
Supply Chain Attack on Axios Pulls Malicious Dependency from npm
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.
react-tree-manager
Advanced tools
[](https://www.npmjs.com/package/react-tree-manager)
⚠️ In development ⚠️

In the project directory, you can run:
npm install react-tree-manager or yarn add react-tree-manager
interface TreeNode {
children?: TreeNode[];
path: string;
type: 'blob' | 'tree';
}
TreeViewer : React Component - MUI5 based expandable list
TreeManager : TS Class for tree/node management, (sample methods: traverse,add,remove etc)
import * as React from 'react';
import { useEffect, useState } from 'react';
import {Box} from '@mui/material';
import {TreeViewer, TreeManager, type TreeManagerInstance } from 'react-tree-manager'
type TreeViewComponentProps = {
tree: TreeNode[];
};
const TreeViewWrapper = (props:TreeViewComponentProps)=> {
const onSelect = (node: TreeNode) => console.log('TreeViewWrapper.onSelect called', node.path);
const treeManager = new TreeManager(props.tree);
// pre-render tree manupulation here:
useEffect(() => {
console.log('[TreeViewWrapper.useEffect] tree updated', props.tree);
let cnt = 0;
treeManager.traverse((node) => {
console.log(`[TreeManager.traverse][${cnt+=1}] ${node.type} -- ${node.path}`);
});
}, [props.tree]);
return (
<Box
sx={{
display: 'flex',
flexDirection: 'column',
background: 'wheat',
height: '100%',
maxWidth: 400,
minHeight: 800,
}}
>
<Box
component={'div'}
sx={{
display: 'flex',
flexDirection: 'column',
height: '100%',
whiteSpace:"wrap",
p: 1,
}}
>
<TreeViewer onSelect={onSelect} folder={props.tree} expanded={false} />
</Box>
</Box>
)
}
export {TreeViewWrapper}
const sampleTree: TreeNode[] = [
{
"type": "blob",
"path": "README.md"
},
{
"type": "tree",
"path": "docs",
"children": [
{
"type": "tree",
"path": "docs/guides",
"children": [
{
"type": "blob",
"path": "docs/guides/getting_started.md"
},
{
"type": "blob",
"path": "docs/guides/advanced_usage.md"
},
{
"type": "tree",
"path": "docs/guides/examples",
"children": [
{
"type": "blob",
"path": "docs/guides/examples/code_snippet.js"
},
{
"type": "tree",
"path": "docs/guides/examples/configurations",
"children": [
{
"type": "blob",
"path": "docs/guides/examples/configurations/sample_config.json"
},
{
"type": "blob",
"path": "docs/guides/examples/configurations/deployment.yaml"
}
]
}
]
}
]
}
]
},
{
"type": "tree",
"path": "src",
"children": [
{
"type": "blob",
"path": "src/index.js"
},
{
"type": "tree",
"path": "src/components",
"children": [
{
"type": "blob",
"path": "src/components/Header.jsx"
},
{
"type": "tree",
"path": "src/components/ui",
"children": [
{
"type": "blob",
"path": "src/components/ui/Button.tsx"
},
{
"type": "blob",
"path": "src/components/ui/Modal.tsx"
}
]
}
]
}
]
},
{
"type": "blob",
"path": "LICENSE.txt"
}
];
FAQs
[](https://www.npmjs.com/package/react-tree-manager)
We found that react-tree-manager demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Research
A supply chain attack on Axios introduced a malicious dependency, plain-crypto-js@4.2.1, published minutes earlier and absent from the project’s GitHub releases.

Research
Malicious versions of the Telnyx Python SDK on PyPI delivered credential-stealing malware via a multi-stage supply chain attack.

Security News
TeamPCP is partnering with ransomware group Vect to turn open source supply chain attacks on tools like Trivy and LiteLLM into large-scale ransomware operations.