MCPcopy Create free account

hub / github.com/OpenHikmah/openhikmah-web / functions

Functions625 in github.com/OpenHikmah/openhikmah-web

↓ 2 callersFunctiondismiss
()
components/canvas/CanvasTour.tsx:50
↓ 2 callersFunctionembedBatch
(texts: string[])
lib/ai.ts:90
↓ 2 callersFunctionembedViaRest
(texts: string[])
lib/ai.ts:56
↓ 2 callersFunctionembeddingModel
()
lib/ai.ts:96
↓ 2 callersFunctionembeddingModelName
()
lib/ai.ts:52
↓ 2 callersFunctionestCost
(tokens: number)
app/api/admin/ai/route.ts:68
↓ 2 callersFunctionfetchEdition
(edition)
scripts/seed-quran.mjs:22
↓ 2 callersFunctionfetchVerseData
(ref: string)
app/api/names/[slug]/verses/route.ts:23
↓ 2 callersFunctiongenerateUsername
()
app/api/auth/exchange/route.ts:7
↓ 2 callersFunctionget
(_t, prop)
__tests__/api/admin/users.test.ts:16
↓ 2 callersFunctionget
(_t, prop)
__tests__/api/admin/names.test.ts:15
↓ 2 callersFunctiongetCuratedVerseOfDayEntry
( date: Date = new Date() )
lib/verse-of-day.ts:197
↓ 2 callersFunctiongoToMonth
(next: string)
app/admin/votd/page.tsx:44
↓ 2 callersFunctionhydrate
(rows: Array<{ ref: string; similarity: number }>)
lib/semantic-search.ts:72
↓ 2 callersFunctionindexByRef
(surahs)
scripts/seed-quran.mjs:30
↓ 2 callersFunctioninvalidateTokenCache
(token: string)
lib/social-auth.ts:68
↓ 2 callersFunctionisActive
(href: string)
components/layout/NavBar.tsx:23
↓ 2 callersFunctionisRealDay
A YYYY-MM-DD that is also a real calendar date (rejects e.g. 2026-02-31, * which would otherwise blow up at the Postgres `date` layer with a 500).
app/api/admin/votd/route.ts:15
↓ 2 callersFunctionisUniqueViolation
(err: unknown)
lib/http.ts:59
↓ 2 callersFunctionjwks
()
__tests__/lib/social-auth.test.ts:32
↓ 2 callersFunctionkeywordSearch
Keyword search via the quran.com full-text API. Returns [] on any failure.
app/api/search/route.ts:10
↓ 2 callersFunctionmakeGetReq
()
__tests__/api/social/friends.test.ts:78
↓ 2 callersFunctionmakeGetReq
(token = "valid-token")
__tests__/api/social/activity.test.ts:127
↓ 2 callersFunctionmakeReq
(bearerToken?: string)
__tests__/api/auth-signout.test.ts:12
↓ 2 callersFunctionmakeUser
(qfId: string)
__tests__/lib/admin-auth.test.ts:10
↓ 2 callersFunctionmakeUser
(overrides: Partial<User> = {})
__tests__/api/social/users.test.ts:36
↓ 2 callersFunctionmatch
(ref: string)
__tests__/api/verse-similar.test.ts:15
↓ 2 callersFunctionnearest
( queryVec: number[], limit: number, excludeRef?: string )
lib/semantic-search.ts:57
↓ 2 callersFunctionnextId
()
store/canvas.ts:111
↓ 2 callersFunctionoverlaps
Axis-aligned overlap test between two top-left anchored boxes, with a gap margin.
lib/canvas-layout.ts:40
↓ 2 callersFunctionparseRawConnections
(text: string)
lib/connection-generator.ts:68
↓ 2 callersFunctionpatch
(id: number, action: "accept" | "decline")
components/social/FriendList.tsx:29
↓ 2 callersFunctionredisDel
(key: string)
lib/redis.ts:93
↓ 2 callersFunctionremove
(id: number)
components/social/FriendList.tsx:54
↓ 2 callersFunctionreset
()
components/admin/ChallengeSuggestionsManager.tsx:41
↓ 2 callersFunctionresolveQfIdFromUserinfo
* Resolves the QF user ID by hitting the QF userinfo endpoint directly, * skipping the JWT fast path. Used as a fallback in requireUser when the * J
lib/social-auth.ts:329
↓ 2 callersFunctionrollback
()
store/auth.ts:51
↓ 2 callersFunctionrowToVerse
* Local Quran corpus — reads verse data from the `verses` table instead of * fetching alquran.cloud / quran.com on every request. Seeded once by * `
lib/quran-corpus.ts:13
↓ 2 callersFunctionsemanticCandidates
(ref: string, limit = 10)
lib/semantic-search.ts:106
↓ 2 callersFunctionsemanticMatch
(ref: string, translation: string)
__tests__/api/search.test.ts:26
↓ 2 callersFunctionsetDisabled
(id: number, disabled: boolean)
app/admin/users/page.tsx:34
↓ 2 callersFunctionstripTags
* Reduce a fragment of HTML to plain text. Decode entities first (so an * entity-encoded bracket can't survive as markup), strip tags repeatedly unti
lib/tafsir.ts:37
↓ 2 callersFunctionsweepRateLimits
(olderThanSeconds: number)
lib/rate-limit.ts:63
↓ 2 callersFunctiontodayUTC
()
lib/streak.ts:9
↓ 2 callersFunctiontransResp
(text = "A noble verse.")
__tests__/api/names.test.ts:71
↓ 2 callersFunctiontranslationResponse
(text = "In the name of Allah, the Most Gracious, the Most Merciful.")
__tests__/api/verse.test.ts:16
↓ 2 callersFunctionunauthed
()
__tests__/api/notes.test.ts:59
↓ 2 callersFunctionuptimeSeconds
()
lib/metrics.ts:24
↓ 2 callersFunctionvalidate
Validates an incoming suggestion payload; returns an error string or null.
app/api/admin/challenge-suggestions/route.ts:11
↓ 2 callersFunctionverifiedJwtSub
* Returns the `sub` of a QF access token ONLY if it is a JWT whose RS256 * signature verifies against QF's JWKS and which has not expired. Returns nu
lib/social-auth.ts:183
↓ 2 callersFunctionvotdDateKey
(date: Date = new Date())
lib/verse-of-day.ts:187
↓ 1 callersFunctionImage
()
app/opengraph-image.tsx:10
↓ 1 callersFunctionadminIds
Parsed allowlist, memoised per distinct env value (cheap, handles hot reload).
lib/admin-auth.ts:20
↓ 1 callersFunctionbuildPrompt
( fromRef: string, arabicText: string, translation: string, kind: EdgeKind )
lib/connection-generator.ts:38
↓ 1 callersFunctionbuildPrompt
(transliteration: string, arabic: string, meaning: string)
app/api/names/[slug]/pairings/route.ts:16
↓ 1 callersFunctionbuildPrompt
( arabic: string, transliteration: string, meaning: string, description: string )
app/api/names/[slug]/reflection/route.ts:9
↓ 1 callersFunctionbuildReasons
( refs: string[], transliteration: string, meaning: string )
app/api/names/[slug]/verses/route.ts:75
↓ 1 callersFunctionbuildSelectionPrompt
( fromRef: string, arabicText: string, translation: string, kind: EdgeKind, candidates: Verse[] )
lib/connection-generator.ts:132
↓ 1 callersFunctioncallClaude
(prompt: string)
lib/ai.ts:17
↓ 1 callersFunctioncallGemini
(prompt: string)
lib/ai.ts:31
↓ 1 callersFunctioncallTokenEndpoint
(refreshToken: string)
app/api/auth/refresh/route.ts:37
↓ 1 callersFunctionclearJwksCache
()
lib/social-auth.ts:90
↓ 1 callersFunctioncookieOptions
(maxAge: number)
app/api/auth/refresh/route.ts:5
↓ 1 callersFunctioncost
(c: number | null)
app/admin/ai/page.tsx:22
↓ 1 callersFunctiondaySeed
(date: Date)
lib/verse-of-day.ts:174
↓ 1 callersFunctiondecodeEntities
(s: string)
lib/tafsir.ts:22
↓ 1 callersMethoddel
(...a: unknown[])
__tests__/lib/redis.test.ts:28
↓ 1 callersFunctionedgePath
A horizontal-ease cubic bezier between two scene-% points.
components/home/CanvasPreview.tsx:113
↓ 1 callersFunctionedit
(s: Suggestion)
components/admin/ChallengeSuggestionsManager.tsx:63
↓ 1 callersFunctionedit
(f: Flag)
app/admin/flags/page.tsx:47
↓ 1 callersFunctionembedBatch
(texts)
scripts/embed-corpus.mjs:45
↓ 1 callersFunctionembedQueryCached
(query: string)
lib/semantic-search.ts:20
↓ 1 callersFunctionexistingRefs
(refs: string[])
lib/quran-corpus.ts:57
↓ 1 callersFunctionfallbackAIVerses
( arabic: string, transliteration: string, meaning: string, description: string )
app/api/names/[slug]/verses/route.ts:108
↓ 1 callersFunctionfetchJwks
()
lib/social-auth.ts:125
↓ 1 callersFunctionfetchVerseLive
(ref: string)
lib/verse-resolver.ts:23
↓ 1 callersFunctiongenerateAndPersist
( slug: string, kind: NameContentKind, version: number, generate: () => Promise<T>, isEmpty: (value:
lib/name-content.ts:76
↓ 1 callersFunctiongenerateAndPersist
* The cache-miss body: discover candidates, generate connections, persist them. * Prefers grounded discovery (data discovers, AI articulates); falls
lib/graph-service.ts:127
↓ 1 callersFunctiongetAudio
()
store/audio.ts:33
↓ 1 callersFunctiongetAudioUrl
(surah: number, ayah: number)
lib/audio.ts:25
↓ 1 callersFunctiongetGlobalAyahNumber
(surah: number, ayah: number)
lib/audio.ts:19
↓ 1 callersFunctiongetPairings
(slug: string)
app/api/names/[slug]/pairings/route.ts:35
↓ 1 callersFunctiongetReflection
(slug: string)
app/api/names/[slug]/reflection/route.ts:33
↓ 1 callersFunctiongetVerseOfDayWithReflection
( date: Date = new Date() )
lib/verse-of-day.ts:236
↓ 1 callersFunctiongetVersesBySlug
(slug: string)
app/api/names/[slug]/verses/route.ts:140
↓ 1 callersFunctionhandleDelete
(id: number)
app/workspaces/page.tsx:75
↓ 1 callersFunctionhandleLoad
(id: number)
app/workspaces/page.tsx:57
↓ 1 callersFunctionhtmlToTafsirBlocks
(html: string)
lib/tafsir.ts:47
↓ 1 callersFunctionhydrate
Hydrate stored edges (which carry only refs + reason) into full results.
lib/graph-service.ts:39
↓ 1 callersFunctioninvalidate
(r: Row)
app/admin/names/page.tsx:50
↓ 1 callersFunctionisActive
(pathname: string, href: string)
components/admin/AdminShell.tsx:43
↓ 1 callersFunctionisDuration
(d: string | null | undefined)
components/social/CreateChallengeForm.tsx:35
↓ 1 callersFunctionisValidNode
(node: unknown)
lib/share-canvas.ts:8
↓ 1 callersFunctionjwksUrls
Candidate JWKS URLs. `QF_JWKS_URL` overrides; otherwise derive from the auth base.
lib/social-auth.ts:117
↓ 1 callersFunctionload
()
components/layout/Header.tsx:89
↓ 1 callersFunctionloadConcordance
()
components/morphology/InteractiveArabic.tsx:75
↓ 1 callersFunctionloginAsDevUser
(page: Page)
e2e/fixtures/auth.ts:3
↓ 1 callersFunctionmakeDbChain
(resolveWith: unknown[] = [])
__tests__/lib/semantic-search-cache.test.ts:4
↓ 1 callersFunctionmakeDbChain
(resolveWith: unknown[] = [])
__tests__/api/names.test.ts:12
↓ 1 callersFunctionmakeRecordingChain
(resolveWith: unknown, calls: Record<string, unknown[][]>)
__tests__/api/bookmarks.test.ts:37
← previousnext →201–300 of 625, ranked by callers