homegames-client 0.1.2 → 0.2.1

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 CHANGED
@@ -102,7 +102,7 @@ See [RTC performance and file-transfer notes](../homegames-core/docs/rtc-perform
102
102
 
103
103
  ## Live microphone and camera
104
104
 
105
- Browser/RTC games receive a `media` service with `request(playerId, { audio, video, transmitting, pushToTalk })`, `setTransmitting(id, bool)`, `stop(id)` and `onChange(listener)`. A successful request returns a stream handle for `new GameNode.Stream({ streamId: handle.id, pos, size, audio: true })`. Stream is a native Squish 1.4.6 node: games using it must import `squish-146` and declare version `146`. Squish serializes its reference and presentation properties; live bytes are carried by native WebRTC tracks. The host forwards guest sources to the other participants.
105
+ Browser/RTC games receive a `media` service with `request(playerId, { audio, video, transmitting, pushToTalk })`, `setTransmitting(id, bool)`, `stop(id)` and `onChange(listener)`. A successful request returns a stream handle for `new GameNode.Stream({ streamId: handle.id, pos, size, audio: true })`. Stream is a native Squish 1.4.6 node: games using it must import `squish-150` and declare version `146`. Squish serializes its reference and presentation properties; live bytes are carried by native WebRTC tracks. The host forwards guest sources to the other participants.
106
106
 
107
107
  The player's browser owns permission confirmation, capture and a persistent Disconnect control. Push-to-talk is additionally gated locally by a held pointer/touch/Space and releases immediately on cancellation, blur, hiding or detach. Own-source playback stays muted. This version broadcasts to the whole room, is not recorded, and requires browser/RTC play; Core/WebSocket-only requests report that requirement. See [the API contract, Walkie Talkie example and release notes](../homegames-core/docs/live-media.md).
108
108
 
@@ -171,18 +171,21 @@ Notes on the build:
171
171
 
172
172
  ## License
173
173
 
174
- GPL-3.0
174
+ MIT
175
175
 
176
176
  ## Gamepad support
177
177
 
178
178
  Homepad reads and normalizes controllers. Homegames delivers those snapshots to the correct player in hosted and local sessions using the same `homegames-common/game-input.js` router. Games never import Homepad.
179
179
 
180
- The simplest integration reuses a game's keyboard handlers:
180
+ The simplest integration reuses a game's keyboard handlers. In a new portable
181
+ game, the Squish import selects the runtime; keep the stable game ID and capacity
182
+ in the class metadata:
181
183
 
182
184
  ```js
183
185
  static metadata() {
184
186
  return {
185
- name: 'My Game', squishVersion: '142',
187
+ gameId: 'd05657b1-c5eb-4b4b-82b0-54b59900e61b',
188
+ name: 'My Game', maxPlayers: 1,
186
189
  gamepadBindings: {
187
190
  ArrowLeft: ['DIRECTION_LEFT', 'STICK_1_LEFT'],
188
191
  ArrowRight: ['DIRECTION_RIGHT', 'STICK_1_RIGHT'],
@@ -0,0 +1,5 @@
1
+ Homegames first-party source and cleared Homegames-authored media are MIT licensed. See the accompanying LICENSE or license.txt. Earlier published releases retain their accompanying notices. Imported projects are not relicensed by importing, editing, playing or exporting them.
2
+
3
+ Third-party dependencies, tools and media retain their own copyrights and licenses. Preserve their license/NOTICE files when redistributing them. The MIT grant for Homegames does not replace those terms or grant rights to third-party trademarks.
4
+
5
+ The browser runtime embeds full notices collected from its bundled modules. The build also emits THIRD_PARTY_NOTICES.txt alongside the client and runtime-notices.txt in the website. Downloadable HTML carries those same embedded texts; game ZIPs retain the game's source/media notices.
@@ -0,0 +1,258 @@
1
+ Homegames runtime license notices
2
+
3
+ acorn@8.19.0 (MIT)
4
+
5
+ MIT License
6
+
7
+ Copyright (C) 2012-2022 by various contributors (see AUTHORS)
8
+
9
+ Permission is hereby granted, free of charge, to any person obtaining a copy
10
+ of this software and associated documentation files (the "Software"), to deal
11
+ in the Software without restriction, including without limitation the rights
12
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
+ copies of the Software, and to permit persons to whom the Software is
14
+ furnished to do so, subject to the following conditions:
15
+
16
+ The above copyright notice and this permission notice shall be included in
17
+ all copies or substantial portions of the Software.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
+ THE SOFTWARE.
26
+
27
+ ----------------------------------------
28
+
29
+ base64-js@1.5.1 (MIT)
30
+
31
+ The MIT License (MIT)
32
+
33
+ Copyright (c) 2014 Jameson Little
34
+
35
+ Permission is hereby granted, free of charge, to any person obtaining a copy
36
+ of this software and associated documentation files (the "Software"), to deal
37
+ in the Software without restriction, including without limitation the rights
38
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
39
+ copies of the Software, and to permit persons to whom the Software is
40
+ furnished to do so, subject to the following conditions:
41
+
42
+ The above copyright notice and this permission notice shall be included in
43
+ all copies or substantial portions of the Software.
44
+
45
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
46
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
47
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
49
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
50
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
51
+ THE SOFTWARE.
52
+
53
+ ----------------------------------------
54
+
55
+ buffer@6.0.3 (MIT)
56
+
57
+ The MIT License (MIT)
58
+
59
+ Copyright (c) Feross Aboukhadijeh, and other contributors.
60
+
61
+ Permission is hereby granted, free of charge, to any person obtaining a copy
62
+ of this software and associated documentation files (the "Software"), to deal
63
+ in the Software without restriction, including without limitation the rights
64
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
65
+ copies of the Software, and to permit persons to whom the Software is
66
+ furnished to do so, subject to the following conditions:
67
+
68
+ The above copyright notice and this permission notice shall be included in
69
+ all copies or substantial portions of the Software.
70
+
71
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
72
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
73
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
74
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
75
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
76
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
77
+ THE SOFTWARE.
78
+
79
+ ----------------------------------------
80
+
81
+ fflate@0.8.3 (MIT)
82
+
83
+ MIT License
84
+
85
+ Copyright (c) 2026 Arjun Barrett
86
+
87
+ Permission is hereby granted, free of charge, to any person obtaining a copy
88
+ of this software and associated documentation files (the "Software"), to deal
89
+ in the Software without restriction, including without limitation the rights
90
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
91
+ copies of the Software, and to permit persons to whom the Software is
92
+ furnished to do so, subject to the following conditions:
93
+
94
+ The above copyright notice and this permission notice shall be included in all
95
+ copies or substantial portions of the Software.
96
+
97
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
98
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
99
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
100
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
101
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
102
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
103
+ SOFTWARE.
104
+
105
+ ----------------------------------------
106
+
107
+ homegames-client@0.2.1 (MIT)
108
+
109
+ MIT License
110
+
111
+ Copyright (c) 2026 Joseph Garcia and Homegames contributors
112
+
113
+ Permission is hereby granted, free of charge, to any person obtaining a copy
114
+ of this software and associated documentation files (the "Software"), to deal
115
+ in the Software without restriction, including without limitation the rights
116
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
117
+ copies of the Software, and to permit persons to whom the Software is
118
+ furnished to do so, subject to the following conditions:
119
+
120
+ The above copyright notice and this permission notice shall be included in all
121
+ copies or substantial portions of the Software.
122
+
123
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
124
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
125
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
126
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
127
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
128
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
129
+ SOFTWARE.
130
+
131
+ ----------------------------------------
132
+
133
+ homegames-common@1.7.3 (MIT)
134
+
135
+ MIT License
136
+
137
+ Copyright (c) 2026 Joseph Garcia and Homegames contributors
138
+
139
+ Permission is hereby granted, free of charge, to any person obtaining a copy
140
+ of this software and associated documentation files (the "Software"), to deal
141
+ in the Software without restriction, including without limitation the rights
142
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
143
+ copies of the Software, and to permit persons to whom the Software is
144
+ furnished to do so, subject to the following conditions:
145
+
146
+ The above copyright notice and this permission notice shall be included in all
147
+ copies or substantial portions of the Software.
148
+
149
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
150
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
151
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
152
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
153
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
154
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
155
+ SOFTWARE.
156
+
157
+ ----------------------------------------
158
+
159
+ homepad@0.2.1 (MIT)
160
+
161
+ Homepad
162
+ Source: https://github.com/homegamesio/homepad
163
+
164
+ MIT License
165
+
166
+ Copyright (c) 2026 Joseph Garcia and Homegames contributors
167
+
168
+ Permission is hereby granted, free of charge, to any person obtaining a copy
169
+ of this software and associated documentation files (the "Software"), to deal
170
+ in the Software without restriction, including without limitation the rights
171
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
172
+ copies of the Software, and to permit persons to whom the Software is
173
+ furnished to do so, subject to the following conditions:
174
+
175
+ The above copyright notice and this permission notice shall be included in all
176
+ copies or substantial portions of the Software.
177
+
178
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
179
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
180
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
181
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
182
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
183
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
184
+ SOFTWARE.
185
+
186
+ ----------------------------------------
187
+
188
+ ieee754@1.2.1 (BSD-3-Clause)
189
+
190
+ Copyright 2008 Fair Oaks Labs, Inc.
191
+
192
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
193
+
194
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
195
+
196
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
197
+
198
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
199
+
200
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
201
+
202
+ ----------------------------------------
203
+
204
+ qrcode-generator@2.0.4 (MIT)
205
+
206
+ QR Code Generator for JavaScript
207
+ Source: https://github.com/kazuhikoarase/qrcode-generator
208
+ The distributed source header grants MIT; the npm package omits a standalone license file.
209
+
210
+ MIT License
211
+
212
+ Copyright (c) 2009 Kazuhiko Arase
213
+
214
+ Permission is hereby granted, free of charge, to any person obtaining a copy
215
+ of this software and associated documentation files (the "Software"), to deal
216
+ in the Software without restriction, including without limitation the rights
217
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
218
+ copies of the Software, and to permit persons to whom the Software is
219
+ furnished to do so, subject to the following conditions:
220
+
221
+ The above copyright notice and this permission notice shall be included in all
222
+ copies or substantial portions of the Software.
223
+
224
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
225
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
226
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
227
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
228
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
229
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
230
+ SOFTWARE.
231
+
232
+ The word QR Code is a registered trademark of DENSO WAVE INCORPORATED.
233
+
234
+ ----------------------------------------
235
+
236
+ squishjs@1.5.0 (MIT)
237
+
238
+ MIT License
239
+
240
+ Copyright (c) 2026 Joseph Garcia and Homegames contributors
241
+
242
+ Permission is hereby granted, free of charge, to any person obtaining a copy
243
+ of this software and associated documentation files (the "Software"), to deal
244
+ in the Software without restriction, including without limitation the rights
245
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
246
+ copies of the Software, and to permit persons to whom the Software is
247
+ furnished to do so, subject to the following conditions:
248
+
249
+ The above copyright notice and this permission notice shall be included in all
250
+ copies or substantial portions of the Software.
251
+
252
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
253
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
254
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
255
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
256
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
257
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
258
+ SOFTWARE.