Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenHikmah/openhikmah-web
/ functions
Functions
625 in github.com/OpenHikmah/openhikmah-web
⨍
Functions
625
◇
Types & classes
95
↓ 2 callers
Function
dismiss
()
components/canvas/CanvasTour.tsx:50
↓ 2 callers
Function
embedBatch
(texts: string[])
lib/ai.ts:90
↓ 2 callers
Function
embedViaRest
(texts: string[])
lib/ai.ts:56
↓ 2 callers
Function
embeddingModel
()
lib/ai.ts:96
↓ 2 callers
Function
embeddingModelName
()
lib/ai.ts:52
↓ 2 callers
Function
estCost
(tokens: number)
app/api/admin/ai/route.ts:68
↓ 2 callers
Function
fetchEdition
(edition)
scripts/seed-quran.mjs:22
↓ 2 callers
Function
fetchVerseData
(ref: string)
app/api/names/[slug]/verses/route.ts:23
↓ 2 callers
Function
generateUsername
()
app/api/auth/exchange/route.ts:7
↓ 2 callers
Function
get
(_t, prop)
__tests__/api/admin/users.test.ts:16
↓ 2 callers
Function
get
(_t, prop)
__tests__/api/admin/names.test.ts:15
↓ 2 callers
Function
getCuratedVerseOfDayEntry
( date: Date = new Date() )
lib/verse-of-day.ts:197
↓ 2 callers
Function
goToMonth
(next: string)
app/admin/votd/page.tsx:44
↓ 2 callers
Function
hydrate
(rows: Array<{ ref: string; similarity: number }>)
lib/semantic-search.ts:72
↓ 2 callers
Function
indexByRef
(surahs)
scripts/seed-quran.mjs:30
↓ 2 callers
Function
invalidateTokenCache
(token: string)
lib/social-auth.ts:68
↓ 2 callers
Function
isActive
(href: string)
components/layout/NavBar.tsx:23
↓ 2 callers
Function
isRealDay
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 callers
Function
isUniqueViolation
(err: unknown)
lib/http.ts:59
↓ 2 callers
Function
jwks
()
__tests__/lib/social-auth.test.ts:32
↓ 2 callers
Function
keywordSearch
Keyword search via the quran.com full-text API. Returns [] on any failure.
app/api/search/route.ts:10
↓ 2 callers
Function
makeGetReq
()
__tests__/api/social/friends.test.ts:78
↓ 2 callers
Function
makeGetReq
(token = "valid-token")
__tests__/api/social/activity.test.ts:127
↓ 2 callers
Function
makeReq
(bearerToken?: string)
__tests__/api/auth-signout.test.ts:12
↓ 2 callers
Function
makeUser
(qfId: string)
__tests__/lib/admin-auth.test.ts:10
↓ 2 callers
Function
makeUser
(overrides: Partial<User> = {})
__tests__/api/social/users.test.ts:36
↓ 2 callers
Function
match
(ref: string)
__tests__/api/verse-similar.test.ts:15
↓ 2 callers
Function
nearest
( queryVec: number[], limit: number, excludeRef?: string )
lib/semantic-search.ts:57
↓ 2 callers
Function
nextId
()
store/canvas.ts:111
↓ 2 callers
Function
overlaps
Axis-aligned overlap test between two top-left anchored boxes, with a gap margin.
lib/canvas-layout.ts:40
↓ 2 callers
Function
parseRawConnections
(text: string)
lib/connection-generator.ts:68
↓ 2 callers
Function
patch
(id: number, action: "accept" | "decline")
components/social/FriendList.tsx:29
↓ 2 callers
Function
redisDel
(key: string)
lib/redis.ts:93
↓ 2 callers
Function
remove
(id: number)
components/social/FriendList.tsx:54
↓ 2 callers
Function
reset
()
components/admin/ChallengeSuggestionsManager.tsx:41
↓ 2 callers
Function
resolveQfIdFromUserinfo
* 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 callers
Function
rollback
()
store/auth.ts:51
↓ 2 callers
Function
rowToVerse
* 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 callers
Function
semanticCandidates
(ref: string, limit = 10)
lib/semantic-search.ts:106
↓ 2 callers
Function
semanticMatch
(ref: string, translation: string)
__tests__/api/search.test.ts:26
↓ 2 callers
Function
setDisabled
(id: number, disabled: boolean)
app/admin/users/page.tsx:34
↓ 2 callers
Function
stripTags
* 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 callers
Function
sweepRateLimits
(olderThanSeconds: number)
lib/rate-limit.ts:63
↓ 2 callers
Function
todayUTC
()
lib/streak.ts:9
↓ 2 callers
Function
transResp
(text = "A noble verse.")
__tests__/api/names.test.ts:71
↓ 2 callers
Function
translationResponse
(text = "In the name of Allah, the Most Gracious, the Most Merciful.")
__tests__/api/verse.test.ts:16
↓ 2 callers
Function
unauthed
()
__tests__/api/notes.test.ts:59
↓ 2 callers
Function
uptimeSeconds
()
lib/metrics.ts:24
↓ 2 callers
Function
validate
Validates an incoming suggestion payload; returns an error string or null.
app/api/admin/challenge-suggestions/route.ts:11
↓ 2 callers
Function
verifiedJwtSub
* 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 callers
Function
votdDateKey
(date: Date = new Date())
lib/verse-of-day.ts:187
↓ 1 callers
Function
Image
()
app/opengraph-image.tsx:10
↓ 1 callers
Function
adminIds
Parsed allowlist, memoised per distinct env value (cheap, handles hot reload).
lib/admin-auth.ts:20
↓ 1 callers
Function
buildPrompt
( fromRef: string, arabicText: string, translation: string, kind: EdgeKind )
lib/connection-generator.ts:38
↓ 1 callers
Function
buildPrompt
(transliteration: string, arabic: string, meaning: string)
app/api/names/[slug]/pairings/route.ts:16
↓ 1 callers
Function
buildPrompt
( arabic: string, transliteration: string, meaning: string, description: string )
app/api/names/[slug]/reflection/route.ts:9
↓ 1 callers
Function
buildReasons
( refs: string[], transliteration: string, meaning: string )
app/api/names/[slug]/verses/route.ts:75
↓ 1 callers
Function
buildSelectionPrompt
( fromRef: string, arabicText: string, translation: string, kind: EdgeKind, candidates: Verse[] )
lib/connection-generator.ts:132
↓ 1 callers
Function
callClaude
(prompt: string)
lib/ai.ts:17
↓ 1 callers
Function
callGemini
(prompt: string)
lib/ai.ts:31
↓ 1 callers
Function
callTokenEndpoint
(refreshToken: string)
app/api/auth/refresh/route.ts:37
↓ 1 callers
Function
clearJwksCache
()
lib/social-auth.ts:90
↓ 1 callers
Function
cookieOptions
(maxAge: number)
app/api/auth/refresh/route.ts:5
↓ 1 callers
Function
cost
(c: number | null)
app/admin/ai/page.tsx:22
↓ 1 callers
Function
daySeed
(date: Date)
lib/verse-of-day.ts:174
↓ 1 callers
Function
decodeEntities
(s: string)
lib/tafsir.ts:22
↓ 1 callers
Method
del
(...a: unknown[])
__tests__/lib/redis.test.ts:28
↓ 1 callers
Function
edgePath
A horizontal-ease cubic bezier between two scene-% points.
components/home/CanvasPreview.tsx:113
↓ 1 callers
Function
edit
(s: Suggestion)
components/admin/ChallengeSuggestionsManager.tsx:63
↓ 1 callers
Function
edit
(f: Flag)
app/admin/flags/page.tsx:47
↓ 1 callers
Function
embedBatch
(texts)
scripts/embed-corpus.mjs:45
↓ 1 callers
Function
embedQueryCached
(query: string)
lib/semantic-search.ts:20
↓ 1 callers
Function
existingRefs
(refs: string[])
lib/quran-corpus.ts:57
↓ 1 callers
Function
fallbackAIVerses
( arabic: string, transliteration: string, meaning: string, description: string )
app/api/names/[slug]/verses/route.ts:108
↓ 1 callers
Function
fetchJwks
()
lib/social-auth.ts:125
↓ 1 callers
Function
fetchVerseLive
(ref: string)
lib/verse-resolver.ts:23
↓ 1 callers
Function
generateAndPersist
( slug: string, kind: NameContentKind, version: number, generate: () => Promise<T>, isEmpty: (value:
lib/name-content.ts:76
↓ 1 callers
Function
generateAndPersist
* The cache-miss body: discover candidates, generate connections, persist them. * Prefers grounded discovery (data discovers, AI articulates); falls
lib/graph-service.ts:127
↓ 1 callers
Function
getAudio
()
store/audio.ts:33
↓ 1 callers
Function
getAudioUrl
(surah: number, ayah: number)
lib/audio.ts:25
↓ 1 callers
Function
getGlobalAyahNumber
(surah: number, ayah: number)
lib/audio.ts:19
↓ 1 callers
Function
getPairings
(slug: string)
app/api/names/[slug]/pairings/route.ts:35
↓ 1 callers
Function
getReflection
(slug: string)
app/api/names/[slug]/reflection/route.ts:33
↓ 1 callers
Function
getVerseOfDayWithReflection
( date: Date = new Date() )
lib/verse-of-day.ts:236
↓ 1 callers
Function
getVersesBySlug
(slug: string)
app/api/names/[slug]/verses/route.ts:140
↓ 1 callers
Function
handleDelete
(id: number)
app/workspaces/page.tsx:75
↓ 1 callers
Function
handleLoad
(id: number)
app/workspaces/page.tsx:57
↓ 1 callers
Function
htmlToTafsirBlocks
(html: string)
lib/tafsir.ts:47
↓ 1 callers
Function
hydrate
Hydrate stored edges (which carry only refs + reason) into full results.
lib/graph-service.ts:39
↓ 1 callers
Function
invalidate
(r: Row)
app/admin/names/page.tsx:50
↓ 1 callers
Function
isActive
(pathname: string, href: string)
components/admin/AdminShell.tsx:43
↓ 1 callers
Function
isDuration
(d: string | null | undefined)
components/social/CreateChallengeForm.tsx:35
↓ 1 callers
Function
isValidNode
(node: unknown)
lib/share-canvas.ts:8
↓ 1 callers
Function
jwksUrls
Candidate JWKS URLs. `QF_JWKS_URL` overrides; otherwise derive from the auth base.
lib/social-auth.ts:117
↓ 1 callers
Function
load
()
components/layout/Header.tsx:89
↓ 1 callers
Function
loadConcordance
()
components/morphology/InteractiveArabic.tsx:75
↓ 1 callers
Function
loginAsDevUser
(page: Page)
e2e/fixtures/auth.ts:3
↓ 1 callers
Function
makeDbChain
(resolveWith: unknown[] = [])
__tests__/lib/semantic-search-cache.test.ts:4
↓ 1 callers
Function
makeDbChain
(resolveWith: unknown[] = [])
__tests__/api/names.test.ts:12
↓ 1 callers
Function
makeRecordingChain
(resolveWith: unknown, calls: Record<string, unknown[][]>)
__tests__/api/bookmarks.test.ts:37
← previous
next →
201–300 of 625, ranked by callers