figram 1.0.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.
@@ -0,0 +1,60 @@
1
+ version: 1
2
+ docId: "my-architecture"
3
+ title: "My Architecture Diagram"
4
+
5
+ nodes:
6
+ # VPC (container)
7
+ - id: vpc
8
+ provider: aws
9
+ kind: network.vpc
10
+ label: "VPC 10.0.0.0/16"
11
+ layout: { x: 0, y: 0, w: 800, h: 500 }
12
+
13
+ # Public Subnet (nested container)
14
+ - id: subnet_public
15
+ provider: aws
16
+ kind: network.subnet
17
+ label: "Public Subnet"
18
+ parent: vpc
19
+ layout: { x: 40, y: 60, w: 360, h: 380 }
20
+
21
+ # Private Subnet (nested container)
22
+ - id: subnet_private
23
+ provider: aws
24
+ kind: network.subnet
25
+ label: "Private Subnet"
26
+ parent: vpc
27
+ layout: { x: 420, y: 60, w: 360, h: 380 }
28
+
29
+ # Resources
30
+ - id: alb
31
+ provider: aws
32
+ kind: compute.lb.alb
33
+ label: "ALB"
34
+ parent: subnet_public
35
+ layout: { x: 100, y: 120 }
36
+
37
+ - id: ecs
38
+ provider: aws
39
+ kind: compute.container.ecs_service
40
+ label: "ECS Service"
41
+ parent: subnet_private
42
+ layout: { x: 100, y: 120 }
43
+
44
+ - id: rds
45
+ provider: aws
46
+ kind: database.rds
47
+ label: "RDS PostgreSQL"
48
+ parent: subnet_private
49
+ layout: { x: 100, y: 260 }
50
+
51
+ edges:
52
+ - id: alb_to_ecs
53
+ from: alb
54
+ to: ecs
55
+ label: "HTTP:80"
56
+
57
+ - id: ecs_to_rds
58
+ from: ecs
59
+ to: rds
60
+ label: "PostgreSQL:5432"
package/package.json ADDED
@@ -0,0 +1,46 @@
1
+ {
2
+ "name": "figram",
3
+ "version": "1.0.0",
4
+ "description": "YAML-driven architecture diagrams for FigJam",
5
+ "type": "module",
6
+ "bin": {
7
+ "figram": "./dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist",
11
+ "README.md"
12
+ ],
13
+ "engines": {
14
+ "node": ">=18"
15
+ },
16
+ "scripts": {
17
+ "build": "tsup && cp -r src/templates dist/",
18
+ "dev": "bun run ./src/index.ts",
19
+ "prepack": "bun run build"
20
+ },
21
+ "keywords": [
22
+ "figjam",
23
+ "figma",
24
+ "diagram",
25
+ "architecture",
26
+ "yaml",
27
+ "aws"
28
+ ],
29
+ "license": "MIT",
30
+ "repository": {
31
+ "type": "git",
32
+ "url": "https://github.com/7nohe/figram.git",
33
+ "directory": "packages/cli"
34
+ },
35
+ "dependencies": {
36
+ "commander": "^14.0.2",
37
+ "ws": "^8.18.3",
38
+ "yaml": "^2.8.2"
39
+ },
40
+ "devDependencies": {
41
+ "@figram/core": "workspace:*",
42
+ "@types/bun": "^1.1.14",
43
+ "@types/ws": "^8.18.1",
44
+ "tsup": "^8.5.1"
45
+ }
46
+ }