Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bhaskatripathi/Text2Diagram
/ functions
Functions
29 in github.com/bhaskatripathi/Text2Diagram
⨍
Functions
29
◇
Types & classes
12
↓ 13 callers
Function
cn
(...inputs: ClassValue[])
lib/utils.ts:14
↓ 2 callers
Function
OpenAIStream
( messages: Message[], model: string, key: string )
lib/utils.ts:25
↓ 2 callers
Function
parseCodeFromMessage
(message: string)
lib/utils.ts:91
↓ 1 callers
Function
copyToClipboard
(text: string)
components/Mermaids.tsx:39
↓ 1 callers
Function
copyToClipboard
(text: string)
components/CodeBlock.tsx:19
↓ 1 callers
Function
drawChart
(chart: string, theme: Theme | "")
components/Mermaids.tsx:82
↓ 1 callers
Function
serializeCode
(code: string)
lib/utils.ts:102
Function
APIKeyInput
()
components/APIKeyInput.tsx:19
Function
ChatInput
({ messageCotent, onChange, onSubmit, })
components/ChatInput.tsx:11
Function
ChatMessage
({ message }: ChatMessageProps)
components/ChatMessage.tsx:7
Function
CodeBlock
({ code })
components/CodeBlock.tsx:17
Function
Home
()
app/page.tsx:15
Function
MainNav
({ items }: MainNavProps)
components/MainNav.tsx:14
Function
Mermaid
({ chart }: MermaidProps)
components/Mermaids.tsx:24
Function
POST
(req: Request)
app/api/openai/route.ts:8
Function
RootLayout
({ children, }: { children: React.ReactNode; })
app/layout.tsx:22
Function
SiteHeader
()
components/SiteHeader.tsx:15
Function
chat
(req: Request)
pages/api/chat.ts:8
Function
downloadSVG
()
components/Mermaids.tsx:64
Function
handleChange
(e: ChangeEvent<HTMLInputElement>)
components/APIKeyInput.tsx:23
Function
handleCopyClick
()
components/Mermaids.tsx:48
Function
handleCopyClick
()
components/CodeBlock.tsx:28
Function
handleKeyDown
(e: KeyboardEvent<HTMLTextAreaElement>)
components/ChatInput.tsx:16
Function
handleModelChange
(value: OpenAIModel)
components/APIKeyInput.tsx:26
Function
handleSave
()
components/APIKeyInput.tsx:30
Function
handleSubmit
()
app/page.tsx:35
Function
handleThemeChange
(value: Theme)
components/Mermaids.tsx:100
Function
onParse
(event: ParsedEvent | ReconnectInterval)
lib/utils.ts:60
Function
start
(controller)
lib/utils.ts:59