shumoku 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -8
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -8
- package/dist/index.js.map +1 -1
- package/package.json +6 -5
package/README.md
CHANGED
|
@@ -8,10 +8,12 @@ Modern network topology visualization library for TypeScript/JavaScript.
|
|
|
8
8
|
npm install shumoku
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
This includes all core functionality plus 900+ vendor icons (Yamaha, Aruba, AWS, Juniper).
|
|
12
|
+
|
|
13
|
+
For NetBox integration (optional):
|
|
12
14
|
|
|
13
15
|
```bash
|
|
14
|
-
npm install
|
|
16
|
+
npm install @shumoku/netbox
|
|
15
17
|
```
|
|
16
18
|
|
|
17
19
|
## Quick Start
|
|
@@ -26,6 +28,8 @@ nodes:
|
|
|
26
28
|
- id: router
|
|
27
29
|
label: "Core Router"
|
|
28
30
|
type: router
|
|
31
|
+
vendor: yamaha
|
|
32
|
+
model: rtx3510
|
|
29
33
|
|
|
30
34
|
- id: switch
|
|
31
35
|
label: "Main Switch"
|
|
@@ -54,20 +58,17 @@ const svg = renderer.render(layout)
|
|
|
54
58
|
|
|
55
59
|
- **YAML-based definitions** - Simple, readable network topology definitions
|
|
56
60
|
- **Automatic layout** - Hierarchical layout powered by ELK.js
|
|
57
|
-
- **Vendor icons** - Built-in icons for Yamaha, Aruba, AWS, Juniper (
|
|
61
|
+
- **Vendor icons** - Built-in icons for Yamaha, Aruba, AWS, Juniper (900+ icons)
|
|
58
62
|
- **SVG export** - High-quality vector output
|
|
59
63
|
- **TypeScript** - Full type safety
|
|
60
64
|
|
|
61
|
-
## Packages
|
|
65
|
+
## Included Packages
|
|
62
66
|
|
|
63
67
|
This package bundles:
|
|
64
68
|
|
|
65
69
|
- [`@shumoku/core`](https://www.npmjs.com/package/@shumoku/core) - Core library (models, layout, renderer)
|
|
66
70
|
- [`@shumoku/parser-yaml`](https://www.npmjs.com/package/@shumoku/parser-yaml) - YAML parser
|
|
67
|
-
|
|
68
|
-
Optional:
|
|
69
|
-
|
|
70
|
-
- [`@shumoku/icons`](https://www.npmjs.com/package/@shumoku/icons) - Vendor-specific icons
|
|
71
|
+
- [`@shumoku/icons`](https://www.npmjs.com/package/@shumoku/icons) - Vendor-specific icons (900+)
|
|
71
72
|
|
|
72
73
|
## Documentation
|
|
73
74
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAA;AAG7B,cAAc,sBAAsB,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,eAAe,CAAA;AAG7B,cAAc,sBAAsB,CAAA;AAIpC,OAAO,gBAAgB,CAAA;AAGvB,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -2,12 +2,9 @@
|
|
|
2
2
|
export * from '@shumoku/core';
|
|
3
3
|
// Re-export parser
|
|
4
4
|
export * from '@shumoku/parser-yaml';
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
10
|
-
catch {
|
|
11
|
-
// @shumoku/icons is optional, ignore if not installed
|
|
12
|
-
}
|
|
5
|
+
// Import icons for side effects (auto-registration)
|
|
6
|
+
// Note: Icon types are already exported from @shumoku/core
|
|
7
|
+
import '@shumoku/icons';
|
|
8
|
+
// Re-export only the vendorIconSets from icons (not conflicting exports)
|
|
9
|
+
export { vendorIconSets } from '@shumoku/icons';
|
|
13
10
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,eAAe,CAAA;AAE7B,mBAAmB;AACnB,cAAc,sBAAsB,CAAA;AAEpC
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,iCAAiC;AACjC,cAAc,eAAe,CAAA;AAE7B,mBAAmB;AACnB,cAAc,sBAAsB,CAAA;AAEpC,oDAAoD;AACpD,2DAA2D;AAC3D,OAAO,gBAAgB,CAAA;AAEvB,yEAAyE;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "shumoku",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Modern network topology visualization library for TypeScript/JavaScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "konoe-akitoshi",
|
|
@@ -40,10 +40,11 @@
|
|
|
40
40
|
"typecheck": "tsc --noEmit"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@shumoku/core": "^0.
|
|
44
|
-
"@shumoku/
|
|
43
|
+
"@shumoku/core": "^0.2.0",
|
|
44
|
+
"@shumoku/icons": "^0.2.0",
|
|
45
|
+
"@shumoku/parser-yaml": "^0.2.0"
|
|
45
46
|
},
|
|
46
|
-
"
|
|
47
|
-
"
|
|
47
|
+
"publishConfig": {
|
|
48
|
+
"access": "public"
|
|
48
49
|
}
|
|
49
50
|
}
|