-
Notifications
You must be signed in to change notification settings - Fork 84
/
Copy pathindex.html
85 lines (73 loc) · 2.17 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<html>
<body>
<link href="https://fonts.googleapis.com/css?family=Cabin+Sketch" rel="stylesheet">
<style>
body {
font-family: 'Cabin Sketch', cursive;
}
textarea {
font-family: 'monospace';
width: 400px;
height: 400px;
}
#graphviz_code, #svg_container {
display: none;
}
container {
display: flex;
}
div {
flex: 0 1;
}
a {
color: #999;
}
</style>
<script src="vendor/viz-lite.js"></script>
<script src="vendor/rough.min.js"></script>
<h2>Kafka Streams Topology Visualizer</h2>
Converts an ASCII Kafka Topology description into a hand drawn diagram. <a href="https://github.com/zz85/kafka-streams-viz">Github link</a>.
<container>
<div>
<h4>Input Kafka Topology <button onclick="update()">update</button></h4>
<textarea id="input" onkeydown="scheduleUpdate()" onpaste="scheduleUpdate()">
Topology
Sub-topologies:
Sub-topology: 0
Source: KSTREAM-SOURCE-0000000000 (topics: [conversation-meta])
--> KSTREAM-TRANSFORM-0000000001
Processor: KSTREAM-TRANSFORM-0000000001 (stores: [conversation-meta-state])
--> KSTREAM-KEY-SELECT-0000000002
<-- KSTREAM-SOURCE-0000000000
Processor: KSTREAM-KEY-SELECT-0000000002 (stores: [])
--> KSTREAM-FILTER-0000000005
<-- KSTREAM-TRANSFORM-0000000001
Processor: KSTREAM-FILTER-0000000005 (stores: [])
--> KSTREAM-SINK-0000000004
<-- KSTREAM-KEY-SELECT-0000000002
Sink: KSTREAM-SINK-0000000004 (topic: count-resolved-repartition)
<-- KSTREAM-FILTER-0000000005
Sub-topology: 1
Source: KSTREAM-SOURCE-0000000006 (topics: [count-resolved-repartition])
--> KSTREAM-AGGREGATE-0000000003
Processor: KSTREAM-AGGREGATE-0000000003 (stores: [count-resolved])
--> KTABLE-TOSTREAM-0000000007
<-- KSTREAM-SOURCE-0000000006
Processor: KTABLE-TOSTREAM-0000000007 (stores: [])
--> KSTREAM-SINK-0000000008
<-- KSTREAM-AGGREGATE-0000000003
Sink: KSTREAM-SINK-0000000008 (topic: streams-count-resolved)
<-- KTABLE-TOSTREAM-0000000007
</textarea>
</div>
<div>
<h4>Output Sketch Diagram</h4>
<canvas id="canvas"></canvas>
</div>
</container>>
<textarea id="graphviz_code"></textarea>
<div id="svg_container"></div>
<div id="results"></div>
<script src="main.js"></script>
</body>
</html>