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
↓ 3 callers
Function
createEmbeddingSource
(options = {})
embeddings/embeddingService.js:127
↓ 3 callers
Function
createOpenAIEmbeddingBackend
(options = {})
embeddings/backends/openaiBackend.js:3
↓ 3 callers
Function
credentialToJSON
(credential)
chat/services/accountService.js:330
↓ 3 callers
Method
deleteCurrentSessionShare
* Delete the share for the current session
chat/app.js:2736
↓ 3 callers
Method
deleteSession
* Deletes a session and its messages. * @param {string} sessionId - ID of the session to delete
chat/app.js:6482
↓ 3 callers
Function
deriveRecoveryKey
* Derive an AES key from the recovery code using Argon2id. * Argon2id is memory-hard, making brute-force attacks expensive even with GPUs/ASICs. * T
chat/services/accountService.js:172
↓ 3 callers
Method
enableScrubberPreviewSticky
(shouldMarkEditing = false)
chat/components/ChatInput.js:1229
↓ 3 callers
Function
encryptBlob
* Encrypt data. Type and all metadata go INSIDE the ciphertext.
chat/services/syncService.js:120
↓ 3 callers
Method
ensureActivePromptSpacer
()
chat/app.js:824
↓ 3 callers
Function
ensureCacheSize
* Ensures cache doesn't exceed max size by removing oldest entry if needed.
chat/services/urlMetadata.js:13
↓ 3 callers
Function
ensurePositiveInteger
(value, fallback)
vector/utils.js:66
↓ 3 callers
Method
ensureValidAccessMode
()
chat/components/WelcomePanel.js:200
↓ 3 callers
Function
escapeHtml
(text)
chat/services/networkLogRenderer.js:65
↓ 3 callers
Method
escapeHtml
(text)
chat/components/ThanksPanel.js:124
↓ 3 callers
Method
escapeHtmlAttribute
(text)
chat/components/Sidebar.js:63
↓ 3 callers
Method
escapeHtmlAttribute
(text)
chat/components/RightPanel.js:297
↓ 3 callers
Method
fetchModels
(force = false)
chat/services/scrubberService.js:383
↓ 3 callers
Function
fetchRetry
(url, init = {}, config = {})
chat/services/fetchRetry.js:122
↓ 3 callers
Function
fetchUrlMetadata
* Fetches metadata for a URL using a CORS proxy. * Falls back to basic metadata if fetch fails. * @param {string} url - The URL to fetch metadata fo
chat/services/urlMetadata.js:40
↓ 3 callers
Method
findSession
(matchFn)
chat/db.js:435
↓ 3 callers
Method
findSessionByImportedFrom
(importedFrom)
chat/db.js:421
↓ 3 callers
Function
formatAccountId
(accountId)
chat/services/accountService.js:61
↓ 3 callers
Function
formatMemoryConfidenceLabel
(value)
chat/services/memoryConfidence.js:27
↓ 3 callers
Function
formatTimestamp
(timestamp)
chat/services/networkLogRenderer.js:6
↓ 3 callers
Method
generateSessionTitle
(prompt, apiKey, options = {})
chat/api.js:366
↓ 3 callers
Method
getAllLogs
* Get all logs
chat/services/networkLogger.js:86
↓ 3 callers
Method
getApiKey
()
chat/api.js:56
↓ 3 callers
Method
getEffectiveTheme
()
chat/services/themeManager.js:151
↓ 3 callers
Function
getFileIconSvg
(fileType, mimeType, className = "w-8 h-8")
chat/services/fileUtils.js:107
↓ 3 callers
Method
getInputKind
(value)
chat/components/ThanksPanel.js:145
↓ 3 callers
Function
getMemoryConfidenceBarCount
(value)
chat/services/memoryConfidence.js:19
↓ 3 callers
Method
getMessageTextFromDOM
* Gets visible text content from a message element in the DOM. * @param {string} messageId - The message ID * @returns {string|null} The tex
chat/components/ChatArea.js:874
↓ 3 callers
Method
getModelOptions
* Gets all visible model option elements. * @returns {Array} Array of model option elements
chat/components/ModelPicker.js:528
↓ 3 callers
Function
getNextBackoff
* Calculate next backoff delay with jitter
chat/services/verifier.js:59
↓ 3 callers
Function
getPasswordMode
()
chat/components/ShareModals.js:137
↓ 3 callers
Function
getPinnedModels
()
chat/services/modelConfig.js:198
↓ 3 callers
Method
getScrubberMessageContent
(message, mode)
chat/app.js:5039
↓ 3 callers
Method
getSessionListEmptyText
()
chat/app.js:7332
↓ 3 callers
Function
getTextLengthExcludingZWSP
(text)
chat/services/editableDiffRenderer.js:193
↓ 3 callers
Method
getTicketCodeShareUrl
(code)
chat/components/RightPanel.js:283
↓ 3 callers
Function
getTicketCost
(modelId, reasoningEnabled = false)
chat/services/modelTiers.js:145
↓ 3 callers
Method
getTickets
()
chat/services/ticketStore.js:384
↓ 3 callers
Method
groupSessionsByDate
(sessions)
chat/components/Sidebar.js:568
↓ 3 callers
Method
handleCloseAttempt
()
chat/components/ThanksPanel.js:87
↓ 3 callers
Method
handleCloseAttempt
()
chat/components/WelcomePanel.js:122
↓ 3 callers
Method
handleCloseAttempt
()
chat/components/AccountModal.js:100
↓ 3 callers
Method
handleCopyCodeBlock
* Handles copying code from a code block * @param {HTMLElement} btn - The copy button element
chat/components/ChatArea.js:1166
↓ 3 callers
Method
handleEditFileUpload
(messageId, files)
chat/app.js:6587
↓ 3 callers
Method
handleNewChatRequest
* Handles new chat request with validation (prevents empty duplicate sessions).
chat/app.js:3710
↓ 3 callers
Method
handleStorageEvent
(type, payload)
chat/app.js:7208
↓ 3 callers
Method
hide
()
chat/components/RightPanel.js:485
↓ 3 callers
Method
hideLinkPreview
* Hides the link preview card.
chat/app.js:1447
↓ 3 callers
Method
hidePreviewImmediate
()
chat/components/MessageNavigation.js:235
↓ 3 callers
Method
importTickets
(payload)
chat/services/ticketStore.js:555
↓ 3 callers
Method
init
()
chat/services/preferencesStore.js:113
↓ 3 callers
Method
initScrollAwareScrollbars
(element, hideDelayMs = 1500)
chat/app.js:646
↓ 3 callers
Function
isAllowedConfidentialModel
(modelId)
chat/services/confidentialModelConfig.js:16
↓ 3 callers
Function
isMemoryAuthError
(error)
chat/services/memoryBridge.js:66
↓ 3 callers
Method
isMessageStreamingInDOM
* Checks whether a message is actively streaming in the current DOM. * @param {string} messageId - The message ID * @returns {boolean} True
chat/components/ChatArea.js:892
↓ 3 callers
Method
isWelcomeWorkflowActive
()
chat/app.js:2847
↓ 3 callers
Function
mapCredentials
(credentials = [])
chat/services/accountService.js:240
↓ 3 callers
Method
markHadTicketsBeforeIfNeeded
(activeCount, archivedCount)
chat/services/ticketStore.js:79
↓ 3 callers
Method
maybeShowQuickAskPopover
()
chat/components/ChatArea.js:390
↓ 3 callers
Method
navigateToMessage
(index)
chat/components/MessageNavigation.js:305
↓ 3 callers
Function
normalizeMemoryConfidenceValue
(value, fallback = 0.7)
chat/services/memoryConfidence.js:1
↓ 3 callers
Function
normalizePendingPhase
(phase)
chat/components/MessageTemplates.js:125
↓ 3 callers
Method
normalizeTimestamp
(value)
chat/services/syncService.js:351
↓ 3 callers
Function
normalizeUsage
(usage, inputText, outputText)
local_inference/backends/webllmBackend.js:73
↓ 3 callers
Function
normalizeWrappedKeyPayload
(payload)
chat/services/accountService.js:117
↓ 3 callers
Method
notify
(key, value)
chat/services/preferencesStore.js:447
↓ 3 callers
Method
notifyListeners
* Notify all listeners
chat/services/networkLogger.js:129
↓ 3 callers
Method
parseBroadcastData
* Parse broadcast data to get verified and banned stations
chat/services/verifier.js:568
↓ 3 callers
Method
parseInviteCode
Normalize and validate a raw invite code string. Returns the cleaned code or null.
chat/components/WelcomePanel.js:189
↓ 3 callers
Function
parseJsonResult
(rawResult)
chat/services/androidNativeInferenceTransport.js:10
↓ 3 callers
Function
placeCaretAt
(node, placeAfter)
chat/services/editableDiffRenderer.js:357
↓ 3 callers
Method
positionQuickAskWindow
(panel, rect, options = {})
chat/components/ChatArea.js:552
↓ 3 callers
Method
prepareModel
(modelId, options = {})
embeddings/embeddingService.js:73
↓ 3 callers
Method
primeTurnstileBubble
()
chat/components/WelcomePanel.js:911
↓ 3 callers
Function
readMultiline
(rl, header)
experiments/local-inference-cli.mjs:22
↓ 3 callers
Method
recordApprovedMemoryContext
(session, draft, generation = null)
chat/app.js:4524
↓ 3 callers
Method
refreshSessionConversationSearchText
(session, messages = null, options = {})
chat/app.js:3887
↓ 3 callers
Function
registerBackend
(name, factory)
vector/index.js:9
↓ 3 callers
Function
registerEmbeddingBackend
(name, factory)
embeddings/embeddingService.js:8
↓ 3 callers
Method
reloadSessions
()
chat/app.js:7190
↓ 3 callers
Method
render
()
chat/components/TLSSecurityModal.js:101
↓ 3 callers
Method
render
()
chat/components/RightPanel.js:2677
↓ 3 callers
Method
renderCurrentModel
* Renders the current model display in the input area.
chat/components/ModelPicker.js:413
↓ 3 callers
Method
renderVirtualRange
(force = false)
chat/components/Sidebar.js:707
↓ 3 callers
Method
resetScrubberPreviewHeight
()
chat/components/ChatInput.js:1410
↓ 3 callers
Method
resetScrubberPreviewHint
()
chat/components/ChatInput.js:1416
↓ 3 callers
Method
resetScrubberTabShortcutState
()
chat/components/ChatInput.js:472
↓ 3 callers
Function
resetStats
()
experiments/local-webllm-demo.js:50
↓ 3 callers
Function
resolveDefaultModelPreferenceUpdate
(options = {})
chat/domain/modelSelection.js:93
↓ 3 callers
Function
resolveImportedMemoryPreferences
(options = {})
chat/domain/memorySettings.js:35
↓ 3 callers
Method
resolvePendingPhaseForSession
(session)
chat/app.js:6226
↓ 3 callers
Method
restoreActivePromptScrollAnchor
(anchor)
chat/app.js:934
↓ 3 callers
Method
sanitizeMessagesForApi
* Sanitizes messages for API calls by ensuring scrubbed content is used. * For assistant messages with scrubber metadata, always uses the redacte
chat/app.js:5006
↓ 3 callers
Method
saveSessionWithMessages
(session, messages)
chat/db.js:271
↓ 3 callers
Function
saveWithConfirmation
(blob, suggestedName)
chat/services/globalExport.js:214
↓ 3 callers
Method
scrollToBottomInstant
()
chat/components/RightPanel.js:1550
← previous
next →
401–500 of 2,047, ranked by callers