Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenAnonymity/oa-chat
/ functions
Functions
2,047 in github.com/OpenAnonymity/oa-chat
⨍
Functions
2,047
◇
Types & classes
86
↓ 232 callers
Method
push
(index, score)
vector/memoryBackend.js:11
↓ 182 callers
Method
remove
(ids)
vector/index.js:103
↓ 116 callers
Method
showToast
* Show a toast notification * @param {string} message - Message to display * @param {string} type - 'success' or 'error' * @param {numb
chat/app.js:2858
↓ 79 callers
Method
createElement
()
chat/components/FloatingPanel.js:54
↓ 76 callers
Method
get
(ids, options)
vector/index.js:108
↓ 60 callers
Method
getCurrentSession
* Gets the current active session. * @returns {Object|undefined} Current session or undefined
chat/app.js:3520
↓ 59 callers
Method
set
(percent)
chat/services/smoothProgress.js:41
↓ 59 callers
Method
toggle
()
chat/components/RightPanel.js:494
↓ 53 callers
Method
saveSetting
(key, value)
chat/db.js:610
↓ 47 callers
Method
getSetting
(key)
chat/db.js:635
↓ 46 callers
Method
saveSession
(session)
chat/db.js:257
↓ 42 callers
Function
escapeHtmlAttribute
(text)
chat/components/MessageTemplates.js:115
↓ 41 callers
Method
logRequest
* Log a network request or local event * @param {Object} details - Event details * @param {string} details.type - Type of event (ticket, api
chat/services/networkLogger.js:36
↓ 39 callers
Method
getSessionMessages
(sessionId)
chat/db.js:557
↓ 38 callers
Method
getPreference
()
chat/services/themeManager.js:147
↓ 37 callers
Method
savePreference
(key, value, options = {})
chat/services/preferencesStore.js:341
↓ 36 callers
Method
saveMessage
(message)
chat/db.js:543
↓ 35 callers
Method
isViewingSession
* Checks if the user is currently viewing the specified session. * Used to gate UI updates for streaming to prevent cross-session pollution.
chat/app.js:3536
↓ 34 callers
Method
_assertMemoryOperationActive
(operation)
chat/components/MemoryEditor.js:207
↓ 33 callers
Function
setStatus
(message, tone = 'info')
experiments/local-webllm-demo.js:31
↓ 31 callers
Method
escapeHtml
(text)
chat/components/RightPanel.js:291
↓ 31 callers
Method
renderTopSectionOnly
* Re-renders only the top section (tickets/API key) without re-rendering logs.
chat/components/RightPanel.js:2483
↓ 27 callers
Method
normalizeModelName
* Normalizes any stored model reference into the canonical display name * used throughout the UI. * * Accepts: * - A model ID (e.g
chat/app.js:3321
↓ 26 callers
Method
renderSessions
* Renders the sessions list (delegated to Sidebar component).
chat/app.js:7614
↓ 25 callers
Function
getBackendForSession
(session)
chat/services/inference/inferenceService.js:39
↓ 24 callers
Method
abort
()
chat/services/networkProxy.js:620
↓ 23 callers
Function
escapeHtml
* Escapes HTML special characters in text. * @param {string} text - The text to escape * @returns {string} HTML-safe text
chat/components/MessageTemplates.js:97
↓ 23 callers
Method
render
()
chat/components/MemoryEditor.js:253
↓ 23 callers
Method
render
()
chat/components/AccountModal.js:396
↓ 22 callers
Method
isMemoryFeatureActive
(generation = this.memoryWorkGeneration)
chat/app.js:4203
↓ 21 callers
Method
_escapeHtml
(text)
chat/components/MemoryEditor.js:1612
↓ 18 callers
Method
fetchWithRetryJson
* Fetch with retry and JSON parsing using this proxy's transport. * * @param {string|Request} url - URL or Request object * @param {Re
chat/services/networkProxy.js:765
↓ 18 callers
Method
getSessionStreamingState
* Gets the streaming state for a session * @param {string} sessionId - Session ID * @returns {Object} Streaming state object with isStreamin
chat/app.js:3545
↓ 18 callers
Method
render
()
chat/components/WelcomePanel.js:845
↓ 18 callers
Method
sanitizeHeaders
* Sanitize headers (remove sensitive data)
chat/services/networkLogger.js:163
↓ 18 callers
Method
switchSession
* Switches to a different session. * @param {string} sessionId - ID of the session to switch to
chat/app.js:3447
↓ 17 callers
Method
clear
()
vector/index.js:123
↓ 17 callers
Method
init
()
chat/services/syncService.js:194
↓ 17 callers
Method
notify
()
chat/services/accountService.js:698
↓ 16 callers
Method
_isMemoryFeatureEnabled
()
chat/components/MemoryEditor.js:165
↓ 16 callers
Function
throwIfAborted
(signal)
chat/services/memoryBridge.js:15
↓ 16 callers
Method
updateToolbarDivider
* Updates toolbar state. Can predict final width with widthDelta parameter. * @param {number} widthDelta - Optional: predicted change in main are
chat/app.js:1221
↓ 15 callers
Method
isMobileView
()
chat/app.js:7876
↓ 15 callers
Function
withMemoryBank
(signal, operation)
chat/services/memoryInstances.js:57
↓ 14 callers
Method
getTicketCount
()
chat/services/ticketClient.js:62
↓ 14 callers
Method
refreshMemorySettingsUI
()
chat/components/ChatInput.js:1572
↓ 14 callers
Function
sanitizeUrl
* Allowlist URL sanitizer for link/image attributes.
chat/components/MessageTemplates.js:295
↓ 14 callers
Method
updateScrollButtonVisibility
* Checks scroll position and updates button visibility
chat/app.js:1293
↓ 14 callers
Method
upsert
(items)
vector/index.js:97
↓ 13 callers
Method
escapeHtml
(str)
chat/components/VerifierAttestationModal.js:1547
↓ 13 callers
Method
open
()
chat/components/ThanksPanel.js:46
↓ 13 callers
Method
renderCurrentModel
* Renders the current model display (delegated to ModelPicker component).
chat/app.js:7636
↓ 13 callers
Method
renderMessages
* Renders all messages for the current session (delegated to ChatArea component).
chat/app.js:7645
↓ 13 callers
Method
search
(query, k, options)
vector/index.js:113
↓ 12 callers
Method
_beginMemoryOperation
()
chat/components/MemoryEditor.js:180
↓ 12 callers
Method
_finishMemoryOperation
(operation)
chat/components/MemoryEditor.js:194
↓ 12 callers
Method
_handleMemoryOperationError
(error)
chat/components/MemoryEditor.js:213
↓ 12 callers
Method
clearMemoryApiOverrideContent
()
chat/app.js:4207
↓ 12 callers
Function
emitStatus
(payload)
local_inference/localInferenceService.js:15
↓ 12 callers
Method
generateId
* Generates a unique ID for sessions and messages using ULID. * Format: 5-5-5-6 lowercase (e.g., 01j7x-kqnp2-4mvwt-ghr85c) * Uses 21 chars:
chat/app.js:3273
↓ 12 callers
Method
getAccessToken
()
chat/services/syncService.js:343
↓ 12 callers
Method
on
(type, handler)
chat/services/storageEvents.js:80
↓ 12 callers
Function
read
(relativePath)
test/architecture/uiBoundary.test.js:8
↓ 12 callers
Method
setState
(patch)
chat/services/accountService.js:716
↓ 12 callers
Method
updateActivePromptScrollSpacer
* Maintains just enough temporary bottom runway to keep the active prompt * at the target viewport position. As assistant output grows, the space
chat/app.js:967
↓ 12 callers
Method
updateStatus
()
chat/services/accountService.js:703
↓ 11 callers
Function
createVectorStore
(options = {})
vector/index.js:139
↓ 11 callers
Method
deleteMessage
(messageId)
chat/db.js:595
↓ 11 callers
Method
emitChange
()
chat/services/networkProxy.js:366
↓ 11 callers
Method
isCurrentSessionStreaming
* Checks if current session is streaming * @returns {boolean}
chat/app.js:3648
↓ 11 callers
Method
mergeTickets
(existing, incoming)
chat/services/ticketStore.js:235
↓ 11 callers
Method
onChange
(callback)
chat/services/networkProxy.js:375
↓ 11 callers
Method
persistTickets
(activeTickets, archivedTickets, options = {})
chat/services/ticketStore.js:270
↓ 11 callers
Method
renderRow
(label, value, valueClass = 'text-foreground', truncate = false)
chat/components/VerifierAttestationModal.js:1528
↓ 11 callers
Function
runAbortable
(operation, options = {})
chat/services/memoryInstances.js:26
↓ 11 callers
Method
showMessage
(text, type = 'info', duration = 0)
chat/components/FloatingPanel.js:103
↓ 11 callers
Method
stop
()
chat/services/smoothProgress.js:73
↓ 11 callers
Function
throwIfAborted
(signal)
chat/services/memoryInstances.js:20
↓ 10 callers
Method
cleanup
* Clean up current modal
chat/components/ShareModals.js:375
↓ 10 callers
Method
close
()
chat/components/ThanksPanel.js:92
↓ 10 callers
Method
closeAllMenus
(exceptMenu = null)
chat/components/Sidebar.js:535
↓ 10 callers
Method
escapeHtml
(text)
chat/components/AccountModal.js:145
↓ 10 callers
Method
getAllSessions
()
chat/db.js:327
↓ 10 callers
Method
hasActiveSessionListCriteria
()
chat/app.js:7268
↓ 10 callers
Method
hideSidebar
(options = {})
chat/app.js:7789
↓ 10 callers
Method
onSessionChange
(session)
chat/components/RightPanel.js:220
↓ 10 callers
Method
persistLocalAssistantStatus
(message)
chat/app.js:4062
↓ 10 callers
Function
runAbortable
(operation, signal)
chat/services/omfImporter.js:18
↓ 10 callers
Method
setError
(error)
chat/services/accountService.js:803
↓ 10 callers
Method
updateMessage
* Updates a specific message in the DOM without full re-render. * @param {Object} message - The message object to update
chat/components/ChatArea.js:1869
↓ 10 callers
Method
updateUrlWithSession
* Update URL to include current session ID * @param {string} sessionId - Session ID (local or share)
chat/app.js:2553
↓ 9 callers
Method
_loadFileTree
(operation = null)
chat/components/MemoryEditor.js:223
↓ 9 callers
Method
_resolvePending
(value)
chat/components/TurnstileBubble.js:449
↓ 9 callers
Method
_showMemoryOffToast
()
chat/components/MemoryEditor.js:169
↓ 9 callers
Method
addMessage
* Adds a message to the current session. * @param {string} role - Message role ('user' or 'assistant') * @param {string} content - Message c
chat/app.js:3970
↓ 9 callers
Function
escapeHtml
* Escape HTML special characters
chat/components/ShareModals.js:20
↓ 9 callers
Method
isPreviewMode
()
chat/components/WelcomePanel.js:196
↓ 9 callers
Method
loadNextTicket
()
chat/components/RightPanel.js:226
↓ 9 callers
Function
pathExists
(target)
scripts/build.mjs:19
↓ 9 callers
Method
render
()
chat/components/ChatHistoryImportModal.js:86
next →
1–100 of 2,047, ranked by callers