Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/colbymchenry/codegraph
/ functions
Functions
5,753 in github.com/colbymchenry/codegraph
⨍
Functions
5,753
◇
Types & classes
1,206
↳
Endpoints
1
↓ 653 callers
Method
join
(prefix: string, seg: string)
src/extraction/tree-sitter.ts:3479
↓ 317 callers
Method
has
(key: K)
src/resolution/lru-cache.ts:42
↓ 294 callers
Method
get
(...params: any[])
src/db/sqlite-adapter.ts:15
↓ 250 callers
Method
text
()
__tests__/fixtures/ambient-decls-ts/types/platform-shims.d.ts:28
↓ 188 callers
Method
unwrap
__tests__/fixtures/kernel-parity/torture.cpp:67
↓ 175 callers
Method
set
(key: K, value: V)
src/resolution/lru-cache.ts:46
↓ 158 callers
Method
prepare
(sql: string)
src/db/sqlite-adapter.ts:27
↓ 153 callers
Method
exec
(sql: string)
src/db/sqlite-adapter.ts:28
↓ 143 callers
Function
getNodeText
(node: SyntaxNode, source: string)
src/extraction/tree-sitter-helpers.ts:35
↓ 117 callers
Function
edge_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:132
↓ 113 callers
Method
all
(...params: any[])
src/db/sqlite-adapter.ts:16
↓ 113 callers
Function
getChildByField
(node: SyntaxNode, fieldName: string)
src/extraction/tree-sitter-helpers.ts:42
↓ 107 callers
Method
indexAll
* Index all files in the project * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:471
↓ 93 callers
Method
put
( key: string, value: ReadableStream<Uint8Array>, options?: { httpMetadata?: { contentType?: strin
__tests__/fixtures/ambient-decls-ts/src/lib/bucket.ts:8
↓ 83 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
↓ 82 callers
Method
close
()
__tests__/fixtures/starved-cluster-ts/src/pipeline/types.ts:26
↓ 81 callers
Method
getNodesByName
Get all nodes by name
src/resolution/types.ts:72
↓ 79 callers
Method
error
(message: string, context?: Record<string, unknown>)
src/errors.ts:173
↓ 75 callers
Method
write
(frame: Uint8Array, timeoutMs: number)
__tests__/fixtures/starved-cluster-ts/src/pipeline/types.ts:24
↓ 69 callers
Method
get
(key: string)
__tests__/fixtures/ambient-decls-ts/src/lib/bucket.ts:13
↓ 68 callers
Method
resolve
Resolve a reference using framework-specific patterns
src/resolution/types.ts:204
↓ 67 callers
Method
initSync
* Initialize synchronously (without indexing)
src/index.ts:309
↓ 66 callers
Method
getNodesInFile
Get all nodes in a file
src/resolution/types.ts:70
↓ 65 callers
Method
set
(&mut self, pair: u16, value: bool)
codegraph-kernel/src/buffers.rs:189
↓ 62 callers
Method
destroy
* Alias for close() for backwards compatibility. * @deprecated Use close() instead
src/index.ts:1930
↓ 60 callers
Method
collect
(w: &Walker<'t>, n: Node<'t>, prefix: &str, paths: &mut Vec<(String, Node<'t>)>)
codegraph-kernel/src/rustlang.rs:732
↓ 60 callers
Method
readFile
Read file content
src/resolution/types.ts:89
↓ 57 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:1954
↓ 57 callers
Method
len
(&self)
codegraph-kernel/src/buffers.rs:175
↓ 56 callers
Method
init
(raw: String)
__tests__/fixtures/kernel-parity/torture.swift:31
↓ 55 callers
Method
delete
(key: string | string[])
__tests__/fixtures/ambient-decls-ts/types/platform-shims.d.ts:15
↓ 51 callers
Method
from
(n: u32)
__tests__/fixtures/kernel-parity/torture.rs:172
↓ 50 callers
Function
resolve
(p: string)
src/directory.ts:127
↓ 46 callers
Method
getAllFiles
Get all files
src/resolution/types.ts:113
↓ 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
Function
extractFromSource
( filePath: string, source: string, language?: Language, frameworkNames?: string[] )
src/extraction/tree-sitter.ts:6708
↓ 42 callers
Method
run
(...params: any[])
src/db/sqlite-adapter.ts:14
↓ 38 callers
Method
getNodesByKind
Get all nodes of a kind
src/resolution/types.ts:76
↓ 37 callers
Method
resolve
(location: string, original: URLRequest)
__tests__/fixtures/dense-header-ts/src/core/types.ts:31
↓ 36 callers
Method
next
(&mut self)
__tests__/fixtures/kernel-parity/torture.rs:152
↓ 35 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:132
↓ 35 callers
Function
initGrammars
()
src/extraction/grammars.ts:244
↓ 33 callers
Method
push_edge
(&mut self, r: &EdgeRow)
codegraph-kernel/src/buffers.rs:298
↓ 32 callers
Method
close
()
src/db/sqlite-adapter.ts:31
↓ 31 callers
Method
push_node
(&mut self, r: &NodeRow)
codegraph-kernel/src/buffers.rs:274
↓ 30 callers
Function
node_kind_index
(kind: &str)
codegraph-kernel/src/buffers.rs:128
↓ 30 callers
Function
stripCommentsForRegex
(content: string, lang: CommentLang)
src/resolution/strip-comments.ts:41
↓ 29 callers
Method
on
(event: 'message', cb: (m: unknown) => void)
src/mcp/query-pool.ts:43
↓ 27 callers
Method
createNode
Create a node and add it to the extraction result
src/extraction/tree-sitter-types.ts:52
↓ 27 callers
Method
createNode
* Create a Node object
src/extraction/tree-sitter.ts:1320
↓ 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
↓ 26 callers
Function
tryKernelExtract
( filePath: string, source: string, language: Language )
src/extraction/kernel/index.ts:282
↓ 25 callers
Method
getOutgoingEdges
* Get outgoing edges from a node
src/db/queries.ts:1822
↓ 25 callers
Function
readJsonFile
(filePath: string)
src/installer/targets/shared.ts:58
↓ 24 callers
Method
fileExists
Check if a file exists
src/resolution/types.ts:87
↓ 24 callers
Method
openSync
* Open synchronously (without sync)
src/index.ts:416
↓ 23 callers
Method
iterateNodesByKind
* Stream nodes of a kind one at a time instead of materializing (and, unlike * `getNodesByKind`, without populating the resolver's per-kind array c
src/resolution/types.ts:85
↓ 22 callers
Function
loadGrammarsForLanguages
(languages: Language[], wasmBytes?: Record<string, Uint8Array>)
src/extraction/grammars.ts:404
↓ 22 callers
Function
logDebug
(message: string, context?: Record<string, unknown>)
src/errors.ts:224
↓ 21 callers
Method
searchNodes
* Search nodes by text
src/index.ts:1371
↓ 20 callers
Function
getCodeGraphDir
(projectRoot: string)
src/directory.ts:85
↓ 20 callers
Method
getDb
* Get the underlying database instance
src/db/index.ts:414
↓ 20 callers
Method
join
(prefix: &str, seg: &str)
codegraph-kernel/src/rustlang.rs:729
↓ 19 callers
Function
generateNodeId
( filePath: string, kind: NodeKind, name: string, line: number )
src/extraction/tree-sitter-helpers.ts:18
↓ 19 callers
Method
getIncomingEdges
* Get incoming edges to a node
src/db/queries.ts:1851
↓ 18 callers
Method
addUnresolvedReference
Add an unresolved reference
src/extraction/tree-sitter-types.ts:58
↓ 18 callers
Method
getNode
* Get a node by ID
src/index.ts:1322
↓ 18 callers
Method
getOutgoingEdges
* Get outgoing edges from a node
src/index.ts:1580
↓ 18 callers
Method
ignores
(rel: string)
src/extraction/index.ts:670
↓ 18 callers
Method
on
(event: string, handler: (chunk: unknown) => void)
__tests__/fixtures/tail-render-ts/src/lib/socket.ts:3
↓ 18 callers
Function
resolve
(ref: UnresolvedRef, context: ResolutionContext)
src/resolution/frameworks/go.ts:27
↓ 17 callers
Method
getProjectRoot
Get project root
src/resolution/types.ts:111
↓ 17 callers
Method
popScope
Pop the last node ID from the scope stack
src/extraction/tree-sitter-types.ts:62
↓ 17 callers
Function
writeJsonFile
(filePath: string, data: Record<string, any>)
src/installer/targets/shared.ts:100
↓ 16 callers
Function
build_meta
(t: &Tables, arena_len: u32, errors_json: StrRef, duration_ms: f64)
codegraph-kernel/src/buffers.rs:341
↓ 16 callers
Method
bytes
()
__tests__/fixtures/ambient-decls-ts/types/worker-configuration.d.ts:54
↓ 16 callers
Function
grammar_for
(language: &str)
codegraph-kernel/src/langs.rs:44
↓ 16 callers
Method
initialize
* Initialize a new database at the given path
src/db/index.ts:96
↓ 16 callers
Function
line_starts
Byte offsets of each line start, for UTF-16 column conversion.
codegraph-kernel/src/textutil.rs:82
↓ 16 callers
Method
pushScope
Push a node ID onto the scope stack (for containment/qualified name building)
src/extraction/tree-sitter-types.ts:60
↓ 16 callers
Method
sync
* Sync with current file state (incremental update) * * Uses a mutex to prevent concurrent indexing operations.
src/index.ts:777
↓ 16 callers
Method
transaction
(fn: (...args: any[]) => T)
src/db/sqlite-adapter.ts:30
↓ 16 callers
Function
utf16_len
UTF-16 code units in `s` — what web-tree-sitter (and JS string ops) count, so kernel-emitted columns are byte-identical to the wasm path's.
codegraph-kernel/src/textutil.rs:94
↓ 15 callers
Method
create_node
createNode (tree-sitter.ts): id, qualified name from the scope stack, contains edge from the parent scope, value-ref bookkeeping.
codegraph-kernel/src/tsjs/mod.rs:324
↓ 15 callers
Function
file_node_id
(file_path: &str)
codegraph-kernel/src/ids.rs:36
↓ 15 callers
Method
into_vec
(self)
codegraph-kernel/src/buffers.rs:179
↓ 15 callers
Function
logWarn
(message: string, context?: Record<string, unknown>)
src/errors.ts:231
↓ 15 callers
Function
node_id
(file_path: &str, kind: &str, name: &str, line: u32)
codegraph-kernel/src/ids.rs:16
↓ 15 callers
Function
normalizePath
(filePath: string)
src/utils.ts:213
↓ 15 callers
Function
resetKernelForTests
()
src/extraction/kernel/loader.ts:176
↓ 15 callers
Method
warn
(message: string, context?: Record<string, unknown>)
src/errors.ts:172
↓ 14 callers
Method
advance
* The next link in the chain: the same chain with the cursor moved on and the * timeouts carried over. Cloning here is what keeps each interceptor
__tests__/fixtures/starved-cluster-ts/src/pipeline/chain.ts:75
↓ 14 callers
Function
atomicWriteFileSync
(filePath: string, content: string)
src/installer/targets/shared.ts:81
↓ 14 callers
Method
destroy
Terminate all workers and answer any outstanding calls gracefully.
src/mcp/query-pool.ts:312
↓ 14 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:1719
↓ 14 callers
Function
getGlyphs
()
src/ui/glyphs.ts:106
↓ 14 callers
Method
push_ref
(&mut self, r: &RefRow)
codegraph-kernel/src/buffers.rs:313
↓ 13 callers
Method
create_node
(&mut self, kind: &'static str, name: &str, node: Node<'t>, extra: Extra)
codegraph-kernel/src/csharp.rs:315
↓ 13 callers
Function
getPrecedingDocstring
(node: SyntaxNode, source: string)
src/extraction/tree-sitter-helpers.ts:95
↓ 13 callers
Method
getStats
* Get statistics about the knowledge graph
src/index.ts:1289
next →
1–100 of 5,753, ranked by callers