• Stars
    star
    213
  • Rank 185,410 (Top 4 %)
  • Language
    JavaScript
  • Created over 6 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Quark is a data visualization framework.

Introduction

Quark is framework built on top of Linkurious.js which lets you painlessly visualize your data in form of nodes & edges. It offers a lot of features out of the box and runs in a browser so you don't need to worry about installing anything or configuring things. Just feed it some data and Quark will plot a beautiful and intractable graph out of it.
Here's a screenshot if you are eager to take a look at it:

Quark UI

Browser Support

All modern web browsers are supported, including:

  • Internet Explorer 10+
  • Chrome 23+ and Chromium
  • Firefox 15+
  • Safari 6+

Touch events on tablet and mobile are currently supported as beta features.

Usage

In-Graph Controls

  • left click Select a node
  • right click Highlight edges of the node
  • drag Move around
  • mousewheel zoom in & zoom out

Keyboard Controls

  • Keyboard Arrows Move around
  • spacebar + + Zoom in
  • spacebar + - Zoom out
  • spacebar + a Select/deselect all nodes
  • spacebar + e Select neighbors of selected node(s)
  • spacebar + u Deselect nodes
  • spacebar + i Select nodes with no edges
  • spacebar + l Select nodes with 1 edge

Features

Options in the sidebar are divided in sections and their documentation here follows the same style.

Circle

It arranges the nodes in a circular layout.

Circle demo

Center

Click a node and then click on the center option to place it in the center of the graph.

Decolor

It resets the color of all edges and nodes.

Lasso

Lasso tool lets you select nodes by drawing a line around them.

Lasso demo

Stabilize

It optimizes the size of nodes that are too small or too big.

Clean

It removes nodes & edges which are too small.

Delete

It deletes the selected node(s) from the graph.


Edge Style (Dropdown)

The dropdown list lets you select different types of edge styles.
Supported edge styles are:

  • line Simple straight lines
  • Curved Curved lines
  • Arrow Arrows that point towards the target of the edge
  • cArrows Arrows but curved

Edge style demo

Edges {int}

It shows the total number of edges. You can click it to toggle edges on/off.

Nodes {int}

It shows the total number of nodes. You can click it to toggle nodes on/off.

Edge labels

Toggle edge labels on/off.

Node labels

Toggle node labels on/off.

Color

The color option lets you choose a color from a color picker and apply it to the selected node(s).

Find

Enter full label/id of a node and it will find and highlight it. Default color is yellow.


Make/Color Clusters

It helps you find & color nodes that are more densely connected together than to the rest of the network. Cluster demo

Level (Dropdown)

It lets you select the "aggressiveness" to use while coloring the communities. Lower the level, higher the number of communities.

Reset

It simply resets the color change made by the cluster option. However it doesn't reset the the position of the nodes i.e. they remain in cluster form.


Export to JSON

As the name suggests, it lets you export your current graph to a JSON file.

How to load a graph?

Before reading any further, take a look at my Orbit which uses Quark to analyse crypto wallet relationships.

Scenario 1

You have 5 points a, b, c, d, e and you know the relationships between them like a is related to c. Then create a file with the contents

a,e
c,d
e,a
d,e
a,c
c,e

Save it with any name and any extension and feed it to quark.py as follows python3 quark.py <filename> That's it! Open quark.html and you will see your graph.

Result

case 1

Why are the nodes so small? Because in this automatic mode, the size of a node is determined by how many other nodes are connected to. For any noticeable variation in node size, your graph should have enough nodes i.e. larger than 20.

Scenario 2

If you are like me and you want full control of everything like the co-ordinates and size of nodes, edge thickness and their labels etc. then you will need to arrange this information in JSON syntax as follows:

{
"nodes": [{"label": "a", "x": 1, "y": 1, "id": "node1", "size":10}, {"label": "b", "x": 2, "y": 1, "id": "node2", "size":4}],
"edges": [{"source":"node1", "target":"node2", "id":"edge1", "size":2}]
}

Save it with any name and again, pass it to the handler and open quark.html

Result

case 2

Performance

Quark is tested and built on a spaghetti laptop with just 3GB RAM, built-in graphic card & i3 processor. On this configuration, a graph with 7000 nodes & 3000 edges was rendering just fine.
A computer with better specifications will be able to handle more data smoothly. Just to be on the safe side, Quark prompts the user for using webgl renderer if the number of edges is more than 8000.
webgl uses your GPU to render graphs which boosts the performance but it doesn't support interaction events. Quark uses canvas renderer by default.

