Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Nearcyan/vibecraft
/ functions
Functions
643 in github.com/Nearcyan/vibecraft
⨍
Functions
643
◇
Types & classes
133
↓ 162 callers
Method
log
(...args: unknown[])
src/events/EventClient.ts:54
↓ 104 callers
Method
add
* Add an event to the feed
src/ui/FeedManager.ts:195
↓ 98 callers
Method
get
* Get a subagent by toolUseId
src/entities/SubagentManager.ts:96
↓ 77 callers
Method
dispose
Clean up resources when character is removed
src/entities/ICharacter.ts:43
↓ 71 callers
Method
add
Add a session to the attention queue
src/systems/AttentionSystem.ts:53
↓ 67 callers
Method
remove
Remove a session from the attention queue
src/systems/AttentionSystem.ts:62
↓ 57 callers
Function
log
(...args: unknown[])
server/index.ts:337
↓ 37 callers
Method
play
* Play a sound by name with optional spatial positioning * @param name - The sound to play * @param options - Optional spatial source (zoneId or
src/audio/SoundManager.ts:282
↓ 36 callers
Method
on
* Subscribe to an event type
src/events/EventBus.ts:100
↓ 32 callers
Function
debug
(...args: unknown[])
server/index.ts:341
↓ 24 callers
Method
send
(message: ClientMessage)
src/events/EventClient.ts:134
↓ 17 callers
Method
applySpatialVolume
* Apply spatial volume to a dB value
src/audio/SoundManager.ts:434
↓ 17 callers
Function
easeOut
(t: number)
src/entities/animations/AnimationTypes.ts:107
↓ 17 callers
Method
exit
* Exit draw mode
src/ui/DrawMode.ts:87
↓ 17 callers
Method
getSynth
* Get a synth from pool or create new one
src/audio/SoundManager.ts:444
↓ 17 callers
Method
releaseSynth
* Return synth to pool after use (with delay for sound to finish)
src/audio/SoundManager.ts:479
↓ 16 callers
Function
escapeHtml
(text: string)
src/ui/FeedManager.ts:530
↓ 14 callers
Method
createDisposableSynth
* Create and auto-dispose a one-shot synth (for complex sounds)
src/audio/SoundManager.ts:496
↓ 13 callers
Method
toggle
* Toggle draw mode on/off
src/ui/DrawMode.ts:73
↓ 12 callers
Function
broadcastSessions
* Broadcast current sessions to all clients
server/index.ts:1070
↓ 12 callers
Method
save
* Save projects to disk
server/ProjectsManager.ts:233
↓ 11 callers
Method
axialToCartesian
* Convert axial hex coordinates to world cartesian coordinates * Pointy-top orientation
src/utils/HexGrid.ts:62
↓ 11 callers
Method
clear
* Clear all occupancy (for testing)
src/utils/HexGrid.ts:417
↓ 10 callers
Method
connect
()
src/events/EventClient.ts:60
↓ 10 callers
Function
easeIn
(t: number)
src/entities/animations/AnimationTypes.ts:111
↓ 10 callers
Method
focusZone
* Focus camera on a specific zone
src/scene/WorkshopScene.ts:756
↓ 10 callers
Function
selectManagedSession
* Select a managed session for prompts (null = all/legacy mode) * Also focuses the 3D zone if available
src/main.ts:322
↓ 10 callers
Method
setZoneStatus
* Set zone status - changes floor AND ring color to indicate state
src/scene/WorkshopScene.ts:1884
↓ 9 callers
Function
collectRequestBody
* Safely collect request body with size limit to prevent DoS. * Returns a promise that resolves with the body string or rejects on error/oversized.
server/index.ts:201
↓ 9 callers
Function
validateTmuxSession
* Validate a tmux session name. * tmux session names should only contain alphanumeric, underscore, hyphen.
server/index.ts:178
↓ 8 callers
Function
addHook
(eventType, entry)
bin/cli.js:264
↓ 8 callers
Function
closeModal
()
src/main.ts:624
↓ 8 callers
Method
getContext
* Get current context
src/ui/ContextMenu.ts:172
↓ 8 callers
Function
saveSessions
* Save sessions to disk for persistence across restarts
server/index.ts:1008
↓ 8 callers
Function
setError
(message: string)
src/ui/VoiceControl.ts:159
↓ 8 callers
Method
updateUI
()
src/ui/DrawMode.ts:265
↓ 7 callers
Method
cartesianToHex
* Convert cartesian to the nearest hex cell
src/utils/HexGrid.ts:111
↓ 7 callers
Function
closeModal
(text: string | null)
src/ui/TextLabelModal.ts:142
↓ 7 callers
Function
escapeHtml
(text: string)
src/ui/ZoneInfoModal.ts:294
↓ 7 callers
Method
execGit
* Execute a git command in a directory using execFile (no shell). * Args should be passed as an array, not a string, to prevent command injection.
server/GitStatusManager.ts:276
↓ 7 callers
Method
notifyChange
()
src/ui/DrawMode.ts:258
↓ 7 callers
Function
updateUI
()
src/ui/VoiceControl.ts:118
↓ 6 callers
Function
broadcast
(message: ServerMessage)
server/index.ts:1424
↓ 6 callers
Method
createDisposablePolySynth
* Create and auto-dispose a poly synth
src/audio/SoundManager.ts:545
↓ 6 callers
Function
getSpatialOptions
* Get spatial options from context (for positional audio)
src/events/handlers/soundHandlers.ts:25
↓ 6 callers
Method
isOccupied
* Check if a hex is occupied
src/utils/HexGrid.ts:219
↓ 6 callers
Method
moveTo
Move character to a named station
src/entities/ICharacter.ts:34
↓ 6 callers
Function
updateActivity
(activity: string)
src/main.ts:1691
↓ 5 callers
Method
clearZoneAttention
* Clear attention state on a zone * Note: Call setZoneStatus() after this to update colors
src/scene/WorkshopScene.ts:1872
↓ 5 callers
Method
disconnect
()
src/events/EventClient.ts:106
↓ 5 callers
Function
easeInOut
(t: number)
src/entities/animations/AnimationTypes.ts:103
↓ 5 callers
Function
expandHome
Expand ~ to home directory in paths
server/index.ts:75
↓ 5 callers
Function
focusSession
* Focus camera and UI on a specific session
src/main.ts:1591
↓ 5 callers
Method
getCharacterParts
Get character parts for idle behavior system
src/entities/ClaudeMon.ts:516
↓ 5 callers
Function
getSession
* Get a session by ID
server/index.ts:857
↓ 5 callers
Function
getSessionKeybind
(index: number)
src/ui/KeyboardShortcuts.ts:41
↓ 5 callers
Function
hideQuestionModal
()
src/ui/QuestionModal.ts:162
↓ 5 callers
Method
isEnabled
* Check if draw mode is active
src/ui/DrawMode.ts:98
↓ 5 callers
Function
isHostedSite
* Check if we're running on the hosted vibecraft.sh site
src/ui/VoiceControl.ts:23
↓ 5 callers
Method
playSliderTick
* Play slider tick sound with pitch based on value * @param normalizedValue - 0 = low pitch, 1 = high pitch
src/audio/SoundManager.ts:365
↓ 5 callers
Function
renderManagedSessions
* Render the managed sessions list
src/main.ts:183
↓ 5 callers
Method
roundRect
* Draw a rounded rectangle path
src/scene/StationPanels.ts:308
↓ 5 callers
Method
scrollToBottom
* Scroll feed to bottom (deferred to next frame for accurate scrollHeight)
src/ui/FeedManager.ts:97
↓ 5 callers
Method
stop
Stop recording
src/audio/VoiceInput.ts:141
↓ 5 callers
Function
updateStats
()
src/main.ts:1713
↓ 5 callers
Function
updateStatus
(connected: boolean, text?: string)
src/main.ts:1666
↓ 5 callers
Method
updateZoneEdgeLines
* Update zone edge lines to match elevation
src/scene/WorkshopScene.ts:1166
↓ 5 callers
Method
updateZoneSideMesh
* Update zone side mesh to match elevation
src/scene/WorkshopScene.ts:1126
↓ 4 callers
Function
checkTmux
()
bin/cli.js:45
↓ 4 callers
Method
clearAllPaintedHexes
* Clear all painted hexes
src/scene/WorkshopScene.ts:3247
↓ 4 callers
Function
execFileAsync
* Promisified execFile helper
server/index.ts:188
↓ 4 callers
Function
formatTimeAgo
(timestamp: number)
src/ui/FeedManager.ts:515
↓ 4 callers
Method
getOutputNode
* Get the output node (panner if available, otherwise destination) * This routes audio through spatial processing
src/audio/SoundManager.ts:426
↓ 4 callers
Function
getSessions
* Get all managed sessions
server/index.ts:847
↓ 4 callers
Method
hide
* Hide the menu
src/ui/ContextMenu.ts:155
↓ 4 callers
Method
is3DMode
* Check if 3D mode is enabled
src/ui/DrawMode.ts:175
↓ 4 callers
Function
raycastFromMouse
(event: MouseEvent)
src/main.ts:963
↓ 4 callers
Method
removeNotification
(index: number)
src/scene/ZoneNotifications.ts:329
↓ 4 callers
Method
setFilter
* Filter feed items by session ID
src/ui/FeedManager.ts:76
↓ 4 callers
Method
setState
(state: ClaudeState)
src/entities/ClaudeMon.ts:490
↓ 4 callers
Function
showToast
(message: string, options: ToastOptions = {})
src/ui/Toast.ts:49
↓ 4 callers
Function
stopVoiceSession
* Stop a voice transcription session
server/index.ts:1203
↓ 4 callers
Function
syncState
()
src/ui/VoiceControl.ts:109
↓ 4 callers
Method
updateZoneLabel
* Update the floating label for a zone * @param keybind - Optional keybind string (1-6, Q-Y, A-H, Z-N) to show as badge
src/scene/WorkshopScene.ts:1436
↓ 3 callers
Method
animateCameraTo
* Animate camera to a new position and look-at target
src/scene/WorkshopScene.ts:935
↓ 3 callers
Method
appendIcon
* Append icon and scroll to end
src/ui/TimelineManager.ts:129
↓ 3 callers
Function
autoExpand
()
src/main.ts:1959
↓ 3 callers
Method
axialToCube
(hex: HexCoord)
src/utils/HexGrid.ts:117
↓ 3 callers
Function
broadcastTiles
* Broadcast text tiles to all clients
server/index.ts:1127
↓ 3 callers
Function
cancelEditing
* Cancel editing mode
src/ui/KeybindSettings.ts:185
↓ 3 callers
Function
checkJq
()
bin/cli.js:36
↓ 3 callers
Method
createHexagonShape
* Create a pointy-top hexagon shape
src/scene/WorkshopScene.ts:1213
↓ 3 callers
Method
createIcon
* Create a timeline icon element for an event
src/ui/TimelineManager.ts:138
↓ 3 callers
Method
fetchStatus
* Fetch git status for a directory
server/GitStatusManager.ts:122
↓ 3 callers
Method
getBindings
Get bindings for an action
src/ui/KeybindConfig.ts:136
↓ 3 callers
Method
getOccupant
* Get the session ID occupying a hex
src/utils/HexGrid.ts:226
↓ 3 callers
Method
getPaintedHexHeight
* Get the height of a painted hex at a position (0 if not painted)
src/scene/WorkshopScene.ts:1504
↓ 3 callers
Function
getTargetClaude
()
src/main.ts:1245
↓ 3 callers
Function
getTiles
* Get all text tiles
server/index.ts:1084
↓ 3 callers
Method
hexKey
* Get string key for a hex coordinate (for Map storage)
src/utils/HexGrid.ts:135
next →
1–100 of 643, ranked by callers