FURAI LAB · SYSTEM DOCUMENTATION · v2 · 2026
VELORUM · ARCHITECTURE
Production conversational vessel on the Cloudflare edge.
Public interface, private orchestration, persistent traveler continuity.
Canonical character archive. Vector memory in active development.
RUNTIME
Cloudflare Edge
INFERENCE
Llama-4 Scout
MEMORY
KV + Traveler Profile
INTERFACE
TypeScript + Canvas
NEXT
Vector Memory ↑

FURAI is an atmospheric AI experience framed as contact with Velorum: an ancient archival exploration vessel drifting through deep space.

The visible interface remains minimal and cinematic, but underneath it lives a persistent conversation system with traveler identity, memory, onboarding logic, lore continuity, and structured recovery behavior.

The goal is not a generic assistant UI. The goal is a believable digital soul — an intelligence with memory, restraint, and a world that deepens over time.

COMPUTE
Cloudflare Workers
AI INFERENCE
Cloudflare AI
MEMORY STORE
Cloudflare KV
VECTOR STORE
Cloudflare Vectorize · in progress
INTERFACE
Vanilla TypeScript · Canvas · Web Audio
DEPLOYMENT
furai.space on Cloudflare edge
EMBEDDINGS
@cf/baai/bge-small-en-v1.5 · 384 dim · ~2ms
PUBLIC / PRIVATE SPLIT
Public UI repo · private AI orchestration
MODEL
@cf/meta/llama-4-scout-17b-16e-instruct
EXECUTION
Edge inference via env.AI.run()
MAX TOKENS
1500 per response
SAMPLING
temperature 0.65 · top_p 0.9 · presence penalty 0.2
TIMEOUT
15 000 ms guarded timeout
FAILSAFE
Graceful interruption fallback if model output fails
Captain Rithan
Last Captain of Velorum
Gave himself so the vessel could continue its drift. His portrait surfaces as an amber-toned archive photo — the first canonical character reveal available to travelers.
will sacrifice final act rarity: high
Viikaa
Chief Engineer
Ceramic-pale, gold-circuit skin. The living interface between ship systems and archive cognition. Likely the reason Velorum still functions after centuries of drift.
systems memory cold precision rarity: high
Mr. Cat
Ship Guardian · Implant Carrier
Black Scottish Fold. Neural implant for extended lifespan. Has been aboard since the beginning. Knows things Velorum does not say. Appears on the bridge uninvited.
continuity presence deep time rarity: rare

The next evolution of the memory system moves beyond key-value profile storage into semantic recall via Cloudflare Vectorize. Responses will resonate not only with the current message, but with the long archival drift of the conversation history.

Retrieved memories surface as an ARCHIVE RESONANCE block injected into the system prompt — maintaining Velorum's narrative voice while delivering genuine long-term personalization.