Tips:

  • Edges consume more memory than nodes.
  • Memory caused by edge styles: line < curve < arrow < curved arrow
  • Delete the nodes which seem insignificant to you.
  • Hide edges/nodes when you are not dealing with them.
  • Hide node labels (you will still be able to see them on hovering over nodes).
  • Hide edge labels.

Contribution

Quark is built on top of Linkurious.js and the files from Linkurious.js are stored in the libs directory. The bugs in them are out of scope so don't open an issue here. You are welcome if you want to fix issues yourself with a pull request./ Feel free to open issues about a bug, question or feature request.

More Repositories

1

roop

one-click face swap
Python
27,272
star
2

XSStrike

Most advanced XSS scanner.
Python
13,111
star
3

Photon

Incredibly fast crawler designed for OSINT.
Python
10,869
star
4

Arjun

HTTP parameter discovery suite.
Python
5,093
star
5

AwesomeXSS

Awesome XSS stuff
JavaScript
4,730
star
6

sd-webui-roop

roop extension for StableDiffusion web-ui
Python
3,349
star
7

Smap

a drop-in replacement for Nmap powered by shodan.io
Go
2,860
star
8

Striker

Striker is an offensive information and vulnerability scanner.
Python
2,213
star
9

be-a-hacker

roadmap for a self-taught hacker
1,839
star
10

ReconDog

Reconnaissance Swiss Army Knife
Python
1,776
star
11

Hash-Buster

Crack hashes in seconds.
Python
1,716
star
12

huepy

Print awesomely in terminals.
Python
1,462
star
13

Corsy

CORS Misconfiguration Scanner
Python
1,335
star
14

uro

declutters url lists for crawling/pentesting
Python
1,105
star
15

Silver

Mass scan IPs for vulnerable services
Python
1,024
star
16

Decodify

Detect and decode encoded strings, recursively.
Python
864
star
17

Diggy

Extract endpoints from apk files.
Shell
862
star
18

Blazy

Blazy is a modern login bruteforcer which also tests for CSRF, Clickjacking, Cloudflare and WAF .
Python
833
star
19

Breacher

An advanced multithreaded admin panel finder written in python.
Python
717
star
20

ote

Generate Email, Register for anything, Get the OTP/Link
Python
569
star
21

goop

Google Search Scraper
Python
564
star
22

Parth

Heuristic Vulnerable Parameter Scanner
Python
559
star
23

Zen

Find emails of Github users
Python
553
star
24

Bolt

CSRF Scanner
Python
532
star
25

Orbit

Blockchain Transactions Investigation Tool
Python
524
star
26

JShell

JShell - Get a JavaScript shell with XSS.
Python
506
star
27

MyPapers

Repository for hosting my research papers
Python
498
star
28

Cloak

Cloak can backdoor any python script with some tricks.
Python
479
star
29

nano

Nano is a family of PHP web shells which are code golfed for stealth.
PHP
431
star
30

sqlmate

A friend of SQLmap which will do what you always expected from SQLmap.
Python
424
star
31

SubGPT

Find subdomains with GPT, for free
Python
332
star
32

dump

Stuff that doesn't deserves its own repository.
Python
300
star
33

hardcodes

find hardcoded strings from source code
Python
273
star
34

proxify

A python module for dumping usable proxies.
Python
152
star
35

Predator

Anti-Automation System
CSS
120
star
36

Shiva

Improved DOS exploit for wordpress websites (CVE-2018-6389)
Python
112
star
37

velocity

DNS caching for humans
Python
89
star
38

ifnude

nudity detector that works
Python
83
star
39

zetanize

HTML form parser for humans.
Python
73
star
40

rewise

Google auto-complete wrapper
Python
73
star
41

Locky

Locky generates "really" strong yet easy to remember passwords.
Python
63
star
42

Entropy

Entropy is a (prototype) WAF driven by maths.
Python
54
star
43

meta

Explains and tests HTTP response headers
Python
39
star
44

fonetic-go

golang implementation of fonetic (https://github.com/s0md3v/fonetic)
Go
37
star
45

fonetic

assess pronounciblity of text
Python
33
star
46

shades

Shell
26
star
47

wl

convert case style of words
Go
21
star
48

s0md3v.github.io

my personal blog
SCSS
15
star
49

s0md3v

11
star
50

dishtance

JavaScript
6
star
51

.github

my default .github files
5
star
52

BG3-Mutant

Mod for Baldur's Gate 3 that adds a Mutant class to the game.
2
star