Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/crafter-station/text0
/ functions
Functions
370 in github.com/crafter-station/text0
⨍
Functions
370
◇
Types & classes
78
↓ 172 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:4
↓ 21 callers
Function
getSecureSession
()
lib/auth/server.ts:14
↓ 14 callers
Function
REFERENCE_KEY
(referenceId: string)
lib/redis.ts:11
↓ 10 callers
Function
DOCUMENT_KEY
(documentId: string)
lib/redis.ts:28
↓ 9 callers
Function
handleModification
(instruction: string, itemId: string)
components/text-selection-menu.tsx:79
↓ 8 callers
Function
USER_REFERENCES_KEY
(userId: string)
lib/redis.ts:8
↓ 7 callers
Function
useStore
(selector: (state: StoreState) => T)
components/ui/file-upload.tsx:248
↓ 6 callers
Function
useFileUploadContext
(name: keyof typeof FILE_UPLOAD_ERRORS)
components/ui/file-upload.tsx:285
↓ 5 callers
Function
DOCUMENT_REFERENCES_KEY
(documentId: string)
hooks/use-selected-references.ts:5
↓ 5 callers
Function
useAsRef
(data: T)
components/ui/file-upload.tsx:43
↓ 5 callers
Function
useSidebar
()
components/ui/sidebar.tsx:47
↓ 4 callers
Function
USER_DOCUMENTS_KEY
(userId: string)
lib/redis.ts:26
↓ 4 callers
Function
add
(item: string)
components/t0-keycap.tsx:75
↓ 4 callers
Function
remove
(item: string)
components/t0-keycap.tsx:76
↓ 4 callers
Function
startTimer
(pendingFunc: () => void, wait: number)
hooks/use-debounced-callback.ts:182
↓ 4 callers
Function
useFileUploadItemContext
(name: keyof typeof FILE_UPLOAD_ERRORS)
components/ui/file-upload.tsx:864
↓ 4 callers
Function
useStoreContext
(name: keyof typeof FILE_UPLOAD_ERRORS)
components/ui/file-upload.tsx:240
↓ 3 callers
Function
DOCUMENT_REFERENCES_KEY
(documentId: string)
hooks/use-document-references.ts:5
↓ 3 callers
Function
calculateContentPosition
( elementPos: { top: number; left: number; width: number; height: number }, position: "top" | "bottom" | "le
components/tour.tsx:72
↓ 3 callers
Function
drawEmptyWaveform
( ctx: CanvasRenderingContext2D, width: number, height: number, )
app/(protected)/docs/[doc_id]/text-editor/voice-transcription.tsx:63
↓ 3 callers
Function
invokeFunc
(time: number)
hooks/use-debounced-callback.ts:172
↓ 3 callers
Function
useLazyRef
(fn: () => T)
components/ui/file-upload.tsx:51
↓ 3 callers
Function
useModel
()
hooks/use-model.ts:37
↓ 3 callers
Function
useSelectedReferences
(documentId: string)
hooks/use-selected-references.ts:8
↓ 3 callers
Function
useTour
()
components/tour.tsx:395
↓ 2 callers
Function
GITHUB_REFERENCE_KEY
(userId: string)
app/api/github/sync/route.ts:31
↓ 2 callers
Function
LINEAR_REFERENCE_KEY
(userId: string)
app/api/linear/sync.ts:17
↓ 2 callers
Function
LINEAR_REFERENCE_KEY
(userId: string)
app/api/linear/sync/route.ts:17
↓ 2 callers
Function
NOTION_REFERENCE_KEY
(userId: string)
app/api/notion/sync/route.ts:16
↓ 2 callers
Function
convertTextToSpeech
(text: string)
app/(protected)/docs/[doc_id]/text-editor/text-to-speech.tsx:53
↓ 2 callers
Function
getSecureUser
()
lib/auth/server.ts:3
↓ 2 callers
Function
getUtilityModel
()
lib/ai-model.ts:9
↓ 2 callers
Function
normalizeText
(text: string)
components/text-diff-view.tsx:23
↓ 2 callers
Function
parseCompletion
(completion: string | undefined, input: string)
app/(protected)/docs/[doc_id]/text-editor/index.tsx:733
↓ 2 callers
Function
shouldInvoke
(time: number)
hooks/use-debounced-callback.ts:189
↓ 2 callers
Function
trailingEdge
(time: number)
hooks/use-debounced-callback.ts:206
↓ 2 callers
Function
useDocumentContext
()
app/context/documentContext.tsx:118
↓ 2 callers
Function
useIsMobile
()
hooks/use-mobile.ts:5
↓ 1 callers
Function
REFERENCE_KEY
(referenceId: string)
actions/websites.ts:16
↓ 1 callers
Function
SYSTEM_PROMPT
( context: string, )
app/api/chat/route.ts:21
↓ 1 callers
Function
SYSTEM_PROMPT
( context: string, )
app/api/chat-ollama/route.ts:15
↓ 1 callers
Function
USER_REFERENCES_KEY
(userId: string)
actions/websites.ts:15
↓ 1 callers
Function
closeDeleteDialog
()
app/context/documentContext.tsx:92
↓ 1 callers
Function
createStore
( listeners: Set<() => void>, files: Map<File, FileState>, onValueChange?: (files: File[]) => void, invali
components/ui/file-upload.tsx:92
↓ 1 callers
Function
customSubmit
(e: React.FormEvent)
app/(protected)/docs/[doc_id]/text-editor/ai-chat-sidebar.tsx:95
↓ 1 callers
Function
deleteDocument
(docId: string)
actions/docs.ts:182
↓ 1 callers
Function
downloadFile
( filename: string, content: string, mimeType: string, )
lib/download.ts:1
↓ 1 callers
Function
drawMovingWaveform
()
app/(protected)/docs/[doc_id]/text-editor/voice-transcription.tsx:326
↓ 1 callers
Function
fetchDiscordData
()
app/(protected)/integrations/discord/page.tsx:42
↓ 1 callers
Function
fetchGitHubData
()
app/(protected)/integrations/github/page.tsx:57
↓ 1 callers
Function
fetchLinearData
()
app/(protected)/integrations/linear/page.tsx:53
↓ 1 callers
Function
fetchNotionData
()
app/(protected)/integrations/notion/page.tsx:109
↓ 1 callers
Function
formatBytes
(bytes: number)
components/ui/file-upload.tsx:949
↓ 1 callers
Function
formatLinearDataAsMarkdown
(data: LinearData)
app/api/linear/sync.ts:218
↓ 1 callers
Function
formatLinearDataAsMarkdown
(data: LinearData)
app/api/linear/sync/route.ts:218
↓ 1 callers
Function
formatNotificationsAsMarkdown
( notifications: GitHubNotification[], )
app/api/github/sync/route.ts:195
↓ 1 callers
Function
formatNotionDataAsMarkdown
(data: NotionData)
app/api/notion/sync/route.ts:266
↓ 1 callers
Function
getCaretCoordinates
(element: HTMLTextAreaElement, position: number)
app/(protected)/docs/[doc_id]/text-editor/index.tsx:320
↓ 1 callers
Function
getDocumentContentForExport
(docId: string)
actions/docs.ts:136
↓ 1 callers
Function
getElementPosition
(id: string)
components/tour.tsx:60
↓ 1 callers
Function
getFileIcon
(file: File)
components/ui/file-upload.tsx:956
↓ 1 callers
Function
getInitialModel
()
hooks/use-model.ts:27
↓ 1 callers
Function
getRandomInt
(max: number)
components/text-scramble.tsx:33
↓ 1 callers
Function
getReferences
(userId: string)
app/(protected)/references/page.tsx:13
↓ 1 callers
Function
handleClick
(char: string)
components/t0-keycap.tsx:155
↓ 1 callers
Function
handleDelete
()
app/context/documentContext.tsx:39
↓ 1 callers
Function
handleDisconnect
(provider: string)
app/(protected)/integrations/page.tsx:240
↓ 1 callers
Function
handleExport
(docId: string, docName: string)
app/context/documentContext.tsx:66
↓ 1 callers
Function
handleKeyDown
(e: KeyboardEvent)
components/t0-keycap.tsx:131
↓ 1 callers
Function
handleKeyUp
(e: KeyboardEvent)
components/t0-keycap.tsx:139
↓ 1 callers
Function
handleMouseDown
(char: string)
components/t0-keycap.tsx:166
↓ 1 callers
Function
handleMouseUp
(char: string)
components/t0-keycap.tsx:173
↓ 1 callers
Function
isReferenceSelected
(referenceId: string)
hooks/use-document-references.ts:52
↓ 1 callers
Function
keys
(chars: string[], spans: boolean[] = [])
components/t0-keycap.tsx:198
↓ 1 callers
Function
listener
(e: MediaQueryListEvent)
hooks/use-media-query.ts:15
↓ 1 callers
Function
onChange
()
hooks/use-mobile.ts:12
↓ 1 callers
Function
openDeleteDialog
(docId: string, docName: string)
app/context/documentContext.tsx:86
↓ 1 callers
Function
reducer
(state: StoreState, action: StoreAction)
components/ui/file-upload.tsx:106
↓ 1 callers
Function
safeGetItem
(key: string)
hooks/use-model.ts:10
↓ 1 callers
Function
safeSetItem
(key: string, value: string)
hooks/use-model.ts:19
↓ 1 callers
Function
scrollToBottom
()
app/(protected)/docs/[doc_id]/text-editor/ai-chat-sidebar.tsx:76
↓ 1 callers
Function
startRecording
()
app/(protected)/docs/[doc_id]/text-editor/voice-transcription.tsx:84
↓ 1 callers
Function
stopRecording
()
app/(protected)/docs/[doc_id]/text-editor/voice-transcription.tsx:221
↓ 1 callers
Function
textToSpeech
( text: string, voiceId = "21m00Tcm4TlvDq8ikWAM", )
app/actions/textToSpeech.ts:5
↓ 1 callers
Function
toggleFile
(id: string)
app/(protected)/components/files-grid.tsx:15
↓ 1 callers
Function
toggleReference
(referenceId: string)
hooks/use-document-references.ts:35
↓ 1 callers
Function
transcribeAudio
(audioData: ArrayBuffer)
app/actions/transcribe.ts:6
↓ 1 callers
Function
updatePosition
()
components/text-selection-menu.tsx:60
↓ 1 callers
Function
useDebouncedCallback
(func: T, wait?: number, options?: Options)
hooks/use-debounced-callback.ts:119
↓ 1 callers
Function
useDirection
(dirProp?: Direction)
components/ui/file-upload.tsx:63
↓ 1 callers
Function
useMediaQuery
(query: string)
hooks/use-media-query.ts:5
↓ 1 callers
Function
useRealtimeRunsWithTag
(tag: string)
lib/trigger-hooks.ts:18
↓ 1 callers
Function
useReferenceProcessing
(references?: Reference[])
hooks/use-reference-processing.ts:16
↓ 1 callers
Function
useReferences
()
hooks/use-references.ts:12
↓ 1 callers
Function
useSetState
(initialState: string[] = [])
components/t0-keycap.tsx:72
↓ 1 callers
Function
useSound
(url: string)
components/t0-keycap.tsx:93
Function
AIChatSidebar
({ content, isEnabled, onPendingUpdate, }: Readonly<AIChatSidebarProps>)
app/(protected)/docs/[doc_id]/text-editor/ai-chat-sidebar.tsx:32
Function
AIChatTrigger
()
app/(protected)/docs/[doc_id]/text-editor/ai-chat-trigger.tsx:12
Function
AddReference
({ children, }: Readonly<{ children?: React.ReactNode; }>)
components/add-reference.tsx:33
Function
Alert
({ variant, className, ...props }: AlertProps)
components/ui/alert.tsx:23
next →
1–100 of 370, ranked by callers