Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/johnlindquist/kit
/ functions
Functions
1,378 in github.com/johnlindquist/kit
⨍
Functions
1,378
◇
Types & classes
961
↓ 340 callers
Function
kenvPath
(...parts: string[])
src/core/resolvers.ts:33
↓ 275 callers
Method
log
( level: LogLevel, message: string, errorOrContext?: Error | LogContext, context?: LogContext
src/core/logger/sdk-logger.ts:147
↓ 205 callers
Function
kitPath
(...parts: string[])
src/core/resolvers.ts:28
↓ 112 callers
Function
md
(content = '', containerClasses = 'p-5 prose prose-sm')
src/core/utils.ts:1144
↓ 96 callers
Function
run
(command: string, ...commandArgs: string[])
src/core/utils.ts:507
↓ 82 callers
Method
next
()
src/editor/types/kit-editor.d.ts:1520
↓ 79 callers
Method
error
Log error (operation failed)
src/core/logger/types.ts:81
↓ 72 callers
Function
kitPath
(dir: string, file: string)
src/main/index.test.ts:1959
↓ 71 callers
Function
formatScriptlet
( focusedScriptlet: Scriptlet, inputs: string[], flag?: Flags )
src/core/scriptlets.ts:12
↓ 53 callers
Function
processConditionals
(str: string, flag?: Flags)
src/core/scriptlet.utils.ts:3
↓ 46 callers
Method
send
(message: JSONRPCMessage)
src/lib/http-sse-transport.ts:59
↓ 45 callers
Function
createMockGenerateTextResult
(overrides: Partial<GenerateTextResult<Record<string, Tool<any, any>>, string>> = {})
src/lib/ai.test.ts:76
↓ 45 callers
Function
parseMarkdownAsScriptlets
(markdown: string, filePath?: string)
src/core/scriptlets.ts:66
↓ 44 callers
Method
subscribe
(observerOrNext?: Partial<Observer<T>> | ((value: T) => void), error?: (error: any) => void, complete?: () =>
src/lib/mini-rxjs.ts:26
↓ 44 callers
Method
warn
Log warning (potential issue)
src/core/logger/types.ts:85
↓ 43 callers
Method
on
( event: "input", listener: ( e: | UiohookKeyboardEvent | UiohookMouse
src/editor/types/kit-editor.d.ts:10468
↓ 42 callers
Function
formatChoices
(choices: Choice[], className = '')
src/core/format.ts:41
↓ 36 callers
Function
groupChoices
(choices: Choice[], options = {})
src/core/group.ts:4
↓ 34 callers
Method
complete
()
src/lib/mini-rxjs.ts:88
↓ 34 callers
Function
runScript
(script: any)
src/main/index.ts:328
↓ 33 callers
Function
createRunScript
(dependencies: any)
src/main/index.test.ts:7
↓ 32 callers
Function
isFile
(file: string)
src/core/is.ts:32
↓ 31 callers
Function
notSupported
(name)
src/platform/linux.ts:3
↓ 31 callers
Function
selectScript
( message: string | PromptConfig = 'Select a script', fromCache = true, xf = (x: Script[]) => x, ignor
src/api/kit.ts:1871
↓ 29 callers
Function
home
(...pathParts: string[])
src/core/resolvers.ts:15
↓ 28 callers
Function
getMetadata
(contents: string)
src/core/utils.ts:380
↓ 26 callers
Function
notSupported
(name)
src/platform/win32.ts:175
↓ 24 callers
Function
format
src/main/calculator.ts:9
↓ 24 callers
Function
isDir
(dir: string)
src/core/is.ts:12
↓ 22 callers
Function
parseMetadataComments
( contents: string, options: ParseMetadataOptions = {} )
src/core/metadata-parser.ts:183
↓ 22 callers
Method
pipe
(...operators: Operator<any, any>[])
src/lib/mini-rxjs.ts:46
↓ 21 callers
Method
get
()
src/editor/types/kit-editor.d.ts:2008
↓ 21 callers
Method
write
Write a log entry
src/core/logger/types.ts:131
↓ 20 callers
Function
highlight
(markdown: string, containerClass = 'p-5 leading-loose', injectStyles = '')
src/core/utils.ts:1148
↓ 20 callers
Function
postprocessMetadata
( metadata: Metadata, fileContents: string )
src/core/parser.ts:38
↓ 20 callers
Function
wait
(time: number)
src/core/utils.ts:79
↓ 19 callers
Function
logToParent
(message: string)
src/workers/cache-grouped-scripts-worker.ts:14
↓ 19 callers
Function
runUserHandlerIfExists
(mainScript: string, ...args: string[])
src/cli/lib/utils.ts:199
↓ 18 callers
Method
set
(value: T)
src/editor/types/kit-editor.d.ts:2006
↓ 17 callers
Function
createDateWithOffset
(offset: { seconds?: number minutes?: number hours?: number days?: number months?: number years?:
src/utils/date.test.ts:11
↓ 17 callers
Function
outputTmpFile
(fileName: string, contents: string)
src/api/kit.ts:188
↓ 16 callers
Method
create
(subscribe: (observer: Observer<T>) => (() => void) | Subscription)
src/lib/mini-rxjs.ts:22
↓ 16 callers
Function
getScripts
(fromCache = true, ignoreKenvPattern = /^ignore$/)
src/core/db.ts:503
↓ 15 callers
Function
clearModuleCache
()
src/api/packages/onepassword.test.ts:22
↓ 15 callers
Function
db
( dataOrKeyOrPath?: DBKeyOrPath<T>, data?: DBData<T>, fromCache = true )
src/core/db.ts:76
↓ 15 callers
Function
extractPromptCalls
(code: string)
src/core/prompt-parser.test.ts:6
↓ 15 callers
Function
kitDotEnvPath
()
src/core/resolvers.ts:50
↓ 15 callers
Function
parseScript
(filePath: string)
src/core/parser.ts:167
↓ 14 callers
Function
getKenvs
(ignorePattern = /^ignore$/)
src/core/utils.ts:485
↓ 14 callers
Function
getScriptFromString
(script: string)
src/core/db.ts:409
↓ 14 callers
Function
kPath
(...pathParts: string[])
src/api/npm.ts:19
↓ 14 callers
Function
kitMockPath
(...parts)
test-sdk/config.js:25
↓ 14 callers
Function
kitMode
()
src/core/utils.ts:502
↓ 14 callers
Function
main
()
scripts/add-repomix-to-orientation.ts:100
↓ 13 callers
Method
close
()
src/types/platform.d.ts:246
↓ 13 callers
Function
parseSnippets
()
src/core/snippets.ts:16
↓ 12 callers
Function
parseMetadata
(fileContents: string)
src/core/parser.ts:133
↓ 11 callers
Function
authenticate
()
src/api/kit.ts:2148
↓ 11 callers
Function
collectValues
(observable: Observable<T>, count?: number)
src/lib/mini-rxjs.test.ts:15
↓ 11 callers
Function
getScriptsDb
(fromCache = true, ignoreKenvPattern = /^ignore$/)
src/core/db.ts:299
↓ 11 callers
Function
testOrdinals
(day: number, expected: string)
src/utils/date.test.ts:208
↓ 10 callers
Function
safeWriteEnvFile
(lines: string[], filePath?: string)
src/core/env-file-lock.ts:164
↓ 10 callers
Function
stripMetadata
(fileContents: string, exclude: string[] = [])
src/core/utils.ts:434
↓ 9 callers
Function
createMCPInstance
(options: MCPOptions = {})
src/lib/mcp.ts:156
↓ 9 callers
Function
createToolCallId
(id: string)
src/lib/ai.test.ts:22
↓ 9 callers
Function
formatFileSize
(bytes: number, decimals = 2)
src/utils/path-helpers.ts:26
↓ 9 callers
Function
isBinaryFileSync
(filePath: string)
src/utils/path-helpers.ts:306
↓ 9 callers
Function
keywordInputTransformer
(keyword: string)
src/core/utils.ts:1095
↓ 9 callers
Function
parseShebang
(script: Script | Scriptlet)
src/core/shebang.ts:13
↓ 9 callers
Function
resolveToScriptPath
(rawScript: string, cwd: string = process.cwd())
src/core/utils.ts:147
↓ 9 callers
Function
testShortcut
( t: ExecutionContext, beforeFriendly: string, afterFriendlyMac: string, afterFriendlyWindows: string, sk
src/core/shortcuts.test.ts:4
↓ 8 callers
Method
clear
Clear/truncate the log file
src/core/logger/types.ts:119
↓ 8 callers
Method
clone
(dest: string)
src/editor/types/kit-editor.d.ts:12438
↓ 8 callers
Function
createMockGenerateObjectResult
(object: T, overrides: Partial<GenerateObjectResult<T>> = {})
src/lib/ai.test.ts:131
↓ 8 callers
Function
extractArgPlaceholders
(code: string)
src/core/arg-parser.test.ts:6
↓ 8 callers
Function
fileExists
(path: string)
src/core/utils.ts:132
↓ 8 callers
Function
get
()
src/api/launch-context.ts:22
↓ 8 callers
Function
getEnvVar
(key: string, fallback = '')
src/api/kit.ts:2127
↓ 8 callers
Function
getFileType
(filePath: string)
src/utils/path-helpers.ts:378
↓ 8 callers
Function
getMainScriptPath
()
src/core/constants.ts:17
↓ 8 callers
Function
getTimestamps
(fromCache = true)
src/core/db.ts:397
↓ 8 callers
Function
safeReadEnvFile
(filePath?: string)
src/core/env-file-lock.ts:142
↓ 8 callers
Function
stripName
(name: string)
src/cli/new-from-protocol.ts:18
↓ 7 callers
Method
acquire
* Acquires a lock on the .env file
src/core/env-file-lock.ts:33
↓ 7 callers
Method
colorize
(text: string, color: string)
src/core/logger/formatters.ts:164
↓ 7 callers
Function
combinePath
(arrayOfPaths: string[])
src/core/utils.ts:85
↓ 7 callers
Function
configEnv
()
src/core/utils.ts:587
↓ 7 callers
Function
downloadMarkdown
(fileName: string)
src/cli/download-md.ts:1
↓ 7 callers
Method
formatError
* Formats an error with enhanced stack trace information
src/core/sourcemap-formatter.ts:32
↓ 7 callers
Function
getCorrelationContext
()
src/core/logger/correlation.ts:51
↓ 7 callers
Function
getKenvFromPath
(filePath: string)
src/core/utils.ts:1210
↓ 7 callers
Function
highlightJavaScript
(filePath: string, shebang = '')
src/api/kit.ts:1012
↓ 7 callers
Function
refreshScripts
()
src/core/db.ts:377
↓ 7 callers
Function
resolveModel
( modelString?: string, explicitProvider?: AIProvider )
src/lib/ai.ts:131
↓ 7 callers
Function
runScriptlet
(focusedScriptlet: Scriptlet, inputs: string[], flag?: Flags)
src/main/scriptlet.ts:75
↓ 7 callers
Function
runWorkerMessage
* Helper that creates a worker from the cache-grouped-scripts-worker, * sends it a message, and returns a promise that resolves with the first messag
src/workers/cache-grouped-scripts-worker.test.ts:35
↓ 7 callers
Function
scriptsSort
(timestamps: Stamp[])
src/core/utils.ts:679
↓ 7 callers
Function
switchMap
(project: (value: T) => Observable<R> | Promise<R>)
src/lib/mini-rxjs.ts:159
↓ 7 callers
Function
trash
( input: string | readonly string[], options: Options = { glob: true } )
src/api/packages/trash.ts:10
↓ 7 callers
Function
wordApi
(api, type, input = "")
src/main/datamuse.ts:69
next →
1–100 of 1,378, ranked by callers