Documentation Index
Fetch the complete documentation index at: https://docs.moss.dev/llms.txt
Use this file to discover all available pages before exploring further.
How indexes are stored
Indexes live in the cloud. The SDKs fetch them into memory withloadIndex() / load_index() so queries run locally without network round
trips. The canonical copy is always the cloud index — your local process holds
an in-memory snapshot for fast retrieval.
Disk cache (JS SDK)
The JS SDK can cache the downloaded index to disk so subsequent loads skip the network fetch when the cloud data hasn’t changed. Pass acachePath to
loadIndex():
Hot reload & auto-refresh
EnableautoRefresh to periodically poll the cloud and hot-swap the
in-memory index when a newer version is detected — in-flight queries are not
interrupted.
loadIndex() again without autoRefresh stops the polling loop and
replaces the in-memory snapshot with a fresh download.