Skip to content

Publishing

A prototype is one HTML document: inline your CSS and JavaScript. Linking to CDNs, web fonts, images and APIs is fine, because prototypes can make network calls. Multi-file projects and build steps aren’t supported.

The maximum size per version is 5 MB.

Every call to publish with an existing prototype_id adds the next version (v2, v3, …). Versions are immutable. Each has its own URL and its own review status, and comments belong to the version they were left on. Ask your assistant to add a short note describing what changed; it shows in the version menu.

Prototypes live in projects, and projects live in teams. Your assistant can:

  • pass project_name: Hosai reuses a project with that name (any capitalisation) or creates it;
  • pass project_id from list_projects;
  • or create one explicitly with create_project.

You can rename a prototype, edit its description or move it to another project from the ⋯ menu in the viewer.

Prototypes open inside Hosai, at the review link (/v/<prototype>) for your workspace or at a public link for anyone else. Each one runs in a sandboxed frame, so its code can’t read your Hosai session or another prototype’s data. See Security.

localStorage, sessionStorage and cookies work as usual. localStorage is kept per version in each reviewer’s browser. IndexedDB isn’t available, and relative links to other files won’t resolve, because a prototype is a single file.