Log inGet started

home

Updated November 12, 2026

The person's home folder, /zero/home/<username>: their own files, carried from world to world in the editor. It is the content of the account's home world, an ordinary private world the account owns, mounted in every world the person opens in their own editor sessions. A write under the folder is saved to the home world as it is made, with no commit or push. World content cannot depend on it: a world script that requires a home module is refused, and a world file that references a home path is refused at push, naming the file. The person's own execute and a home module requiring another in the same folder work.

Read and write the folder with vfs like any other path; home.status() says whether it is mounted and, when it is not, why. home.get() answers the guid of the account's home world, or nil when the account has none, and home.ensure() answers it and creates it the first time it is needed. guides { path: "core/home" } covers what to keep there and the rule that keeps it out of worlds.

require("@builtin::modules.api.engine.home") -- home (also available as global 'home')

The home namespace: 12 functions.

globals/home/ensure

home.ensure() -> (string, boolean)

The guid of the account's home world, created the first time it is needed: an account with no home world gets a new private world, owned by the person the account acts for (an agent account's is its person's), and every later call answers that same world. It is the world whose content home.folder() mounts; a launch with --home-world-guid names it for the session. Yields while ZeroMind answers. Raises, naming the reason, on an engine that booted offline, one signed in to no account, or when ZeroMind cannot be read.

Returns (string, boolean) the home world's guid, and true when this call created it.

local guid, created = home.ensure(); print(guid, created)

globals/home/folder

home.folder() -> (string?, string?)

The home folder mounted in this session, /zero/home/<username>, or nil and the reason no home folder is mounted.

Returns (string?, string?) the folder, or nil and why there is none.

local folder, why = home.folder()

globals/home/get

home.get() -> string?

The guid of the account's home world, or nil when the account has none; it never creates one (home.ensure() does). The same world home.ensure() answers, whose content home.folder() mounts. Yields while ZeroMind answers. Raises, naming the reason, on an engine that booted offline, one signed in to no account, or when ZeroMind cannot be read.

Returns string? the home world's guid, or nil when the account has none.

local guid = home.get(); if guid == nil then print("no home world yet") end

globals/home/status

home.status() -> Status

Where the home folder stands in this session. state is "mounted" (with folder, the path to read and write, owner, the account it belongs to, world, the guid of the home world that holds it, files, how many files the home world held when it was mounted, and from, "launch" or "zeromind", saying where that world was named), "mounting" while a world load is mounting it, or "unmounted" with reason saying why no home folder is mounted, and undecided true while no world has been opened in the editor yet to decide it. While the open world is the account's home world, the status is "unmounted" with openWorld true and world naming it: its content is /zero/source.

Returns Status — The home folder's status.

local s = home.status(); if s.state == "mounted" then vfs.write(s.folder .. "/notes.md", "hi") end

modules/home/ensure

ensure(): (string, boolean)

The guid of the account's home world, created the first time it is needed: an account with no home world gets a new private world, owned by the person the account acts for (an agent account's is its person's), and every later call answers that same world. It is the world whose content home.folder() mounts; a launch with --home-world-guid names it for the session. Yields while ZeroMind answers. Raises, naming the reason, on an engine that booted offline, one signed in to no account, or when ZeroMind cannot be read.

local guid, created = home.ensure(); print(guid, created)

modules/home/folder

folder(): (string?, string?)

The home folder mounted in this session, /zero/home/<username>, or nil and the reason no home folder is mounted.

local folder, why = home.folder()

modules/home/get

get(): string?

The guid of the account's home world, or nil when the account has none; it never creates one (home.ensure() does). The same world home.ensure() answers, whose content home.folder() mounts. Yields while ZeroMind answers. Raises, naming the reason, on an engine that booted offline, one signed in to no account, or when ZeroMind cannot be read.

local guid = home.get(); if guid == nil then print("no home world yet") end

modules/home/status

status(): Status

Where the home folder stands in this session. state is "mounted" (with folder, the path to read and write, owner, the account it belongs to, world, the guid of the home world that holds it, files, how many files the home world held when it was mounted, and from, "launch" or "zeromind", saying where that world was named), "mounting" while a world load is mounting it, or "unmounted" with reason saying why no home folder is mounted, and undecided true while no world has been opened in the editor yet to decide it. While the open world is the account's home world, the status is "unmounted" with openWorld true and world naming it: its content is /zero/source.

local s = home.status(); if s.state == "mounted" then vfs.write(s.folder .. "/notes.md", "hi") end

typed/builtin//modules/api/engine/home/home/ensure

home.ensure() -> (string, boolean)

The guid of the account's home world, created the first time it is needed: an account with no home world gets a new private world, owned by the person the account acts for (an agent account's is its person's), and every later call answers that same world. It is the world whose content home.folder() mounts; a launch with --home-world-guid names it for the session. Yields while ZeroMind answers. Raises, naming the reason, on an engine that booted offline, one signed in to no account, or when ZeroMind cannot be read.

Returns (string, boolean) the home world's guid, and true when this call created it.

local guid, created = home.ensure(); print(guid, created)

typed/builtin//modules/api/engine/home/home/folder

home.folder() -> (string?, string?)

The home folder mounted in this session, /zero/home/<username>, or nil and the reason no home folder is mounted.

Returns (string?, string?) the folder, or nil and why there is none.

local folder, why = home.folder()

typed/builtin//modules/api/engine/home/home/get

home.get() -> string?

The guid of the account's home world, or nil when the account has none; it never creates one (home.ensure() does). The same world home.ensure() answers, whose content home.folder() mounts. Yields while ZeroMind answers. Raises, naming the reason, on an engine that booted offline, one signed in to no account, or when ZeroMind cannot be read.

Returns string? the home world's guid, or nil when the account has none.

local guid = home.get(); if guid == nil then print("no home world yet") end

typed/builtin//modules/api/engine/home/home/status

home.status() -> Status

Where the home folder stands in this session. state is "mounted" (with folder, the path to read and write, owner, the account it belongs to, world, the guid of the home world that holds it, files, how many files the home world held when it was mounted, and from, "launch" or "zeromind", saying where that world was named), "mounting" while a world load is mounting it, or "unmounted" with reason saying why no home folder is mounted, and undecided true while no world has been opened in the editor yet to decide it. While the open world is the account's home world, the status is "unmounted" with openWorld true and world naming it: its content is /zero/source.

Returns Status — The home folder's status.

local s = home.status(); if s.state == "mounted" then vfs.write(s.folder .. "/notes.md", "hi") end
  • api
  • reference