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
↓ 3 callers
Function
hideDropdown
()
src/ui/SlashCommands.ts:119
↓ 3 callers
Function
hideDropdown
()
src/ui/DirectoryAutocomplete.ts:121
↓ 3 callers
Function
hideZoneCommandModal
()
src/ui/ZoneCommandModal.ts:165
↓ 3 callers
Function
isOriginAllowed
* Validate WebSocket origin header to prevent CSRF attacks. * Only browser clients should connect, so we require a valid origin.
server/index.ts:123
↓ 3 callers
Method
notifyCameraModeChange
()
src/scene/WorkshopScene.ts:964
↓ 3 callers
Method
notifyListeners
()
src/ui/KeybindConfig.ts:225
↓ 3 callers
Method
notifyZoneElevationChange
(sessionId: string, elevation: number)
src/scene/WorkshopScene.ts:977
↓ 3 callers
Method
randomCooldown
()
src/entities/animations/IdleBehaviors.ts:739
↓ 3 callers
Method
remove
* Remove a subagent when its Task completes
src/entities/SubagentManager.ts:84
↓ 3 callers
Method
removePendingZone
* Remove a pending zone (called when real zone is created or on failure) * @param id - Identifier of the pending zone
src/scene/WorkshopScene.ts:443
↓ 3 callers
Function
renderDropdown
()
src/ui/SlashCommands.ts:67
↓ 3 callers
Function
renderDropdown
()
src/ui/DirectoryAutocomplete.ts:59
↓ 3 callers
Function
renderKeybindSettings
* Render the keybind settings UI
src/ui/KeybindSettings.ts:36
↓ 3 callers
Function
renderMarkdown
(text: string)
src/ui/FeedManager.ts:539
↓ 3 callers
Function
saveTiles
* Save text tiles to disk
server/index.ts:1091
↓ 3 callers
Function
selectResult
(path: string)
src/ui/DirectoryAutocomplete.ts:129
↓ 3 callers
Function
sendQuestionResponse
(response: string)
src/ui/QuestionModal.ts:193
↓ 3 callers
Method
setOverviewMode
* Switch to bird's eye overview showing all zones
src/scene/WorkshopScene.ts:900
↓ 3 callers
Method
setState
Set the character's state (affects animation and status indicators)
src/entities/ICharacter.ts:40
↓ 3 callers
Method
setStationContext
* Set context text above a station in a specific zone
src/scene/WorkshopScene.ts:2680
↓ 3 callers
Method
setZoneAttention
* Set attention state on a zone (persists until cleared)
src/scene/WorkshopScene.ts:1861
↓ 3 callers
Method
show
* Show the menu at a screen position with given items and context
src/ui/ContextMenu.ts:110
↓ 3 callers
Method
start
* Start capturing and streaming audio * @param sendAudio - Called with PCM ArrayBuffer for each audio chunk
src/audio/VoiceInput.ts:33
↓ 3 callers
Method
update
* Update panels that need re-rendering
src/scene/StationPanels.ts:168
↓ 3 callers
Function
updateAttentionBadge
()
src/main.ts:1698
↓ 3 callers
Method
updateStatusColor
()
src/entities/ClaudeMon.ts:529
↓ 3 callers
Method
updateStatusColor
()
src/entities/Claude.ts:219
↓ 2 callers
Method
add
* Add an event to the timeline
src/ui/TimelineManager.ts:40
↓ 2 callers
Function
addEvent
(event: ClaudeEvent)
server/index.ts:1279
↓ 2 callers
Function
applyStreamingMode
(enabled: boolean)
src/main.ts:2326
↓ 2 callers
Function
cancelRecording
()
src/ui/VoiceControl.ts:401
↓ 2 callers
Function
checkSessionHealth
* Check if tmux sessions are still alive and update status
server/index.ts:947
↓ 2 callers
Method
cleanup
()
src/audio/VoiceInput.ts:146
↓ 2 callers
Method
clearAllContexts
* Clear all station contexts for a zone (or all zones if no sessionId)
src/scene/WorkshopScene.ts:2714
↓ 2 callers
Method
clearPaintedHex
* Clear a painted hex (or lower a zone if hex is occupied)
src/scene/WorkshopScene.ts:3215
↓ 2 callers
Function
compareVersions
* Compare semantic versions. Returns: * -1 if a < b * 0 if a === b * 1 if a > b
src/ui/VersionChecker.ts:29
↓ 2 callers
Method
createArm
(side: number)
src/entities/ClaudeMon.ts:325
↓ 2 callers
Method
createArm
(xOffset: number)
src/entities/Claude.ts:128
↓ 2 callers
Function
createDropdown
()
src/ui/SlashCommands.ts:42
↓ 2 callers
Function
createDropdown
()
src/ui/DirectoryAutocomplete.ts:30
↓ 2 callers
Method
createResponsePreview
* Create HTML for tool response preview
src/ui/FeedManager.ts:477
↓ 2 callers
Method
createTextTileTexture
* Create texture for text tile with multi-line support
src/scene/WorkshopScene.ts:1603
↓ 2 callers
Method
createWorldHexGrid
* Create a world-level hex grid overlay * Renders subtle hex outlines across the floor to establish * the hex grid as the "base reality" of the
src/scene/WorkshopScene.ts:2276
↓ 2 callers
Method
createZone
* Create a new zone for a session * @param sessionId - Unique session identifier * @param options - Optional color and hint position for directi
src/scene/WorkshopScene.ts:491
↓ 2 callers
Method
decreaseBrushSize
* Decrease brush size
src/ui/DrawMode.ts:163
↓ 2 callers
Function
deleteManagedSession
* Delete a managed session
src/main.ts:456
↓ 2 callers
Method
drawLabelShape
* Draw glowing text label - no box, just text with glow effect
src/scene/WorkshopScene.ts:1355
↓ 2 callers
Function
escapeHtml
(text: string)
src/ui/DirectoryAutocomplete.ts:248
↓ 2 callers
Method
executeAction
(action: string)
src/ui/ContextMenu.ts:176
↓ 2 callers
Function
fetchResults
(query: string)
src/ui/DirectoryAutocomplete.ts:138
↓ 2 callers
Method
findNearestFreeFromCartesian
* Find nearest free hex from world cartesian coordinates
src/utils/HexGrid.ts:280
↓ 2 callers
Function
formatFileChange
( fileName: string, options?: { added?: number; removed?: number; lines?: number } )
src/scene/ZoneNotifications.ts:345
↓ 2 callers
Function
formatNumber
(n: number)
src/ui/ZoneInfoModal.ts:300
↓ 2 callers
Function
formatSearchResult
(pattern: string, matchCount?: number)
src/scene/ZoneNotifications.ts:372
↓ 2 callers
Function
getContainer
* Get or create the toast container
src/ui/Toast.ts:29
↓ 2 callers
Method
getPaintedHexMeshes
* Get all painted hex meshes (for raycasting)
src/scene/WorkshopScene.ts:3264
↓ 2 callers
Method
getQueue
Get current attention queue
src/systems/AttentionSystem.ts:28
↓ 2 callers
Function
getStationForTool
(tool: string)
shared/types.ts:219
↓ 2 callers
Function
getToolIcon
(tool: string)
src/utils/ToolUtils.ts:11
↓ 2 callers
Function
handleTranscript
(data: { transcript?: string; is_final?: boolean; speech_final?: boolean })
src/ui/VoiceControl.ts:272
↓ 2 callers
Function
hidePermissionModal
()
src/ui/PermissionModal.ts:138
↓ 2 callers
Method
hideThinking
* Hide the thinking indicator for a session (or all sessions)
src/ui/FeedManager.ts:166
↓ 2 callers
Function
hideZoneInfoModal
()
src/ui/ZoneInfoModal.ts:79
↓ 2 callers
Method
increaseBrushSize
* Increase brush size (max 4)
src/ui/DrawMode.ts:151
↓ 2 callers
Method
indexToHexCoord
* Convert linear index to hex coordinate using spiral pattern * Index 0 = center, 1-6 = ring 1, 7-18 = ring 2, etc.
src/utils/HexGrid.ts:366
↓ 2 callers
Method
init
* Initialize the draw mode UI * Call after DOM is ready
src/ui/DrawMode.ts:59
↓ 2 callers
Method
isNearBottom
* Check if feed is scrolled near the bottom
src/ui/FeedManager.ts:108
↓ 2 callers
Function
linkSessionOnServer
* Notify server about session linking
src/main.ts:1534
↓ 2 callers
Method
matches
Check if an event matches any binding for an action
src/ui/KeybindConfig.ts:141
↓ 2 callers
Method
moveToPosition
Move character to a specific position
src/entities/ICharacter.ts:37
↓ 2 callers
Method
notifyConnectionHandlers
(connected: boolean)
src/events/EventClient.ts:256
↓ 2 callers
Method
notifyEventHandlers
(event: ClaudeEvent)
src/events/EventClient.ts:236
↓ 2 callers
Method
offRender
(callback: (delta: number) => void)
src/scene/WorkshopScene.ts:2353
↓ 2 callers
Method
onConnection
(handler: ConnectionHandler)
src/events/EventClient.ts:210
↓ 2 callers
Method
onRawMessage
Handle raw messages that aren't standard event types (e.g., voice transcripts)
src/events/EventClient.ts:231
↓ 2 callers
Method
onRender
(callback: (delta: number) => void)
src/scene/WorkshopScene.ts:2349
↓ 2 callers
Function
openNewSessionModal
* Open the new session modal (callable from anywhere) * @param hintPosition - Optional world position from click for direction-aware placement
src/main.ts:549
↓ 2 callers
Method
paintHex
* Paint a hex with a color (draw mode) * If hex is already painted with same color, increases height * Returns true if painted, false if skipped
src/scene/WorkshopScene.ts:3079
↓ 2 callers
Function
paintWithBrush
(centerHex: { q: number; r: number }, playSound: boolean)
src/main.ts:931
↓ 2 callers
Method
parseHexKey
* Parse a hex key back to coordinates
src/utils/HexGrid.ts:142
↓ 2 callers
Method
playColorSelect
* Play a chord when selecting a draw mode color * Each color has its own characteristic chord * @param colorIndex - 0-5 for colors, -1 for erase
src/audio/SoundManager.ts:390
↓ 2 callers
Method
playHover
* Play hover sound with pitch based on distance from center * @param normalizedDistance - 0 = center, 1 = edge (will be clamped) * * Tuning c
src/audio/SoundManager.ts:341
↓ 2 callers
Method
playIdleBehavior
Force play a specific idle behavior (for dev/testing)
src/entities/ClaudeMon.ts:743
↓ 2 callers
Method
pollAll
* Poll all tracked directories
server/GitStatusManager.ts:112
↓ 2 callers
Function
pollTokens
* Poll tmux output for token counts
server/index.ts:388
↓ 2 callers
Function
processEvent
(event: ClaudeEvent)
server/index.ts:1257
↓ 2 callers
Method
removeEmptyState
* Remove the empty state placeholder
src/ui/FeedManager.ts:185
↓ 2 callers
Function
removeToast
(toast: HTMLElement)
src/ui/Toast.ts:92
↓ 2 callers
Method
renderPanelCanvas
* Render panel content to canvas
src/scene/StationPanels.ts:225
↓ 2 callers
Method
requestPermission
Request notification permission (call on user interaction)
src/systems/AttentionSystem.ts:162
↓ 2 callers
Function
saveToStorage
(bindings: Record<string, Keybind[]>)
src/ui/KeybindConfig.ts:80
↓ 2 callers
Method
scheduleReconnect
()
src/events/EventClient.ts:120
↓ 2 callers
Method
selectColor
* Select a color by index (0-5)
src/ui/DrawMode.ts:121
↓ 2 callers
Function
selectCommand
(command: string)
src/ui/SlashCommands.ts:127
↓ 2 callers
Method
selectEraser
* Select eraser mode
src/ui/DrawMode.ts:134
↓ 2 callers
Function
sendCommand
* Send the command to the zone's session
src/ui/ZoneCommandModal.ts:247
↓ 2 callers
Function
sendPermissionResponse
(response: string)
src/ui/PermissionModal.ts:166
↓ 2 callers
Function
sendPermissionResponse
* Send a permission response to a session. * The response should be the option number ("1", "2", "3", etc.)
server/index.ts:708
↓ 2 callers
Function
sendPromptToManagedSession
* Send a prompt to the selected managed session
src/main.ts:509
↓ 2 callers
Function
sendToTmuxSafe
* Safely send text to a tmux session using load-buffer + paste-buffer. * Uses execFile with proper arguments to prevent shell injection.
server/index.ts:225
← previous
next →
101–200 of 643, ranked by callers