Most projects are pages with lists, forms and buttons, and How your app is built covers them. Some need more: a game loop, a 3D scene, sound or a map. Your agent starts those from the defaults below. Each one is small enough for you to read, works on a phone, and runs on the course's host with no build step. They're starting points, not rules: tell your agent when you want something else.
| Your app | Start with | Reach for more when | Watch for |
|---|---|---|---|
| Board, card or puzzle game | HTML buttons in a CSS grid | it needs smooth motion: a canvas | every square easy to tap |
| Action game | one <canvas> and one game loop | many sprites, physics or scenes: Phaser | touch controls, not only keys |
| 3D | three.js, with boxes and spheres first | real models: glTF files in assets/ | phones have small graphics chips |
| Music or rhythm | the Web Audio API | synths and sequences: Tone.js | sound starts only after a tap |
| Map | Leaflet with OpenStreetMap | no key needed | |
| Charts | SVG your agent draws | many or interactive charts: Chart.js | |
| Live or shared | a Bun server with SQLite | updates without a reload: WebSockets in Bun.serve | try it on two devices at once |
A library loads as a module from a CDN such as https://esm.sh, with its version in the address, so an update can't change your app overnight. In a Bun app, your agent adds it with bun add instead.
- One loop:
requestAnimationFramedraws each frame, and things move by the time since the last frame, so the game runs at the same speed on every screen. - State apart from drawing: positions, score and level live in one object; drawing only reads it. That makes the rules easy to test with
bun test. - Phones have no keyboard: every control has a touch version, such as on-screen buttons, taps or swipes.
- Sharp and polite: the canvas is scaled by
devicePixelRatio, and the game pauses when the tab is hidden. - The state in words: the score, level or whose turn it is also shows as text on the page, such as "Score 3 · Level 2". Screen readers read it, and so does your agent when it looks at your app.
- three.js from a CDN, in one scene with one camera and a few lights.
- Get the controls and the feel right with simple shapes before adding models.
- On a phone, keep the pixel ratio at 2 or less and use few shadows.
- Phones play sound only after someone taps, so audio starts from a button.
- Beats are timed on the audio clock (
audioContext.currentTime), not withsetTimeout, which drifts.
The course hosts web apps, not App Store apps. A web app can still open from the home screen like one: with a web app manifest and an icon, people add it to their home screen and it opens full screen.