Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ functions
Functions
7,909 in github.com/colbymchenry/codegraph
⨍
Functions
7,909
◇
Types & classes
1,602
↳
Endpoints
1
↓ 1,076 callers
Method
push
(msg: string)
__tests__/fixtures/kernel-parity/torture.tsx:220
↓ 991 callers
Method
join
(prefix: string, seg: string)
src/extraction/tree-sitter.ts:3834
↓ 944 callers
Method
map
The repository at module granularity, layered.
ui/src/lib/adapter.ts:224
↓ 535 callers
Method
get
(...params: any[])
src/db/sqlite-adapter.ts:17
↓ 531 callers
Method
has
(key: K)
src/resolution/lru-cache.ts:42
↓ 315 callers
Method
set
(key: K, value: V)
src/resolution/lru-cache.ts:46
↓ 292 callers
Function
describe
(item: string)
__tests__/fixtures/kernel-parity/torture.tsx:235
↓ 266 callers
Method
text
()
__tests__/fixtures/ambient-decls-ts/types/platform-shims.d.ts:28
↓ 255 callers
Method
exec
(sql: string)
src/db/sqlite-adapter.ts:30
↓ 249 callers
Method
add
(x: string)
__tests__/fixtures/kernel-parity/torture.tsx:229
↓ 206 callers
Method
prepare
(sql: string)
src/db/sqlite-adapter.ts:29
↓ 193 callers
Method
parse
(frame: string)
__tests__/ui-events-api.test.ts:129
↓ 190 callers
Method
unwrap
__tests__/fixtures/kernel-parity/torture.cpp:69
↓ 186 callers
Method
indexAll
* Index all files in the project * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:512
↓ 165 callers
Method
close
()
__tests__/fixtures/starved-cluster-ts/src/pipeline/types.ts:26
↓ 157 callers
Method
all
(...params: any[])
src/db/sqlite-adapter.ts:18
↓ 154 callers
Function
getNodeText
(node: SyntaxNode, source: string)
src/extraction/tree-sitter-helpers.ts:52
↓ 128 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
↓ 124 callers
Method
getNodesByName
Get all nodes by name
src/resolution/types.ts:100
↓ 118 callers
Function
edge_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:133
↓ 118 callers
Method
set
(&mut self, pair: u16, value: bool)
codegraph-kernel/src/buffers.rs:190
↓ 110 callers
Method
getNodesInFile
Get all nodes in a file
src/resolution/types.ts:92
↓ 101 callers
Method
readFile
Read file content
src/resolution/types.ts:117
↓ 100 callers
Method
get
(key: string)
__tests__/fixtures/ambient-decls-ts/src/lib/bucket.ts:13
↓ 97 callers
Method
delete
(key: string | string[])
__tests__/fixtures/ambient-decls-ts/types/platform-shims.d.ts:15
↓ 94 callers
Method
destroy
* Alias for close() for backwards compatibility. * @deprecated Use close() instead
src/index.ts:2360
↓ 93 callers
Method
getNodesByKind
Get all nodes of a kind
src/resolution/types.ts:104
↓ 93 callers
Method
put
( key: string, value: ReadableStream<Uint8Array>, options?: { httpMetadata?: { contentType?: strin
__tests__/fixtures/ambient-decls-ts/src/lib/bucket.ts:8
↓ 91 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:2645
↓ 90 callers
Method
init
(raw: String)
__tests__/fixtures/kernel-parity/torture.swift:31
↓ 89 callers
Method
write
(frame: Uint8Array, timeoutMs: number)
__tests__/fixtures/starved-cluster-ts/src/pipeline/types.ts:24
↓ 88 callers
Method
resolve
Resolve a reference using framework-specific patterns
src/resolution/types.ts:238
↓ 85 callers
Method
error
(message: string, context?: Record<string, unknown>)
src/errors.ts:187
↓ 84 callers
Method
from
(n: u32)
__tests__/fixtures/kernel-parity/torture.rs:172
↓ 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
↓ 74 callers
Function
resolve
(p: string)
src/directory.ts:256
↓ 70 callers
Method
resolve
(location: string, original: URLRequest)
__tests__/fixtures/dense-header-ts/src/core/types.ts:31
↓ 64 callers
Method
collect
(w: &Walker<'t>, n: Node<'t>, prefix: &str, paths: &mut Vec<(String, Node<'t>)>)
codegraph-kernel/src/rustlang.rs:786
↓ 64 callers
Function
initGrammars
()
src/extraction/grammars.ts:305
↓ 61 callers
Method
getAllFiles
Get all files
src/resolution/types.ts:143
↓ 60 callers
Method
walk
(dir: string, linked: boolean)
src/sync/watcher.ts:492
↓ 59 callers
Function
extractFromSource
( filePath: string, source: string, language?: Language, frameworkNames?: string[] )
src/extraction/tree-sitter.ts:7431
↓ 59 callers
Method
len
(&self)
codegraph-kernel/src/buffers.rs:176
↓ 52 callers
Method
run
(...params: any[])
src/db/sqlite-adapter.ts:16
↓ 51 callers
Function
stripCommentsForRegex
(content: string, lang: CommentLang)
src/resolution/strip-comments.ts:87
↓ 49 callers
Method
next
(&mut self)
__tests__/fixtures/kernel-parity/torture.rs:152
↓ 48 callers
Method
getNode
* Get a node by ID
src/index.ts:1514
↓ 48 callers
Method
getOutgoingEdges
* Get outgoing edges from a node
src/index.ts:2000
↓ 47 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
↓ 45 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
↓ 39 callers
Method
on
(event: string, handler: (chunk: unknown) => void)
__tests__/fixtures/tail-render-ts/src/lib/socket.ts:3
↓ 34 callers
Method
on
(event: 'message', cb: (m: unknown) => void)
src/mcp/query-pool.ts:43
↓ 33 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:2109
↓ 33 callers
Function
loadAllGrammars
()
src/extraction/grammars.ts:499
↓ 33 callers
Method
push_edge
(&mut self, r: &EdgeRow)
codegraph-kernel/src/buffers.rs:299
↓ 31 callers
Function
join
(from: string, to: string, tail: Tail)
ui/src/lib/program-model.ts:120
↓ 31 callers
Method
push_node
(&mut self, r: &NodeRow)
codegraph-kernel/src/buffers.rs:275
↓ 30 callers
Function
loadGrammarsForLanguages
(languages: Language[], wasmBytes?: Record<string, Uint8Array>)
src/extraction/grammars.ts:465
↓ 30 callers
Function
node_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:129
↓ 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:1475
↓ 28 callers
Method
fileExists
Check if a file exists
src/resolution/types.ts:115
↓ 28 callers
Function
getCodeGraphDir
(projectRoot: string)
src/directory.ts:120
↓ 28 callers
Function
resolve
(caller: { filePath: string; language: Language })
src/ui-server/api/when.ts:147
↓ 28 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
↓ 27 callers
Method
createNode
Create a node and add it to the extraction result
src/extraction/tree-sitter-types.ts:52
↓ 27 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:905
↓ 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:282
↓ 25 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:2150
↓ 25 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:2139
↓ 25 callers
Method
getProjectRoot
Get project root
src/resolution/types.ts:141
↓ 25 callers
Method
open
(root: string, open: () => CodeGraph)
src/mcp/tools.ts:1879
↓ 25 callers
Function
readJsonFile
(filePath: string)
src/installer/targets/shared.ts:65
↓ 25 callers
Function
supportsBranchGuards
(language: Language | string | undefined | null)
src/graph/branch-guards.ts:76
↓ 24 callers
Function
logDebug
(message: string, context?: Record<string, unknown>)
src/errors.ts:238
↓ 23 callers
Method
destroy
Terminate all workers and answer any outstanding calls gracefully.
src/mcp/query-pool.ts:315
↓ 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:2142
↓ 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
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
↓ 19 callers
Method
ignores
(rel: string)
src/extraction/index.ts:839
↓ 19 callers
Method
initialize
* Initialize a new database at the given path
src/db/index.ts:103
↓ 19 callers
Method
stop
()
src/mcp/transport.ts:76
↓ 18 callers
Method
addUnresolvedReference
Add an unresolved reference
src/extraction/tree-sitter-types.ts:58
↓ 18 callers
Method
bytes
()
__tests__/fixtures/ambient-decls-ts/types/worker-configuration.d.ts:54
↓ 18 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
↓ 18 callers
Method
getIncomingEdges
* Get incoming edges to a node
src/index.ts:2007
↓ 18 callers
Function
isInitialized
(projectRoot: string)
src/directory.ts:141
↓ 18 callers
Method
popScope
Pop the last node ID from the scope stack
src/extraction/tree-sitter-types.ts:62
↓ 18 callers
Method
transaction
(fn: (...args: any[]) => T)
src/db/sqlite-adapter.ts:32
↓ 17 callers
Function
advance
codegraph-kernel/grammars/scala/scanner.c:233
next →
1–100 of 7,909, ranked by callers