Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenDCAI/OpenPrism
/ functions
Functions
450 in github.com/OpenDCAI/OpenPrism
⨍
Functions
450
◇
Types & classes
25
↓ 591 callers
Function
t
(lang, key, params = {})
apps/backend/src/i18n/index.js:25
↓ 41 callers
Function
ensureDir
(dir)
apps/backend/src/utils/fsUtils.js:4
↓ 33 callers
Function
getProjectRoot
(id)
apps/backend/src/services/projectService.js:5
↓ 32 callers
Function
request
(url: string, options?: RequestInit)
apps/frontend/src/api/client.ts:97
↓ 31 callers
Function
safeJoin
(root, targetPath)
apps/backend/src/utils/pathUtils.js:3
↓ 23 callers
Function
appendLog
(setter: (val: string[] | ((prev: string[]) => string[])) => void, line: string)
apps/frontend/src/app/EditorPage.tsx:640
↓ 19 callers
Function
insertAtCursor
(text: string, opts?: { block?: boolean })
apps/frontend/src/app/EditorPage.tsx:2043
↓ 16 callers
Function
readJson
(filePath)
apps/backend/src/utils/fsUtils.js:8
↓ 15 callers
Function
writeJson
(filePath, data)
apps/backend/src/utils/fsUtils.js:13
↓ 11 callers
Function
getParentPath
(target: string)
apps/frontend/src/app/EditorPage.tsx:396
↓ 11 callers
Function
getWasmTableEntry
(funcPtr)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 11 callers
Function
leadingNulls
(value,digits)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 11 callers
Function
resolveLLMConfig
(llmConfig)
apps/backend/src/services/llmService.js:18
↓ 9 callers
Function
UTF8ToString
(ptr,maxBytesToRead)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 9 callers
Function
abort
(what)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 9 callers
Function
refreshTree
(keepActive = true)
apps/frontend/src/app/EditorPage.tsx:1577
↓ 9 callers
Function
runAgent
(payload: { task: string; prompt: string; selection: string; content: string; mode: 'direct' | 'tool
apps/frontend/src/api/client.ts:279
↓ 8 callers
Function
compareByDay
(date1,date2)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 8 callers
Function
intArrayFromString
(stringy,dontAddNull,length)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 7 callers
Function
getLangHeader
()
apps/frontend/src/api/client.ts:58
↓ 7 callers
Function
normalizeBaseURL
(endpoint)
apps/backend/src/services/llmService.js:12
↓ 6 callers
Function
UTF8ArrayToString
(heap,idx,maxBytesToRead)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 6 callers
Function
cancelInlineEdit
()
apps/frontend/src/app/EditorPage.tsx:2788
↓ 6 callers
Function
getAuthHeader
()
apps/frontend/src/api/client.ts:91
↓ 6 callers
Function
lengthBytesUTF8
(str)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 6 callers
Function
openFile
(filePath: string)
apps/frontend/src/app/EditorPage.tsx:1740
↓ 6 callers
Function
send
(event, data)
apps/backend/src/routes/projects.js:117
↓ 6 callers
Function
stripLatexComment
(text: string)
apps/frontend/src/app/EditorPage.tsx:219
↓ 5 callers
Function
callOpenAICompatible
({ messages, model, endpoint, apiKey })
apps/backend/src/services/llmService.js:26
↓ 5 callers
Function
copyDir
(src, dest)
apps/backend/src/utils/fsUtils.js:17
↓ 5 callers
Function
createBibFile
()
apps/frontend/src/app/EditorPage.tsx:2030
↓ 5 callers
Function
finish
(byteArray)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 5 callers
Function
listFilesRecursive
(root, rel = '')
apps/backend/src/utils/fsUtils.js:31
↓ 5 callers
Function
sanitizeUploadPath
(filename)
apps/backend/src/utils/pathUtils.js:11
↓ 5 callers
Function
stringToUTF8Array
(str,heap,outIdx,maxBytesToWrite)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 5 callers
Function
stripCodeFences
(text)
apps/backend/src/services/transferAgent/utils.js:13
↓ 4 callers
Function
__addDays
(date,days)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 4 callers
Function
__isLeapYear
(year)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 4 callers
Function
allocate
(slab,allocator)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 4 callers
Function
callLLM
(payload: { messages: { role: 'system' | 'user' | 'assistant'; content: string }[]; model?: string; llmC
apps/frontend/src/api/client.ts:370
↓ 4 callers
Function
callRuntimeCallbacks
(callbacks)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 4 callers
Function
chevronSvg
(open: boolean)
apps/frontend/src/app/TransferPanel.tsx:246
↓ 4 callers
Function
copySingleAsset
* Copy a single asset file from source to target project. * If target already has a file with the same name, place it under assets/source/.
apps/backend/src/services/transferAgent/nodes/copyAssets.js:22
↓ 4 callers
Function
extractBibKey
(bibtex: string)
apps/frontend/src/app/EditorPage.tsx:2156
↓ 4 callers
Function
extractJsonBlock
(text: string)
apps/frontend/src/app/EditorPage.tsx:571
↓ 4 callers
Function
fileExists
* Check if a file exists at the given absolute path.
apps/backend/src/services/transferAgent/nodes/copyAssets.js:9
↓ 4 callers
Function
getCollabToken
()
apps/frontend/src/api/client.ts:75
↓ 4 callers
Function
getFirstWeekStartDate
(janFourth)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 4 callers
Function
handleUpload
(fileList: FileList | null, basePath = '')
apps/frontend/src/app/EditorPage.tsx:2642
↓ 4 callers
Function
isTextPath
(filePath: string)
apps/frontend/src/app/EditorPage.tsx:197
↓ 4 callers
Function
readTemplateManifest
()
apps/backend/src/services/templateService.js:6
↓ 4 callers
Function
removeRunDependency
(id)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 4 callers
Function
runSpawn
(cmd, args, cwd, pushLog, env)
apps/backend/src/services/compileService.js:31
↓ 4 callers
Function
safeJsonParse
(raw: string)
apps/frontend/src/app/EditorPage.tsx:628
↓ 4 callers
Function
sendMessage
(conn, payload)
apps/backend/src/services/collab/docStore.js:34
↓ 4 callers
Function
stripLineComment
(line: string)
apps/frontend/src/app/EditorPage.tsx:480
↓ 4 callers
Function
writeFileWithSnapshot
(projectRoot, relPath, content, jobId)
apps/backend/src/services/transferAgent/utils.js:165
↓ 3 callers
Function
DEFAULT_TASKS
(t: (key: string) => string)
apps/frontend/src/app/EditorPage.tsx:92
↓ 3 callers
Function
__arraySum
(array,index)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 3 callers
Function
addRunDependency
(id)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 3 callers
Function
base64UrlEncode
(input)
apps/backend/src/services/collab/tokenService.js:6
↓ 3 callers
Function
confirmInlineEdit
()
apps/frontend/src/app/EditorPage.tsx:2736
↓ 3 callers
Method
disconnect
()
apps/frontend/src/collab/provider.ts:58
↓ 3 callers
Function
extractArxivId
(input)
apps/backend/src/services/arxivService.js:9
↓ 3 callers
Function
getLang
(req)
apps/backend/src/i18n/index.js:16
↓ 3 callers
Function
insertFigureSnippet
(filePath: string)
apps/frontend/src/app/EditorPage.tsx:2064
↓ 3 callers
Function
isTextFile
(path: string)
apps/frontend/src/app/EditorPage.tsx:377
↓ 3 callers
Function
keepRuntimeAlive
()
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 3 callers
Function
listTemplates
()
apps/frontend/src/api/client.ts:312
↓ 3 callers
Function
moveFileWithOrder
(fromPath: string, folderPath: string, beforeName?: string)
apps/frontend/src/app/EditorPage.tsx:2790
↓ 3 callers
Function
runCompile
({ projectId, mainFile, engine = 'pdflatex' })
apps/backend/src/services/compileService.js:41
↓ 3 callers
Function
sgn
(value)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 3 callers
Function
stringToUTF8
(str,outPtr,maxBytesToWrite)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 3 callers
Function
verifyToken
(token)
apps/backend/src/services/collab/tokenService.js:29
↓ 2 callers
Function
RIGHT_VIEW_OPTIONS
(t: (key: string) => string)
apps/frontend/src/app/EditorPage.tsx:101
↓ 2 callers
Function
allocateUTF8
(str)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 2 callers
Function
allocateUTF8OnStack
(str)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 2 callers
Function
applyPending
(change?: PendingChange)
apps/frontend/src/app/EditorPage.tsx:3573
↓ 2 callers
Function
beginInlineCreate
(kind: 'new-file' | 'new-folder')
apps/frontend/src/app/EditorPage.tsx:2691
↓ 2 callers
Function
broadcast
(doc, payload, origin)
apps/backend/src/services/collab/docStore.js:39
↓ 2 callers
Function
buildArxivBibtex
(entry)
apps/backend/src/services/arxivService.js:47
↓ 2 callers
Function
buildLlmConfig
()
apps/frontend/src/app/TransferPanel.tsx:149
↓ 2 callers
Function
buildSplitDiff
(original: string, proposed: string)
apps/frontend/src/app/EditorPage.tsx:851
↓ 2 callers
Function
computeEnvDepths
(doc: { lines: number; line: (n: number) => { text: string } })
apps/frontend/src/app/EditorPage.tsx:761
↓ 2 callers
Function
countRegex
(text: string, re: RegExp)
apps/frontend/src/app/EditorPage.tsx:278
↓ 2 callers
Function
countUnescapedToken
(text: string, token: string)
apps/frontend/src/app/EditorPage.tsx:288
↓ 2 callers
Function
createProject
(payload: { name: string; template?: string })
apps/frontend/src/api/client.ts:121
↓ 2 callers
Function
discardPending
(change?: PendingChange)
apps/frontend/src/app/EditorPage.tsx:3594
↓ 2 callers
Function
doCallback
(errCode)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 2 callers
Function
doRun
()
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 2 callers
Function
exit
(status,implicit)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 2 callers
Function
extractJSON
(text)
apps/backend/src/services/transferAgent/utils.js:25
↓ 2 callers
Function
extractZone
(date)
apps/frontend/public/latex/swiftlatexpdftex.js:1
↓ 2 callers
Function
fetchArxivEntry
(arxivId)
apps/backend/src/services/arxivService.js:19
↓ 2 callers
Function
findDisplayMathFold
( state: EditorState, startLineNumber: number, lineEnd: number, startToken: string, endToken: string
apps/frontend/src/app/EditorPage.tsx:322
↓ 2 callers
Function
findNearestHeading
(text: string, cursorPos: number)
apps/frontend/src/app/EditorPage.tsx:531
↓ 2 callers
Function
findTokenFold
( state: EditorState, startLineNumber: number, lineEnd: number, startRe: RegExp, endRe: RegExp )
apps/frontend/src/app/EditorPage.tsx:299
↓ 2 callers
Function
findTreeNode
(root: TreeNode, targetPath: string)
apps/frontend/src/app/EditorPage.tsx:467
↓ 2 callers
Function
flushDoc
(doc)
apps/backend/src/services/collab/docStore.js:46
↓ 2 callers
Function
getBinary
(file)
apps/frontend/public/latex/swiftlatexpdftex.js:1
next →
1–100 of 450, ranked by callers