Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ functions
Functions
8,675 in github.com/colbymchenry/codegraph
⨍
Functions
8,675
◇
Types & classes
1,640
↳
Endpoints
1
↓ 1,242 callers
Method
join
(prefix: string, seg: string)
src/extraction/tree-sitter.ts:3885
↓ 1,225 callers
Method
push
(msg: string)
__tests__/fixtures/kernel-parity/torture.tsx:220
↓ 1,181 callers
Method
map
The repository at module granularity, layered.
ui/src/lib/adapter.ts:224
↓ 672 callers
Method
has
(key: K)
src/resolution/lru-cache.ts:42
↓ 661 callers
Method
get
(...params: any[])
src/db/sqlite-adapter.ts:17
↓ 431 callers
Function
describe
(item: string)
__tests__/fixtures/kernel-parity/torture.tsx:235
↓ 420 callers
Method
set
(key: K, value: V)
src/resolution/lru-cache.ts:46
↓ 390 callers
Method
exec
(sql: string)
src/db/sqlite-adapter.ts:30
↓ 317 callers
Method
add
(x: string)
__tests__/fixtures/kernel-parity/torture.tsx:229
↓ 299 callers
Method
close
()
__tests__/fixtures/starved-cluster-ts/src/pipeline/types.ts:26
↓ 274 callers
Method
getNodesInFile
Get all nodes in a file
src/resolution/types.ts:92
↓ 267 callers
Method
text
()
__tests__/fixtures/ambient-decls-ts/types/platform-shims.d.ts:28
↓ 229 callers
Method
readFile
Read file content
src/resolution/types.ts:117
↓ 226 callers
Method
init
(raw: String)
__tests__/fixtures/kernel-parity/torture.swift:31
↓ 214 callers
Method
prepare
(sql: string)
src/db/sqlite-adapter.ts:29
↓ 203 callers
Method
parse
(frame: string)
__tests__/ui-events-api.test.ts:129
↓ 191 callers
Method
indexAll
* Index all files in the project * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:512
↓ 191 callers
Method
unwrap
__tests__/fixtures/kernel-parity/torture.cpp:69
↓ 177 callers
Method
getNodesByName
Get all nodes by name
src/resolution/types.ts:100
↓ 172 callers
Method
getNode
* Get a node by ID
src/index.ts:1514
↓ 166 callers
Method
all
(...params: any[])
src/db/sqlite-adapter.ts:18
↓ 155 callers
Function
getNodeText
(node: SyntaxNode, source: string)
src/extraction/tree-sitter-helpers.ts:52
↓ 140 callers
Method
getNodesByKind
Get all nodes of a kind
src/resolution/types.ts:104
↓ 130 callers
Method
initSync
* Initialize synchronously (without indexing)
src/index.ts:345
↓ 126 callers
Function
getChildByField
(node: SyntaxNode, fieldName: string)
src/extraction/tree-sitter-helpers.ts:59
↓ 122 callers
Method
set
(&mut self, pair: u16, value: bool)
codegraph-kernel/src/buffers.rs:190
↓ 119 callers
Function
edge_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:133
↓ 111 callers
Method
delete
(key: string | string[])
__tests__/fixtures/ambient-decls-ts/types/platform-shims.d.ts:15
↓ 105 callers
Method
get
(key: string)
__tests__/fixtures/ambient-decls-ts/src/lib/bucket.ts:13
↓ 97 callers
Method
destroy
* Alias for close() for backwards compatibility. * @deprecated Use close() instead
src/index.ts:2368
↓ 96 callers
Method
getOutgoingEdgesFrom
* Outgoing edges for many source nodes at once — the batch form of * {@link getOutgoingEdges}. See {@link QueryBuilder.getOutgoingEdgesFrom}.
src/index.ts:1549
↓ 96 callers
Method
write
(frame: Uint8Array, timeoutMs: number)
__tests__/fixtures/starved-cluster-ts/src/pipeline/types.ts:24
↓ 93 callers
Method
put
( key: string, value: ReadableStream<Uint8Array>, options?: { httpMetadata?: { contentType?: strin
__tests__/fixtures/ambient-decls-ts/src/lib/bucket.ts:8
↓ 92 callers
Method
execute
* Execute a tool by name. * * `sessionState` is the CALLER's per-session explore history (CG-17). The * daemon shares one ToolHandler across
src/mcp/tools.ts:2757
↓ 91 callers
Method
resolve
Resolve a reference using framework-specific patterns
src/resolution/types.ts:260
↓ 90 callers
Method
getFileLines
* `readFile(filePath)` split into lines, LRU-cached per file. Receiver-type * inference scans source lines for EVERY `receiver.method()` ref; split
src/resolution/types.ts:128
↓ 89 callers
Method
from
(n: u32)
__tests__/fixtures/kernel-parity/torture.rs:172
↓ 85 callers
Method
error
(message: string, context?: Record<string, unknown>)
src/errors.ts:187
↓ 81 callers
Function
preceding_docstring
getPrecedingDocstring — collect the comment run immediately preceding the node (climbing out of declaration wrappers first), cleaned and joined. Retur
codegraph-kernel/src/docstring.rs:133
↓ 79 callers
Function
resolve
(p: string)
src/directory.ts:256
↓ 78 callers
Method
getOutgoingEdges
* Get outgoing edges from a node
src/index.ts:2000
↓ 77 callers
Method
getAllFiles
Get all files
src/resolution/types.ts:143
↓ 77 callers
Method
resolve
(location: string, original: URLRequest)
__tests__/fixtures/dense-header-ts/src/core/types.ts:31
↓ 70 callers
Function
stripCommentsForRegex
(content: string, lang: CommentLang)
src/resolution/strip-comments.ts:87
↓ 67 callers
Function
initGrammars
()
src/extraction/grammars.ts:305
↓ 65 callers
Method
exit
(code: number)
__tests__/parse-pool.test.ts:274
↓ 64 callers
Method
collect
(w: &Walker<'t>, n: Node<'t>, prefix: &str, paths: &mut Vec<(String, Node<'t>)>)
codegraph-kernel/src/rustlang.rs:786
↓ 60 callers
Function
extractFromSource
( filePath: string, source: string, language?: Language, frameworkNames?: string[] )
src/extraction/tree-sitter.ts:7543
↓ 60 callers
Method
getNodeById
* Look up a node by its id. Lets matchers derive the FROM-symbol's * enclosing-class scope (Swift implicit-self method scoping, `this.X` * membe
src/resolution/types.ts:162
↓ 60 callers
Method
walk
(dir: string, linked: boolean)
src/sync/watcher.ts:492
↓ 59 callers
Method
len
(&self)
codegraph-kernel/src/buffers.rs:176
↓ 52 callers
Method
run
(...params: any[])
src/db/sqlite-adapter.ts:16
↓ 49 callers
Method
next
(&mut self)
__tests__/fixtures/kernel-parity/torture.rs:152
↓ 46 callers
Method
searchNodes
(query: string, options?: { limit?: number })
src/graph/symbol-lookup.ts:120
↓ 44 callers
Method
close
()
src/ui-server/api/index.ts:146
↓ 44 callers
Function
col16
Column (UTF-16 units) of `byte_pos` on line `row`, given `line_starts`.
codegraph-kernel/src/textutil.rs:99
↓ 44 callers
Method
on
(event: string, handler: (chunk: unknown) => void)
__tests__/fixtures/tail-render-ts/src/lib/socket.ts:3
↓ 38 callers
Method
on
(event: 'message', cb: (m: unknown) => void)
src/mcp/query-pool.ts:43
↓ 35 callers
Method
getImportMappings
Get cached import mappings for a file
src/resolution/types.ts:164
↓ 35 callers
Function
loadAllGrammars
()
src/extraction/grammars.ts:501
↓ 34 callers
Method
getOutgoingEdges
* Get outgoing edges from a node. Preserve the source/kind index order * (calls before imports/references), then break ties deterministically.
src/db/queries.ts:2155
↓ 33 callers
Method
push_edge
(&mut self, r: &EdgeRow)
codegraph-kernel/src/buffers.rs:299
↓ 33 callers
Method
sync
* Sync with current file state (incremental update). * Throws LockUnavailableError if the cross-process write lock is unavailable. * * Uses a
src/index.ts:825
↓ 32 callers
Method
getCallees
* Get callees of a function/method * * @param nodeId - ID of the function/method node * @param maxDepth - Maximum depth to traverse (default:
src/index.ts:2158
↓ 31 callers
Method
fileExists
Check if a file exists
src/resolution/types.ts:115
↓ 31 callers
Function
loadGrammarsForLanguages
(languages: Language[], wasmBytes?: Record<string, Uint8Array>)
src/extraction/grammars.ts:467
↓ 31 callers
Method
push_node
(&mut self, r: &NodeRow)
codegraph-kernel/src/buffers.rs:275
↓ 30 callers
Function
node_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:129
↓ 30 callers
Function
resolve
(caller: { filePath: string; language: Language })
src/ui-server/api/when.ts:154
↓ 29 callers
Method
getDb
* Get the underlying database instance
src/db/index.ts:484
↓ 29 callers
Function
take
(items: readonly T[])
ui/src/lib/search-model.ts:265
↓ 28 callers
Method
createNode
* Create a Node object
src/extraction/tree-sitter.ts:1511
↓ 28 callers
Function
getCodeGraphDir
(projectRoot: string)
src/directory.ts:120
↓ 28 callers
Method
getNodesByIds
* Batch lookup: fetch many nodes by ID in a single SQL round-trip. * * Replaces the N+1 pattern in graph traversal where every edge would * t
src/db/queries.ts:925
↓ 28 callers
Method
getProjectRoot
Get project root
src/resolution/types.ts:141
↓ 28 callers
Function
supportsBranchGuards
(language: Language | string | undefined | null)
src/graph/branch-guards.ts:77
↓ 27 callers
Method
createNode
Create a node and add it to the extraction result
src/extraction/tree-sitter-types.ts:52
↓ 27 callers
Function
is_generated_file
isGeneratedFile (src/extraction/generated-detection.ts) — full pattern list ported so future language walkers share it.
codegraph-kernel/src/textutil.rs:43
↓ 27 callers
Method
openSync
* Open synchronously (without sync)
src/index.ts:457
↓ 27 callers
Function
tryKernelExtract
( filePath: string, source: string, language: Language )
src/extraction/kernel/index.ts:285
↓ 26 callers
Method
getCallers
* Get callers of a function/method * * @param nodeId - ID of the function/method node * @param maxDepth - Maximum depth to traverse (default:
src/index.ts:2147
↓ 26 callers
Method
getNodesByQualifiedName
Get all nodes by qualified name
src/resolution/types.ts:102
↓ 25 callers
Function
isTestPath
(filePath: string)
src/search/query-utils.ts:311
↓ 25 callers
Function
join
(...parts: string[])
src/resolution/frameworks/ruby.ts:248
↓ 25 callers
Method
open
(root: string, open: () => CodeGraph)
src/mcp/tools.ts:1897
↓ 25 callers
Function
readJsonFile
(filePath: string)
src/installer/targets/shared.ts:65
↓ 25 callers
Function
resolveImportPath
( importPath: string, fromFile: string, language: Language, context: ResolutionContext )
src/resolution/import-resolver.ts:213
↓ 24 callers
Method
destroy
* Terminate all workers and answer any outstanding calls gracefully. A worker * still starting up is terminated once it has started (see * WORKE
src/mcp/query-pool.ts:369
↓ 24 callers
Function
logDebug
(message: string, context?: Record<string, unknown>)
src/errors.ts:238
↓ 23 callers
Method
resolveReferences
* Resolve unresolved references and create edges * * This method takes unresolved references from extraction and attempts * to resolve them u
src/index.ts:1408
↓ 22 callers
Method
getIncomingEdges
* Get incoming edges to a node. Kind must precede opaque source IDs: * file IDs sort before function IDs, so source-first ordering lets imports
src/db/queries.ts:2188
↓ 21 callers
Function
enclosingFn
(nodesInFile: readonly Node[], line: number)
src/resolution/synth-utils.ts:39
↓ 21 callers
Function
getGraphAdapter
()
ui/src/lib/adapter.ts:493
↓ 21 callers
Method
getIncomingEdges
* Get incoming edges to a node
src/index.ts:2007
↓ 21 callers
Method
join
(prefix: &str, seg: &str)
codegraph-kernel/src/rustlang.rs:783
↓ 21 callers
Method
openSync
(projectRoot: string)
__tests__/mcp-projectpath-lifecycle.test.ts:28
↓ 21 callers
Function
toNodeRef
(node: Node)
src/ui-server/api/wire.ts:123
↓ 20 callers
Function
matchBracket
(s: string, open: number)
src/resolution/frameworks/object-literal.ts:20
↓ 20 callers
Method
stop
()
src/mcp/transport.ts:76
↓ 19 callers
Method
getFiles
* Get all tracked files
src/index.ts:2033
next →
1–100 of 8,675, ranked by callers