Web modules
Prototir's own starter modules and capabilities. Add an exact name@version to prototir.json and Prototir serves it from its CDN. Other libraries can be imported from
a public CDN with an exact version; the upload copies them into your build.
The same documentation as JSON: /modules.json. Unity packages and Godot addons belong in their engine projects instead.
Starter modules
Small Prototir-built scaffolds imported into Web code.
- Audio
prefab-audio@0.1.1Game/app audio over raw Web Audio: load samples from your bundle, play with volume/rate/loop, zero-asset beeps. Replaces maintenance-mode audio shims. Read - Audio features
prefab-audio-features@0.1.1Audio-reactive features from a native AnalyserNode: rms, energy, spectral centroid + raw bins. Mic (with consent) or any AudioNode/MediaStream. Read - Sketch
prefab-sketch@0.1.1The byte-light creative-coding loop: full-window 2D canvas, dpr scaling, resize, draw(ctx, {t, dt, mouse}), p5 ergonomics at ~1KB. Read - Hand controls
prefab-hand-controls@0.1.2Hand landmarks → pointer/pinch events; camera + MediaPipe HandLandmarker + its model weights bundled in, no separate model pack needed. Reported pointer position is smoothed (configurable) to cut per-frame detector jitter without adding lag to pinch detection. Read - Voice input planned
prefab-voice-input@0.1.0Push-to-talk → local transcript events. Read - Localization
prefab-i18n@0.1.1Localized strings and voice-over from your own bundle: Intl plurals/number/date, per-locale lazy loading, audio fallback chain. Read - Input
prefab-input@0.2.0One input API for desktop and mobile: keyboard, or fully customizable virtual controls, any number of buttons/joysticks/d-pads with position, size, shape and short/long-press semantics; same axes/pressed()/onPress() reads either way. Read - Shader canvas
prefab-shader-canvas@0.1.1Full-screen fragment shader boilerplate: uniforms for time/mouse/resolution. Read - Map
prefab-map@0.1.6Embeddable vector map: markers, popups, GeoJSON overlays, light/dark/grayscale themes, click/fly-to/pan-and-zoom. Real OpenStreetMap-derived roads, water, and towns worldwide, up to zoom 10 anywhere on Earth - no external tile host or API key, no CSP change, mandatory OSM/Protomaps attribution. The basemap is served on demand over ranged CDN fetches, like a shared image or model asset, not downloaded in full by every prototype that uses it. Read
Capabilities
Platform features brokered by the SDK rather than import-map downloads.
- Managed AI
capability-aiProvider-neutral managed AI generation through Prototir.ai. The sandbox has connect-src 'none'; requests hop through the shell to a metered, moderated gateway. Prototir owns credentials and routing, while the prototype owner's paid plan and AI credits fund usage; signed-in visitors never spend their own allowance. Read - Storage
capability-storagePer-prototype key-value persistence. Opaque-origin iframes have no reliable localStorage; the shell stores device-local values per prototype and isolates signed-in players on shared browsers. Read - Camera and microphone
capability-permissionsCamera/microphone: declared in prototir.json, granted via iframe allow= after an explicit shell-level user consent prompt. Read