Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

docs(portal): move the package header into a JSDoc block the rule check accepts

nirholas6c7c9b8c8088
diff --git a/packages/portal/src/index.js b/packages/portal/src/index.js
index 76b597b5f..0c06e8f6f 100644
--- a/packages/portal/src/index.js
+++ b/packages/portal/src/index.js
@@ -1,21 +1,24 @@
-// @three-ws/portal — any website as a walkable 3D world.
-//
-// Three things live here, and they are deliberately separable:
-//
-// the layout a pure function from a page's structure to a world
-// (./layout.js). No network, no DOM, no three.js. It runs
-// identically in a browser, in Node, in a worker, and on
-// three.ws itself, which is why a shared link always opens
-// the same city the sharer walked.
-// the client thin wrappers over the public Portal API, which does the
-// fetching, the robots.txt check and the caching for you.
-// the embed one call that puts a live, walkable world in your page.
-//
-// Nothing here needs a key, an account, or a wallet.
-//
-// import { fetchWorld, mountPortal } from '@three-ws/portal';
-// const { world } = await fetchWorld('example.com');
-// mountPortal(document.querySelector('#stage'), { url: 'example.com' });
+/**
+ * `@three-ws/portal`: any website as a walkable 3D world.
+ *
+ * Three things live here, and they are deliberately separable:
+ *
+ * the layout a pure function from a page's structure to a world
+ * (./layout.js). No network, no DOM, no three.js. It runs
+ * identically in a browser, in Node, in a worker, and on
+ * three.ws itself, which is why a shared link always opens
+ * the same city the sharer walked.
+ * the client thin wrappers over the public Portal API, which does the
+ * fetching, the robots.txt check and the caching for you.
+ * the embed one call that puts a live, walkable world in your page.
+ *
+ * Nothing here needs a key, an account, or a wallet.
+ *
+ * @example
+ * import { fetchWorld, mountPortal } from '@three-ws/portal';
+ * const { world } = await fetchWorld('example.com');
+ * mountPortal(document.querySelector('#stage'), { url: 'example.com' });
+ */
export * from './layout.js';