Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/baturyilmaz/wordpecker-app
/ functions
Functions
213 in github.com/baturyilmaz/wordpecker-app
⨍
Functions
213
◇
Types & classes
94
↓ 12 callers
Function
getUserLanguages
(userId: string)
backend/src/utils/getUserLanguages.ts:8
↓ 8 callers
Method
getCurrentProgress
()
frontend/src/services/sessionService.ts:50
↓ 8 callers
Function
onClose
()
frontend/src/pages/WordDetail.tsx:68
↓ 4 callers
Method
answerQuestion
(userAnswer: string, question: Exercise | Question, overrideCorrect?: boolean)
frontend/src/services/sessionService.ts:54
↓ 4 callers
Method
completeSession
()
frontend/src/services/sessionService.ts:95
↓ 4 callers
Method
generateAudio
* Generate audio using ElevenLabs API
backend/src/services/elevenlabs.ts:235
↓ 4 callers
Function
getUserId
(req: T)
backend/src/api/image-description/routes.ts:18
↓ 4 callers
Function
transform
(list: IWordList)
backend/src/api/lists/routes.ts:9
↓ 4 callers
Function
validateLanguage
(language: string, type: 'base' | 'target')
frontend/src/pages/Settings.tsx:187
↓ 3 callers
Method
connect
(ephemeralToken: string)
frontend/src/agents/voice-agent/index.ts:122
↓ 3 callers
Function
connectDB
(retries = 5, delay = 5000)
backend/src/config/mongodb.ts:20
↓ 3 callers
Method
disconnect
()
frontend/src/agents/voice-agent/index.ts:157
↓ 3 callers
Method
getCachedFilePath
* Get cached audio file path
backend/src/services/elevenlabs.ts:85
↓ 3 callers
Function
getCategoryIcon
(category: string)
frontend/src/pages/TemplateLibrary.tsx:66
↓ 3 callers
Method
getInsights
()
frontend/src/services/sessionService.ts:126
↓ 3 callers
Function
startExercise
(useSessionContext = false)
frontend/src/pages/ImageDescription.tsx:119
↓ 2 callers
Function
cleanText
(text: string)
frontend/src/components/questions/MatchingQuestion.tsx:41
↓ 2 callers
Function
configureOpenAIAgents
()
backend/src/agents/config.ts:3
↓ 2 callers
Function
formatTime
(seconds: number)
frontend/src/components/AudioPlayer.tsx:196
↓ 2 callers
Method
generateContext
()
backend/src/api/image-description/agent-service.ts:9
↓ 2 callers
Method
generateExercises
( words: Array<{id: string, value: string, meaning: string}>, context: string, exerciseTypes: st
backend/src/api/learn/agent-service.ts:6
↓ 2 callers
Method
generateLightReading
(words: Array<{value: string, meaning: string}>, context: string, baseLanguage: string, targetLanguage: string
backend/src/api/words/agent-service.ts:42
↓ 2 callers
Method
generateQuestions
( words: Array<{id: string, value: string, meaning: string}>, context: string, questionTypes: st
backend/src/api/quiz/agent-service.ts:6
↓ 2 callers
Method
generateSimilarWords
(word: string, meaning: string, context: string, baseLanguage: string, targetLanguage: string)
backend/src/api/words/agent-service.ts:36
↓ 2 callers
Function
getExerciseTypes
(userId: string)
backend/src/api/learn/routes.ts:28
↓ 2 callers
Function
getLanguageDisplayName
(code: string)
frontend/src/pages/Settings.tsx:133
↓ 2 callers
Function
getProgressColor
(learnedPoint: number)
frontend/src/pages/WordDetail.tsx:330
↓ 2 callers
Function
getQuestionTypes
(userId: string)
backend/src/api/quiz/routes.ts:20
↓ 2 callers
Function
getUserId
(req: T)
backend/src/api/preferences/routes.ts:8
↓ 2 callers
Method
getWordDetails
(word: string, context: string, baseLanguage: string, targetLanguage: string)
backend/src/api/vocabulary/agent-service.ts:13
↓ 2 callers
Function
handleGenerateImage
(imageSource: 'ai' | 'stock')
frontend/src/pages/WordLearningSession.tsx:184
↓ 2 callers
Function
handleGenerateWordImage
(imageSource: 'ai' | 'stock')
frontend/src/pages/WordDetail.tsx:288
↓ 2 callers
Method
isAudioCached
* Check if audio is cached
backend/src/services/elevenlabs.ts:92
↓ 2 callers
Function
loadWordLists
()
frontend/src/pages/ImageDescription.tsx:78
↓ 2 callers
Function
moveToNextWord
()
frontend/src/pages/WordLearningSession.tsx:165
↓ 2 callers
Method
nextQuestion
()
frontend/src/services/sessionService.ts:79
↓ 2 callers
Function
selectSmartWords
(words: any[], listId: string)
backend/src/api/learn/routes.ts:13
↓ 2 callers
Function
shuffleArray
(array: T[])
frontend/src/components/questions/MatchingQuestion.tsx:31
↓ 2 callers
Function
transformTemplate
(template: any, includeWords = false)
backend/src/api/templates/routes.ts:10
↓ 2 callers
Function
transformWord
(word: IWord, listId: string)
backend/src/api/words/routes.ts:20
↓ 2 callers
Function
transformWords
(words: any[], listId: string)
backend/src/api/quiz/routes.ts:13
↓ 2 callers
Function
useVoiceAgent
()
frontend/src/agents/voice-agent/hooks.ts:7
↓ 2 callers
Function
validateAnswer
( userAnswer: string, question: Exercise | Question, context?: string )
frontend/src/utils/answerValidation.ts:4
↓ 2 callers
Function
validateRequest
(req: T)
backend/src/api/vocabulary/routes.ts:11
↓ 1 callers
Method
analyzeDescription
(userDescription: string, imageUrl: string, context: string, baseLanguage: string, targetLanguage: string)
backend/src/api/image-description/agent-service.ts:38
↓ 1 callers
Method
calculateScore
(streak: number)
frontend/src/services/sessionService.ts:118
↓ 1 callers
Method
checkAnswer
(userAnswer: string, question: Exercise | Question)
frontend/src/services/sessionService.ts:101
↓ 1 callers
Function
continueSession
()
frontend/src/pages/ImageDescription.tsx:280
↓ 1 callers
Function
createAddWordTool
(getContext: () => VoiceAgentContextData | null)
frontend/src/agents/voice-agent/tools.ts:7
↓ 1 callers
Method
createAgent
(agentConfig: VoiceAgentConfig)
frontend/src/agents/voice-agent/index.ts:20
↓ 1 callers
Function
createVocabularyRichPrompt
(context: string)
backend/src/agents/image-generation-agent/tools/generateAiImage.ts:53
↓ 1 callers
Method
determineTargetLanguage
* Determine the target language for audio generation
backend/src/services/elevenlabs.ts:186
↓ 1 callers
Function
fetchData
()
frontend/src/pages/TemplateLibrary.tsx:97
↓ 1 callers
Function
fetchListDetails
()
frontend/src/pages/ListDetail.tsx:87
↓ 1 callers
Function
fetchLists
()
frontend/src/pages/Lists.tsx:52
↓ 1 callers
Method
findStockImage
(context: string, sessionId?: string)
backend/src/api/image-description/stock-photo-service.ts:32
↓ 1 callers
Method
generateAIImage
(context: string, sessionId: string)
backend/src/api/image-description/agent-service.ts:32
↓ 1 callers
Method
generateCacheKey
* Generate a cache key for audio content
backend/src/services/elevenlabs.ts:77
↓ 1 callers
Function
generateColor
(word: string)
frontend/src/pages/ListDetail.tsx:43
↓ 1 callers
Method
generateDefinition
(word: string, context: string, baseLanguage: string, targetLanguage: string)
backend/src/api/words/agent-service.ts:16
↓ 1 callers
Method
generateExamples
(word: string, meaning: string, context: string, baseLanguage: string, targetLanguage: string)
backend/src/api/words/agent-service.ts:29
↓ 1 callers
Function
generateHoverColor
(word: string)
frontend/src/pages/ListDetail.tsx:51
↓ 1 callers
Method
generateWords
(count: number, difficulty: string, context: string, baseLanguage: string, targetLanguage: string, excludeWord
backend/src/api/vocabulary/agent-service.ts:6
↓ 1 callers
Method
getAvailableVoices
* Get available voices for a language
backend/src/services/elevenlabs.ts:326
↓ 1 callers
Function
getBackgroundColor
(label: string)
frontend/src/components/questions/SentenceCompletionQuestion.tsx:42
↓ 1 callers
Function
getBackgroundColor
(label: string)
frontend/src/components/questions/MultipleChoiceQuestion.tsx:41
↓ 1 callers
Function
getBackgroundColor
(label: string)
frontend/src/components/questions/TrueFalseQuestion.tsx:41
↓ 1 callers
Method
getBestVoiceForLanguage
* Get best voice for language with intelligent fallback
backend/src/services/elevenlabs.ts:166
↓ 1 callers
Function
getBorderColor
(label: string)
frontend/src/components/questions/SentenceCompletionQuestion.tsx:28
↓ 1 callers
Function
getBorderColor
(label: string)
frontend/src/components/questions/MultipleChoiceQuestion.tsx:27
↓ 1 callers
Function
getBorderColor
(label: string)
frontend/src/components/questions/TrueFalseQuestion.tsx:27
↓ 1 callers
Method
getCachedAudio
* Serve cached audio file
backend/src/services/elevenlabs.ts:352
↓ 1 callers
Method
getLanguageFamily
* Get language family for better voice matching
backend/src/services/elevenlabs.ts:142
↓ 1 callers
Method
getLanguageLearningSettings
* Get language-specific audio settings for optimal learning
backend/src/services/elevenlabs.ts:209
↓ 1 callers
Method
getNativeVoicesForLanguage
* Get native voices for a specific language from cache or API
backend/src/services/elevenlabs.ts:100
↓ 1 callers
Function
getProgressColor
(point: number)
frontend/src/components/ProgressIndicator.tsx:19
↓ 1 callers
Function
getProgressEmoji
(point: number)
frontend/src/components/ProgressIndicator.tsx:35
↓ 1 callers
Function
getProgressLabel
(point: number)
frontend/src/components/ProgressIndicator.tsx:27
↓ 1 callers
Function
getStatusConfig
()
frontend/src/pages/VoiceChat.tsx:55
↓ 1 callers
Function
getStatusConfig
(status: VoiceAgentStatus)
frontend/src/agents/voice-agent/component.tsx:41
↓ 1 callers
Function
getUserId
()
frontend/src/services/api.ts:5
↓ 1 callers
Function
handleBaseLanguageChange
(value: string)
frontend/src/pages/Settings.tsx:220
↓ 1 callers
Function
handleContextSelect
(context: string)
frontend/src/pages/GetNewWords.tsx:136
↓ 1 callers
Function
handleDeleteWord
(wordId: string)
frontend/src/pages/ListDetail.tsx:142
↓ 1 callers
Function
handleFillBlankChange
(value: string)
frontend/src/components/questions/FillBlankQuestion.tsx:31
↓ 1 callers
Function
handleMatchingChange
(word: string, definition: string)
frontend/src/components/questions/MatchingQuestion.tsx:82
↓ 1 callers
Function
handleSendMessage
()
frontend/src/agents/voice-agent/component.tsx:181
↓ 1 callers
Function
handleStartConversation
()
frontend/src/agents/voice-agent/component.tsx:164
↓ 1 callers
Function
handleSubmit
()
frontend/src/components/CreateListModal.tsx:43
↓ 1 callers
Function
handleSubmit
()
frontend/src/components/AddWordModal.tsx:39
↓ 1 callers
Function
handleTargetLanguageChange
(value: string)
frontend/src/pages/Settings.tsx:225
↓ 1 callers
Function
handleToggle
(type: keyof ExerciseTypePreferences)
frontend/src/pages/Settings.tsx:242
↓ 1 callers
Function
handleViewTemplate
(template: Template)
frontend/src/pages/TemplateLibrary.tsx:136
↓ 1 callers
Function
initLearn
()
frontend/src/pages/Learn.tsx:68
↓ 1 callers
Function
initQuiz
()
frontend/src/pages/Quiz.tsx:73
↓ 1 callers
Function
initialize
()
frontend/src/pages/WordLearningSession.tsx:90
↓ 1 callers
Method
interrupt
()
frontend/src/agents/voice-agent/index.ts:186
↓ 1 callers
Function
isCorrectAnswer
(userAnswer: string, question: Exercise | Question)
frontend/src/utils/answerValidation.ts:61
↓ 1 callers
Function
loadMoreQuestions
()
frontend/src/pages/Quiz.tsx:140
↓ 1 callers
Function
loadPreferences
()
frontend/src/pages/Settings.tsx:94
next →
1–100 of 213, ranked by callers