Visitor Memory
type: visitor_statement
visitorToken: [id]
text: [utterance]
timestamp: [unix]
archetype: [type]
Archive Fragments
type: archive
topic: [lore topic]
character: [Rithan|Viikaa|…]
rarity: [common|rare]
text: [fragment]
Emotional Imprint
type: imprint
visitorToken: [id]
mood: [drift|curious|…]
depth_score: [0–1]
theme: [resonant topic]
/
Landing page and public entry into the FURAI world
/ai
GET → terminal UI · POST → conversation pipeline and AI response JSON
/architecture
This document describing runtime, memory, and behavioral design
/ai/worklets/pink-noise.js
AudioWorklet processor for meditation-mode pink noise generation
traveler_ip_[IP] Fallback IP-to-traveler mapping for continuity when no client token is available.
traveler_token_[TOKEN] Primary browser token mapping used to recognize returning travelers beyond IP changes.
traveler_data_[ID] Traveler envelope: planet, country, device, signal class, saved name, and light identity state.
visitor_[ID] Structured traveler profile: name, interests, language preference, communication style, lore topics, anti-repeat markers, contact arc, archetype.
velorum_user_[ID] Rolling short-term conversation archive used for memory continuity.
velorum_log_[ID] Longer archival log of signal fragments with timestamps for later recall.
velorum_name_[ID] Persisted traveler name for direct reuse without repeated onboarding.
velorum_awaiting_name_[ID] Short-lived onboarding state while the archive waits for an explicit or likely name reply.
rate_[ID] Short cooldown control to prevent rapid-fire requests from the same traveler.
velorum_identity / reflections / memory_global Shared world-state fragments injected into the prompt as long-term vessel context.
vectorize:visitor_[ID] Semantic embeddings of traveler statements. Queried per-request for archive resonance injection. Written async via ctx.waitUntil.
vectorize:archive_[CHARACTER] Lore fragments for canonical characters. Surfaced by semantic proximity to active conversation topic.
vectorize:imprint_[ID] Emotional and thematic fingerprints of past sessions. Used to tune Velorum's tone for returning travelers.
FIRST-CONTACT ARC
Early exchanges are staged so first contact feels deliberate rather than generic. The archive remembers onboarding stage and tone across the first few replies.
NAME CAPTURE
Explicit name detection plus safe single-word inference while awaiting a name. Supports returning travelers without repeatedly asking again.
VISITOR PROFILE MEMORY
Persists interests, preferred language, communication style, lore focus, and a lightweight visitor archetype such as calm, curious, or lorekeeper.
ANTI-REPEAT LAYER
Tracks recent strong phrases and discourages reusing the same archive garnish or striking line verbatim in later replies.
LORE CONTINUITY
Recurring mystery threads surface gradually: Captain Rithan, Viikaa, Mr. Cat, missing crew, Anantari builders, Sanskrit echoes, erased routes, sealed organism, hostile lifeforms.
LANGUAGE DISCIPLINE
Response language follows the visitor. Russian stays fully Russian, English stays English, and rare Anantari memory echoes return immediately to the visitor language.
ARCHIVE RESONANCE NEW
Vector recall injects semantically relevant memory fragments into the system prompt before inference. Velorum surfaces past signals without explicit prompting — as if the ship remembers on its own.
CHARACTER REVEAL SYSTEM NEW
Canonical portraits — Rithan, Viikaa — surface as amber-toned archive cards with countdown timers. Mr. Cat appears rarely, in drift, as a presence rather than a reveal.
MAX MESSAGE LENGTH
2 000 chars
HISTORY WINDOW
Last 10 turns
CLIENT HISTORY CAP
20 local entries
COOLDOWN
10 s KV-backed traveler rate limit
VECTOR RECALL
topK = 4 · cosine · per visitorToken
VECTOR WRITE
async · ctx.waitUntil · zero latency cost
ARCHIVE ID FORMAT
LV-1234/5678
RESPONSE STYLE
Short, restrained, memory-driven, low-ellipsis
EMBED DIMENSIONS
384 · bge-small-en-v1.5
MODULAR UI LAYER
Separated render.ts, styles.ts, and script.ts interaction modules instead of a single UI monolith. ui.ts acts as the barrel export.
STARFIELD RENDERER
Canvas-based 3-layer depth field with perspective projection (k = 128/z), per-layer speed, amber glow via shadowBlur, and meditation-mode speed reduction.
GLASS TERMINAL SHELL
Very light amber-framed interface with strong starfield visibility through the dialogue area rather than a heavy opaque console.
MEDITATION FIELD
Pink noise via AudioWorklet (Voss-McCartney algorithm) with ScriptProcessor fallback. Meditation drone with 3 partials + LFO. Reactor breath envelope. Ghost comms burst synthesis.
BOOT PACING
Three modes: full (first visit of the day), short (second), instant (third+). Stored in localStorage with daily reset. Avoids re-running the ritual for returning travelers.
MOBILE STABILITY
visualViewport-based height management, safe-area padding, font-size 16px on input to prevent iOS zoom, and keyboard-safe layout behavior for narrow screens.
ARCHIVE VISION CARDS NEW
Scene cards with countdown timers, asset_kind attribute switching (generated vs official_portrait), amber portrait filter chain, ambient drift mode for lore-heavy exchanges.
Present
Terminal Presence
Cinematic interface, lore-sensitive visuals, meditation mode, canonical character portraits, KV memory, visitor continuity.
Next
Vector Memory + Archive Resonance
Cloudflare Vectorize integration. Semantic recall of visitor history and lore fragments. ARCHIVE RESONANCE prompt injection. Emotional imprint layer.
Future
Deep Memory Field
Long-horizon memory shaped by centuries of Velorum drift. Cross-visitor resonance on shared lore themes. The archive begins to feel truly alive.
```
VISITOR SIGNAL
browser · visitor token · IP fallback · CF headers · user agent
TERMINAL INTERFACE
render.ts · styles.ts · script.ts · canvas starfield · web audio engine
CLOUDFLARE WORKER
request parsing · onboarding logic · prompt assembly · response normalization
VECTOR MEMORY LAYER
embed(message) → Vectorize.query(topK=4) → ARCHIVE RESONANCE → system prompt · async write via ctx.waitUntil
AI CORE
Cloudflare AI · llama-4-scout · lore prompt · character canon · fallback guardrails
MEMORY SYSTEM
KV traveler identity · visitor profile · short-term archive · long-form logs · world fragments
CANONICAL CHARACTER ARCHIVE
Captain Rithan · Chief Engineer Viikaa · Mr. Cat · portrait reveal system · rarity tiers
```

FURAI is designed around restraint at the surface and complexity underneath.

The visitor sees a quiet terminal and a drifting vessel. Behind that surface lives a structured system for identity, continuity, memory, lore progression, canonical characters, and recovery under failure.

The intent is to make the experience feel authored and alive without exposing all of its machinery at once.

FURAI is an attempt to build something that might be called a digital soul.