3MMembership FrameworkWorld library ↗

Creator guide · v1

Build your own world.

Give your membership a front door, a theater, a bookshelf and a TV guide. You bring the lessons and the offer. The framework handles walking, playback, reading progress and the rooms that connect them.

Get the agent prompt ↓
The courtyard and front doors of the classical campus
Walk through Success Campus ↗

Build a first world

You need a text editor, a browser and a static web server. These two files make an independent membership site using the hosted v1 runtime. Its sample recordings work on the first visit.

1. Create the membership page

Make an empty folder and save this as index.html.

<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Field Notes Club</title>
</head>
<body>
  <div id="membership"></div>
  <script type="module" src="./world.js"></script>
</body>
</html>

2. Describe the world

Save this beside it as world.js. Each call to createWorld returns a fresh, editable preset. Try success-campus for a classical hall, agent-observatory for a lab, or studio-cottage for a house.

import { createWorld, mountWorld } from
  "https://3m.wynter.ai/runtime/v1.js";

const world = createWorld("studio-cottage");
world.id = "field-notes-club";
world.title = "Field Notes Club";
world.art.plaque = world.title;
world.art.accent = "#58745d";
world.intro = "Come in. Today's field exercise starts at the reading table.";
world.rooms.reading = "Map Room";
world.book = {
  title: "A Field Notebook",
  chapters: [
    { title: "Find a subject", body: "Choose a leaf and sketch its outline." },
    { title: "Look closer", body: "Mark one detail you missed on the first pass." }
  ]
};
world.offer = {
  name: "Sketch Practice", price: "Practice pass",
  benefit: "Keep a field note from your first observation.",
  activity: { title: "Field note", body: "Describe one detail worth a second look." }
};
// Keep both credited sample recordings until your own files are ready.
mountWorld(document.getElementById("membership"), world);

3. Open the front door

In that folder, run the following with Python 3, then visit http://localhost:8000/. Any ordinary static web server also works. Enter the building and open the book in the Map Room to see your changes.

python3 -m http.server 8000

Room reference

The stable room keys are hall, event, reading and tv. Change the labels in world.rooms. The illustrated courtyard leads into the hall. Open the visitor map, or press M, and choose a room for a guided walk.

Welcome hall
Put your welcome in intro. An optional presenter URL plays a green-screen introduction and hands the visitor to the event. Omit it for a text introduction.
Event theater
Set event to the ID of one entry in programs. Selecting a seat brings the member to audience eye height and plays its recording on the stage screen.
Reading room
Give book a title and one or more chapters with title and body. The held book opens to a two-page spread with a chapter index. The reader remembers the chapter on this device and links the last chapter to your activity.
TV lounge
Supply at least two programs with distinct IDs, a channel label, title, recording URL and credit. The lounge remote opens a channel grid. Give a channel an optional lineup array of program IDs to suggest an order across half-hour slots. Members can play any tile immediately and save recordings.
Member pass
Set the offer name, display price, benefit and activity. Practice checkout grants a local pass. An optional HTTPS offer.checkoutUrl sends the visitor to your checkout. Your server must verify payment and authorize protected content for a paid membership.

To replace the sample channels, put your credited MP4s in a media/ folder on your site, then add this before mountWorld. Include optional WebVTT captions and a poster when available.

world.programs = [
  { id: "outline", channel: "01", title: "Draw the outline",
    src: "./media/outline.mp4", credit: "Your recording credit" },
  { id: "detail", channel: "02", title: "Study a detail",
    src: "./media/detail.mp4", credit: "Your recording credit" }
];
world.event = "outline";
World fields and browser API

id is a unique slug of at least two characters, starting with a lowercase letter and using lowercase letters, digits or hyphens. title names the world. collection and description label its gallery card in the source edition.

art holds the finish (classical, orbital or cottage), the sky, wall, trim, accent and floor colors, a prop model name and an optional plaque. Start from a preset to inherit a compatible set.

createWorld(preset) returns the complete world object. mountWorld(element, world) validates it and attaches the viewer. It returns a function that unmounts the viewer. Make edits before mounting and use one viewer per page.

Art and media

Start with the preset closest to your architecture. Change art.plaque and art.accent first. Try the three entrances before choosing a finish. Each comes with a furnished interior, lighting, flat signs, a painted sky and a stage poster.

Use one recognizable object per hall. The hosted presets supply a bust, a task lamp and a mantel clock. For custom structural geometry, work in the source edition. You can author a membership with the hosted presets using a text editor.

Use H.264 MP4 recordings, AAC for sound, a WebP or JPEG poster and optional captions ending in .vtt. Keep source credits with each recording. Host your media beside your page or enable cross-origin access on its HTTPS host.

Test and publish

  1. Enter from the courtyard. Follow each doorway and unfold the visitor map with a keyboard and at phone width.
  2. Play the event, advance a chapter, play both TV channels, and save one. Open the practice offer, write an activity note, then reload to confirm it persists.
  3. Upload both files and your media to the same static site. Test a direct link ending in /#/world/field-notes-club/reading. Keep the slug stable so member progress survives updates.

The hosted runtime requires an internet connection. Run one world per dedicated page. The site owns its hash routes and browser storage. If your host uses a content security policy, allow the runtime origin for scripts, styles, fonts, images, media and network requests, your media origins (including https://dl.wynter.ai for the campus samples), and inline styles for the viewer.

Working from the framework repository?

With Node 22+ in the source checkout, run these commands. The generator registers a new independent manifest and copies its starting cover. Edit src/worlds/field-notes-club.ts and replace public/art/field-notes-club.webp. Use this path for custom buildings or shared viewer changes.

npm ci
npm run world:new -- field-notes-club "Field Notes Club" studio-cottage
npm run validate
npm test
npm run build
npm run dev

Build with your agent

Copy the brief into your coding agent. Fill in the audience, place and outcome. Include your own recordings if you have them.

Plain text ↗