Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/stackblitz/bolt.new
/ functions
Functions
200 in github.com/stackblitz/bolt.new
⨍
Functions
200
◇
Types & classes
86
↓ 40 callers
Function
classNames
(...args: ClassNamesArg[])
app/utils/classNames.ts:17
↓ 23 callers
Function
cssVar
(token: string)
app/components/workbench/terminal/theme.ts:4
↓ 13 callers
Function
createScopedLogger
(scope: string)
app/utils/logger.ts:28
↓ 10 callers
Function
log
(level: DebugLevel, scope: string | undefined, messages: any[])
app/utils/logger.ts:47
↓ 7 callers
Method
dispatch
(type: keyof Shortcuts)
app/lib/hooks/useShortcuts.ts:8
↓ 7 callers
Function
unreachable
(message: string)
app/utils/unreachable.ts:1
↓ 6 callers
Method
#updateAction
(id: string, newState: ActionStateUpdate)
app/lib/runtime/action-runner.ts:181
↓ 6 callers
Method
parse
(messageId: string, input: string)
app/lib/runtime/message-parser.ts:59
↓ 5 callers
Method
#getArtifact
(id: string)
app/lib/stores/workbench.ts:270
↓ 5 callers
Method
toggleTerminal
(value?: boolean)
app/lib/stores/terminal.ts:21
↓ 4 callers
Method
#extractAttribute
(tag: string, attributeName: string)
app/lib/runtime/message-parser.ts:266
↓ 4 callers
Function
generateAlphaPalette
* Generates an alpha palette for a given hex color. * * @param hex - The hex color code (without alpha) to generate the palette from. * @returns An
uno.config.ts:264
↓ 4 callers
Function
runTest
(input: string | string[], outputOrExpectedResult: string | ExpectedResult)
app/lib/runtime/message-parser.spec.ts:157
↓ 3 callers
Method
getFile
(filePath: string)
app/lib/stores/files.ts:65
↓ 3 callers
Function
getTerminalTheme
(overrides?: ITheme)
app/components/workbench/terminal/theme.ts:6
↓ 3 callers
Function
sendMessage
(_event: React.UIEvent, messageInput?: string)
app/components/chat/Chat.client.tsx:149
↓ 3 callers
Method
write
(data)
app/lib/runtime/action-runner.ts:141
↓ 2 callers
Function
_stripIndents
(value: string)
app/utils/stripIndent.ts:16
↓ 2 callers
Method
addAction
(data: ActionCallbackData)
app/lib/stores/workbench.ts:246
↓ 2 callers
Function
appendClass
(value: string, newClass: string | undefined)
app/utils/classNames.ts:51
↓ 2 callers
Function
debounce
(fn: (...args: Args) => void, delay = 100)
app/utils/debounce.ts:1
↓ 2 callers
Function
depthFirstTraversal
(path: string)
app/components/workbench/FileTree.tsx:369
↓ 2 callers
Function
encodeBase64
(data: string)
app/lib/crypto.ts:56
↓ 2 callers
Function
enhancePrompt
(input: string, setInput: (value: string) => void)
app/lib/hooks/usePromptEnhancer.ts:15
↓ 2 callers
Function
getDarkTheme
()
app/components/editor/codemirror/cm-theme.ts:190
↓ 2 callers
Function
getKey
(key: string)
app/lib/crypto.ts:46
↓ 2 callers
Function
getLabelStyles
(color: string, textColor: string)
app/utils/logger.ts:87
↓ 2 callers
Function
getLightTheme
()
app/components/editor/codemirror/cm-theme.ts:186
↓ 2 callers
Function
navigateChat
(nextId: string)
app/lib/persistence/useChatHistory.ts:99
↓ 2 callers
Function
newEditorState
( content: string, theme: Theme, settings: EditorSettings | undefined, onScrollRef: MutableRefObject<O
app/components/editor/codemirror/CodeMirrorEditor.tsx:269
↓ 2 callers
Method
on
(type: keyof Shortcuts, cb: VoidFunction)
app/lib/hooks/useShortcuts.ts:12
↓ 2 callers
Function
reconfigureTheme
(theme: Theme)
app/components/editor/codemirror/cm-theme.ts:17
↓ 2 callers
Method
saveFile
(filePath: string)
app/lib/stores/workbench.ts:156
↓ 2 callers
Method
setCurrentDocumentContent
(newContent: string)
app/lib/stores/workbench.ts:107
↓ 2 callers
Function
stripIndents
(arg0: string | TemplateStringsArray, ...values: any[])
app/utils/stripIndent.ts:3
↓ 1 callers
Method
#decodeFileContent
(buffer?: Uint8Array)
app/lib/stores/files.ts:186
↓ 1 callers
Method
#executeAction
(actionId: string)
app/lib/runtime/action-runner.ts:98
↓ 1 callers
Method
#init
()
app/lib/stores/files.ts:116
↓ 1 callers
Method
#init
()
app/lib/stores/previews.ts:22
↓ 1 callers
Method
#parseActionTag
(input: string, actionOpenIndex: number, actionEndIndex: number)
app/lib/runtime/message-parser.ts:241
↓ 1 callers
Method
#runFileAction
(action: ActionState)
app/lib/runtime/action-runner.ts:152
↓ 1 callers
Method
#runShellAction
(action: ActionState)
app/lib/runtime/action-runner.ts:124
↓ 1 callers
Method
abortAllActions
()
app/lib/stores/workbench.ts:213
↓ 1 callers
Method
addArtifact
({ messageId, title, id }: ArtifactCallbackData)
app/lib/stores/workbench.ts:217
↓ 1 callers
Method
attachTerminal
(terminal: ITerminal)
app/lib/stores/terminal.ts:25
↓ 1 callers
Function
binDates
(_list: ChatHistoryItem[])
app/components/sidebar/date-binning.ts:6
↓ 1 callers
Function
bufferWatchEvents
(timeInMs: number, cb: (events: T[]) => unknown)
app/utils/buffer.ts:1
↓ 1 callers
Function
buildFileList
( files: FileMap, rootFolder = '/', hideRoot: boolean, hiddenFiles: Array<string | RegExp>, )
app/components/workbench/FileTree.tsx:255
↓ 1 callers
Function
camelToDashCase
(input: string)
app/lib/runtime/message-parser.ts:283
↓ 1 callers
Function
changeBySelectedLine
( state: EditorState, cb: (from: number, to: number | undefined, changes: ChangeSpec[], line: Line) => voi
app/components/editor/codemirror/indent.ts:29
↓ 1 callers
Function
chatAction
({ context, request }: ActionFunctionArgs)
app/routes/api.chat.ts:11
↓ 1 callers
Function
chrome129IssuePlugin
()
vite.config.ts:33
↓ 1 callers
Function
closeDialog
()
app/components/sidebar/Menu.client.tsx:71
↓ 1 callers
Function
compareNodes
(a: Node, b: Node)
app/components/workbench/FileTree.tsx:403
↓ 1 callers
Function
computeFileModifications
(files: FileMap, modifiedFiles: Map<string, string>)
app/utils/diff.ts:17
↓ 1 callers
Function
convertToBuffer
* Converts a `Uint8Array` into a Node.js `Buffer` by copying the prototype. * The goal is to avoid expensive copies. It does create a new typed arra
app/lib/stores/files.ts:214
↓ 1 callers
Function
copyToClipboard
()
app/components/chat/CodeBlock.tsx:23
↓ 1 callers
Function
dateCategory
(date: Date)
app/components/sidebar/date-binning.ts:32
↓ 1 callers
Function
decodeBase64
(encoded: Uint8Array)
app/lib/crypto.ts:50
↓ 1 callers
Function
deleteById
(db: IDBDatabase, id: string)
app/lib/persistence/db.ts:95
↓ 1 callers
Function
diffFiles
(fileName: string, oldFileContent: string, newFileContent: string)
app/utils/diff.ts:61
↓ 1 callers
Function
enhancerAction
({ context, request }: ActionFunctionArgs)
app/routes/api.enhancer.ts:13
↓ 1 callers
Function
fileModificationsToHTML
(modifications: FileModifications)
app/utils/diff.ts:92
↓ 1 callers
Function
getAll
(db: IDBDatabase)
app/lib/persistence/db.ts:33
↓ 1 callers
Function
getColorForLevel
(level: DebugLevel)
app/utils/logger.ts:91
↓ 1 callers
Function
getEditorTheme
(settings: EditorSettings)
app/components/editor/codemirror/cm-theme.ts:21
↓ 1 callers
Method
getFileModifcations
()
app/lib/stores/workbench.ts:205
↓ 1 callers
Method
getFileModifications
()
app/lib/stores/files.ts:75
↓ 1 callers
Function
getIconColor
(status: ActionState['status'])
app/components/chat/Artifact.tsx:192
↓ 1 callers
Function
getIconSize
(size: IconSize)
app/components/ui/IconButton.tsx:65
↓ 1 callers
Function
getLanguage
(fileName: string)
app/components/editor/codemirror/languages.ts:97
↓ 1 callers
Function
getMessages
(db: IDBDatabase, id: string)
app/lib/persistence/db.ts:68
↓ 1 callers
Function
getMessagesById
(db: IDBDatabase, id: string)
app/lib/persistence/db.ts:84
↓ 1 callers
Function
getMessagesByUrlId
(db: IDBDatabase, id: string)
app/lib/persistence/db.ts:72
↓ 1 callers
Function
getNextId
(db: IDBDatabase)
app/lib/persistence/db.ts:106
↓ 1 callers
Function
getReadOnlyTooltip
(state: EditorState)
app/components/editor/codemirror/CodeMirrorEditor.tsx:437
↓ 1 callers
Function
getTheme
(theme: Theme, settings: EditorSettings = {})
app/components/editor/codemirror/cm-theme.ts:10
↓ 1 callers
Function
getUrlId
(db: IDBDatabase, id: string)
app/lib/persistence/db.ts:121
↓ 1 callers
Function
getUrlIds
(db: IDBDatabase)
app/lib/persistence/db.ts:137
↓ 1 callers
Function
handleSegmentClick
(index: number)
app/components/workbench/FileBreadcrumb.tsx:46
↓ 1 callers
Function
initStore
()
app/lib/stores/theme.ts:15
↓ 1 callers
Function
isBinaryFile
(buffer: Uint8Array | undefined)
app/lib/stores/files.ts:200
↓ 1 callers
Function
isHiddenFile
(filePath: string, fileName: string, hiddenFiles: Array<string | RegExp>)
app/components/workbench/FileTree.tsx:321
↓ 1 callers
Function
isMobile
()
app/utils/mobile.ts:1
↓ 1 callers
Function
newShellProcess
(webcontainer: WebContainer, terminal: ITerminal)
app/utils/shell.ts:5
↓ 1 callers
Method
onTerminalResize
(cols: number, rows: number)
app/lib/stores/terminal.ts:35
↓ 1 callers
Function
openDatabase
()
app/lib/persistence/db.ts:8
↓ 1 callers
Function
parseValue
(arg: ClassNamesArg)
app/utils/classNames.ts:27
↓ 1 callers
Function
processCode
()
app/components/chat/CodeBlock.tsx:44
↓ 1 callers
Function
read
()
app/entry.server.tsx:38
↓ 1 callers
Function
rehypePlugins
(html: boolean)
app/utils/markdown.ts:79
↓ 1 callers
Function
remarkPlugins
(limitedMarkdown: boolean)
app/utils/markdown.ts:69
↓ 1 callers
Method
reset
()
app/lib/runtime/message-parser.ts:237
↓ 1 callers
Method
resetAllFileModifications
()
app/lib/stores/workbench.ts:209
↓ 1 callers
Method
resetCurrentDocument
()
app/lib/stores/workbench.ts:182
↓ 1 callers
Function
resetEnhancer
()
app/lib/hooks/usePromptEnhancer.ts:10
↓ 1 callers
Method
resetFileModifications
()
app/lib/stores/files.ts:79
↓ 1 callers
Method
runAction
(data: ActionCallbackData)
app/lib/stores/workbench.ts:258
↓ 1 callers
Function
runAnimation
()
app/components/chat/Chat.client.tsx:134
↓ 1 callers
Function
sanitizeUserMessage
(content: string)
app/components/chat/UserMessage.tsx:16
next →
1–100 of 200, ranked by callers