@moq/boy
v0.2.5
Published
MoQ Boy - Crowd-controlled Game Boy streaming via MoQ
Downloads
712
Readme
@moq/boy
Crowd-controlled Game Boy streaming via Media over QUIC (MoQ). Provides web components to view and interact with Game Boy emulator sessions streamed over a MoQ relay.
Installation
bun add @moq/boy
# or
npm add @moq/boyWeb Components
<moq-boy> — Game Grid
Shows a grid of all active Game Boy sessions. Click a game to expand and play.
<script type="module">
import "@moq/boy/element";
</script>
<moq-boy url="https://cdn.moq.dev/anon"></moq-boy>Attributes
| Attribute | Type | Description |
|-----------|--------|------------------|
| url | string | Relay server URL |
JavaScript API
For programmatic use:
import { GameCard } from "@moq/boy";
const card = new GameCard({
sessionId: "opossum",
connection,
expanded,
root: document.body,
});
document.body.appendChild(card.el);License
Licensed under either:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
