Answers from the documentation; checking which model is on duty
Hi - I answer from the OpenSmartRoute documentation: routing, the API, plans and quotas, self-hosting. Ask away, or open a support ticket if you need a person.
Grounded in the docs - follow a source before acting on it.
web-games - Skill - OpenSmartRoute
Skillv1.0.0
web-games
Web browser game development principles. Framework selection, WebGPU, optimization, PWA.
Imported from aiskillstore/marketplace (skills/sickn33/web-games/SKILL.md). Install upstream with npx skills add aiskillstore/marketplace --skill web-games. Copyright stays with the author.
Web Browser Game Development
Framework selection and browser-specific principles.
1. Framework Selection
Decision Tree
What type of game?
│
├── 2D Game
│ ├── Full game engine features? → Phaser
│ └── Raw rendering power? → PixiJS
│
├── 3D Game
│ ├── Full engine (physics, XR)? → Babylon.js
│ └── Rendering focused? → Three.js
│
└── Hybrid / Canvas
└── Custom → Raw Canvas/WebGL
Comparison (2025)
Framework
Type
Best For
Phaser 4
2D
Full game features
PixiJS 8
2D
Rendering, UI
Three.js
3D
Visualizations, lightweight
Babylon.js 7
3D
Full engine, XR
2. WebGPU Adoption
Browser Support (2025)
Browser
Support
Chrome
✅ Since v113
Edge
✅ Since v113
Firefox
✅ Since v131
Safari
✅ Since 18.0
Total
~73% global
Decision
New projects: Use WebGPU with WebGL fallback
Legacy support: Start with WebGL
Feature detection: Check navigator.gpu
3. Performance Principles
Browser Constraints
Constraint
Strategy
No local file access
Asset bundling, CDN
Tab throttling
Pause when hidden
Mobile data limits
Compress assets
Audio autoplay
Require user interaction
Optimization Priority
Asset compression - KTX2, Draco, WebP
Lazy loading - Load on demand
Object pooling - Avoid GC
Draw call batching - Reduce state changes
Web Workers - Offload heavy computation
4. Asset Strategy
Compression Formats
Type
Format
Textures
KTX2 + Basis Universal
Audio
WebM/Opus (fallback: MP3)
3D Models
glTF + Draco/Meshopt
Loading Strategy
Phase
Load
Startup
Core assets, <2MB
Gameplay
Stream on demand
Background
Prefetch next level
5. PWA for Games
Benefits
Offline play
Install to home screen
Full screen mode
Push notifications
Requirements
Service worker for caching
Web app manifest
HTTPS
6. Audio Handling
Browser Requirements
Audio context requires user interaction
Create AudioContext on first click/tap
Resume context if suspended
Best Practices
Use Web Audio API
Pool audio sources
Preload common sounds
Compress with WebM/Opus
7. Anti-Patterns
❌ Don't
✅ Do
Load all assets upfront
Progressive loading
Ignore tab visibility
Pause when hidden
Block on audio load
Lazy load audio
Skip compression
Compress everything
Assume fast connection
Handle slow networks
Remember: Browser is the most accessible platform. Respect its constraints.
Installed into a catalogue, chosen by a router
Install web-games and it becomes one more candidate the router can pick - when it fits.
A listing is a routing target with a manifest: what it does, which domains it covers, what it costs and who publishes it. Once installed it sits beside your own models and tools, is scored like any other candidate for each request, and shows up in the trace when it wins. Ratings come from workspaces that installed it, one per account.
When a provider is down or over quota the request moves on; the trace says it did.
Use it
Copy one of these into your project. Installing also returns the manifest and these snippets.
# after Install: the listing is in your workspace's routing pool - a plan picks it for its slotcurl-s-X POST https://api.opensmartroute.ai/api/v1/route -H 'Authorization: Bearer $OSR_API_KEY' -H 'Content-Type: application/json' -d '{"text": "...", "plan": true}'
Manifest
An Open Capability Manifest: the router reads it to know what this does, what it costs and when to pick it.
aiskillstore-marketplace-web-games.ocm.jsonjson
{
"ocm": "1",
"id": "aiskillstore-marketplace-web-games",
"kind": "skill",
"name": "web-games",
"description": "Web browser game development principles. Framework selection, WebGPU, optimization, PWA.",
"publisher": "aiskillstore",
"version": "1.0.0",
"capabilities": {
"domains": [
"science",
"math"
],
"tags": [
"skill-md",
"skills-sh"
],
"languages": [
"en"
]
},
"quality_prior": 0.6,
"examples": [
"Web browser game development principles. Framework selection, WebGPU, optimization, PWA."
],
"primary": false,
"metadata": {
"source": {
"provider": "skills.sh",
"repository": "https://github.com/aiskillstore/marketplace",
"path": "skills/sickn33/web-games/SKILL.md",
"ref": "HEAD",
"url": "https://github.com/aiskillstore/marketplace/blob/HEAD/skills/sickn33/web-games/SKILL.md",
"key": "aiskillstore/marketplace/skills/sickn33/web-games/SKILL.md"
},
"allowed_tools": [
"Read,",
"Write,",
"Edit,",
"Glob,",
"Grep"
]
},
"instructions": "# Web Browser Game Development\n\n> Framework selection and browser-specific principles.\n\n---\n\n## 1. Framework Selection\n\n### Decision Tree\n\n```\nWhat type of game?\n│\n├── 2D Game\n│ ├── Full game engine features? → Phaser\n│ └── Raw rendering power? → PixiJS\n│\n├── 3D Game\n│ ├── Full engine (physics, XR)? → Babylon.js\n│ └── Rendering focused? → Three.js\n│\n└── Hybrid / Canvas\n └── Custom → Raw Canvas/WebGL\n```\n\n### Comparison (2025)\n\n| Framework | Type | Best For |\n|-----------|------|----------|\n| **Phaser 4** | 2D | Full game features |\n| **PixiJS 8** | 2D | Rendering, UI |\n| **Three.js** | 3D | Visualizations, lightweight |\n| **Babylon.js 7** | 3D | Full engine, XR |\n\n---\n\n## 2. WebGPU Adoption\n\n### Browser Support (2025)\n\n| Browser | Support |\n|---------|---------|\n| Chrome | ✅ Since v113 |\n| Edge | ✅ Since v113 |\n| Firefox | ✅ Since v131 |\n| Safari | ✅ Since 18.0 |\n| **Total** | **~73%** global |\n\n### Decision\n\n- **New projects**: Use WebGPU with WebGL fallback\n- **Legacy support**: Start with WebGL\n- **Feature detection**: Check `navigator.gpu`\n\n---\n\n## 3. Performance Principles\n\n### Browser Constraints\n\n| Constraint | Strategy |\n|------------|----------|\n| No local file access | Asset bundling, CDN |\n| Tab throttling | Pause when hidden |\n| Mobile data limits | Compress assets |\n| Audio autoplay | Require user interaction |\n\n### Optimization Priority\n\n1. **Asset compression** - KTX2, Draco, WebP\n2. **Lazy loading** - Load on demand\n3. **Object pooling** - Avoid GC\n4. **Draw call batching** - Reduce state changes\n5. **Web Workers** - Offload heavy computation\n\n---\n\n## 4. Asset Strategy\n\n### Compression Formats\n\n| Type | Format |\n|------|--------|\n| Textures | KTX2 + Basis Universal |\n| Audio | WebM/Opus (fallback: MP3) |\n| 3D Models | glTF + Draco/Meshopt |\n\n### Loading Strategy\n\n| Phase | Load |\n|-------|------|\n| Startup | Core assets, <2MB |\n| Gameplay | Stream on demand |\n| Background | Prefetch next level |\n\n---\n\n## 5. PWA for Games\n\n### Benefits\n\n- Offline play\n- Install to home screen\n- Full screen mode\n- Push notifications\n\n### Requirements\n\n- Service worker for caching\n- Web app manifest\n- HTTPS\n\n---\n\n## 6. Audio Handling\n\n### Browser Requirements\n\n- Audio context requires user interaction\n- Create AudioContext on first click/tap\n- Resume context if suspended\n\n### Best Practices\n\n- Use Web Audio API\n- Pool audio sources\n- Preload common sounds\n- Compress with WebM/Opus\n\n---\n\n## 7. Anti-Patterns\n\n| ❌ Don't | ✅ Do |\n|----------|-------|\n| Load all assets upfront | Progressive loading |\n| Ignore tab visibility | Pause when hidden |\n| Block on audio load | Lazy load audio |\n| Skip compression | Compress everything |\n| Assume fast connection | Handle slow networks |\n\n---\n\n> **Remember:** Browser is the most accessible platform. Respect its constraints.",
"cost": {
"context_tokens": 704
}
}
Fetch it by URL: GET /api/v1/registry/aiskillstore-marketplace-web-games/manifest?version=1.0.0
Reviews
Star ratings from people who tried it. One review per account; edit yours any time.
No reviews yet. Install it, try it, and be the first to rate it.