You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/architecture.md
+111-9Lines changed: 111 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,10 @@ We are standardizing only the minimum plugin shape needed to support:
12
12
- packaged `res://` web resource loading for exported apps
13
13
- a repo-level platform integration test project
14
14
15
-
Anything beyond that, such as CLI tooling or broad application frameworks, is
16
-
deferred until the IPC model is proven. The current `@gd-kirie/ipc` package is
17
-
intentionally only a browser-side transport wrapper on top of the raw native
18
-
bridge. Eventa adapters live above Kirie and use that low-level text transport.
15
+
Anything beyond that, such as broad application frameworks, is deferred until
16
+
the IPC model is proven. The current `@gd-kirie/ipc` package is intentionally
17
+
only a browser-side transport wrapper on top of the raw native bridge. Eventa
18
+
adapters live above Kirie and use that low-level text transport.
19
19
20
20
The mobile IPC experiment keeps Kirie core byte-oriented and CBOR-based while
21
21
preserving separate text, binary, and data lanes. Higher-level protocols,
@@ -76,6 +76,9 @@ scene structure that fits their project.
76
76
Kirie core should not own window organization. Optional higher-level helpers may
77
77
later provide prefab window, panel, workspace, cross-view forwarding, or routing
78
78
APIs, but those helpers must live above the low-level WebView and IPC surface.
79
+
Do not add Electron-like BrowserWindow APIs to GDScript; future high-level
80
+
window APIs should live in C# and TypeScript packages, with GDScript remaining
81
+
the low-level plugin substrate.
79
82
80
83
The public Godot API should primarily let users address WebViews through node
81
84
references:
@@ -88,8 +91,10 @@ references:
88
91
Native implementations may keep internal handles or IDs to manage platform instances.
89
92
Android and iOS use private view IDs only to route callbacks back to the owning `KirieNode`; public routing names, browser-driven cross-view forwarding, and window helper APIs are deferred higher-level concerns.
90
93
91
-
Kirie supports loading packaged offline web content from Godot project resources
92
-
through the `res://web` path described below.
94
+
Kirie supports loading packaged offline web content from Godot project
95
+
resources. The current native resolvers can serve packaged `res://` paths. The
96
+
planned Kirie CLI app layout standardizes production web content at
97
+
`res://src-web/dist/index.html`, as described below.
93
98
94
99
## Runtime debug configuration
95
100
@@ -112,6 +117,99 @@ Exports use `Kirie-release.aar` by default. Repository-local Android native
112
117
debugging can opt into `Kirie-debug.aar` for a single export by passing
113
118
`-- --kirie-android-aar=debug` to the Godot export command.
114
119
120
+
## Kirie app layout and CLI direction
121
+
122
+
The planned Kirie application shape is a Godot project with a Vite web frontend
123
+
beside the Godot source:
124
+
125
+
```text
126
+
kirie.config.ts
127
+
package.json
128
+
pnpm-lock.yaml / bun.lock / package-lock.json
129
+
project.godot
130
+
src-godot/
131
+
main.tscn
132
+
main.gd or main.cs
133
+
src-web/
134
+
index.html
135
+
src/
136
+
assets/
137
+
dist/
138
+
addons/
139
+
kirie/
140
+
godot_cef/
141
+
others/
142
+
```
143
+
144
+
Directory responsibilities are:
145
+
146
+
-`src-godot`: Godot host application source.
147
+
-`src-web`: Vite web UI source and production build output.
148
+
-`addons`: Godot plugins. Kirie remains installed as `addons/kirie`, and Godot
0 commit comments