npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

stix2vis

v1.0.5

Published

React component for visualizing STIX data.

Downloads

121

Readme

Stix2Vis: Visualize STIX Data with Ease!

npm version

This React component enables developers to generate STIX2.1 visualizations from STIX 2.1 JSON files within their React applications. It is inspired by the STIX Visualization project from the OASIS CTI Open Repository https://oasis-open.github.io/cti-stix-visualization/

Sample rendering of a STIX2.1 Json indicating malware, indicators and identity

Bridging the Gap in Cyber Threat Intelligence

Cyber Threat Intelligence (CTI) is all about storytelling. Information transforms into intelligence when given context and narrative, often crystallized in reports from intelligence providers. These reports, if structured and machine-readable, are supplemented with STIX2.1 bundles.

Features

Rapid visualization of STIX 2.1 content using D3.js library. 100% browser-based, ensuring data privacy as no data is transmitted to any server. Supports visualization of objects and relationships between them. Easily load JSON files,and it provides a relationship diagram as per OASIS standards Installation Install the package via npm:

npm install stix2vis

Usage

import React from 'react';
import StixViewerView from 'stix2vis';

const App = () => {
return (
<div>
<StixViewerView stixJson={data}/>
</div>
);
}
export default App;

Props

stixJson (required): The STIX 2.1 JSON data to visualize. If not provided, the component will render a sample json file, wrapStyle: style object that covers the style of outer wrapper of the visualisation graphStyle: style object that covers the style of the visualiser onNodeclick: A callback function that is called when a node is clicked

Example

import React from 'react';
import StixViewerView from 'stix2vis';
import stixData from './data/sample_stix_data.json'; // Example JSON data

const App = () => {
return (
<div>
<StixViewerView stixJson={stixData} wrapStyle={{backgroundColor:'white'}} graphStyle={{backgroundColor:'white'}} onNodeclick = ()=>{}/>
</div>
);
}
export default App;

Demo

You can find a live demo of this component at https://github.com/navaneeth001/STIX2viz

Contributing

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Acknowledgements This project is inspired by the STIX Visualization project from the OASIS CTI Open Repository. Special thanks to the contributors of that project.

Support For any questions or support, please open an issue on GitHub.

Author

Navaneeth001 / [email protected]

Version Current version: 1.0.5

Changelog 1.0.5 (2024-07-18): Initial release.

Roadmap

Add support for custom styling options. Make new views for selected node view Incoming and outgoing connecting view. Improve performance for handling large JSON datasets. Enhance accessibility features. Integrate with other STIX-related tools and libraries.