Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/andylow92/file-system-like-github
/ functions
Functions
473 in github.com/andylow92/file-system-like-github
⨍
Functions
473
◇
Types & classes
179
↓ 2 callers
Function
round4
Round a tuned threshold to 4dp so repeated nudges stay stable.
packages/shared/src/proposalStats.ts:144
↓ 2 callers
Function
runFeedbackScan
(deps: { vaultIndex: VaultIndex; proposalStore: ProposalStore; eventBus: EventBus; pathResolver: PathR
apps/api/src/routes/files.ts:1680
↓ 2 callers
Function
runMaintenanceScan
(deps: { vaultIndex: VaultIndex; proposalStore: ProposalStore; eventBus: EventBus; pathResolver: PathR
apps/api/src/routes/files.ts:1526
↓ 2 callers
Function
saveCurrentFile
()
apps/web/src/App.tsx:255
↓ 2 callers
Function
segment
* Break body text into comparable segments: one per line, each further split on * sentence punctuation, normalized to single-spaced and trimmed.
packages/shared/src/feedback.ts:231
↓ 2 callers
Method
setData
(type: string, val: string)
apps/web/src/components/__tests__/GlobalLayout.test.tsx:163
↓ 2 callers
Function
showConfirmModal
(config: { title: string; description: string; confirmLabel: string; cancelLabel: string;
apps/web/src/App.tsx:120
↓ 2 callers
Function
stripCode
* Remove fenced (``` ```) and inline (`` ` ``) code so tags/links inside code * are not extracted as real tags/links.
packages/shared/src/markdown.ts:128
↓ 2 callers
Function
submitCurrentMode
()
apps/web/src/components/GlobalLayout.tsx:660
↓ 2 callers
Function
toEtag
(content: string, lastModified: string)
apps/api/src/routes/files.ts:254
↓ 2 callers
Function
visibleLines
Body lines outside fenced code blocks, so a leading fence can't become a * skill's name or description.
packages/shared/src/skills.ts:35
↓ 2 callers
Function
withMd
Ensure a logical path carries a `.md` extension.
packages/shared/src/feedback.ts:167
↓ 2 callers
Function
write
(proposal: EditProposal)
apps/api/src/storage/proposalStore.ts:52
↓ 1 callers
Function
actorClass
(actor: string)
apps/web/src/components/ActivityPanel.tsx:27
↓ 1 callers
Function
api
( method: string, pathname: string, options: { body?: unknown } = {}, )
apps/api/src/routes/feedback.test.ts:25
↓ 1 callers
Function
api
( method: string, pathname: string, options: { body?: unknown } = {}, )
apps/api/src/routes/schema.test.ts:20
↓ 1 callers
Function
appendCrossLink
Append a `> See also [[label]]` cross-link, keeping one trailing newline.
packages/shared/src/maintenance.ts:143
↓ 1 callers
Function
appendLesson
Append a lesson to an existing playbook, keeping one trailing newline.
packages/shared/src/feedback.ts:426
↓ 1 callers
Function
applyProposal
Apply an approved proposal to the vault, recording it as the proposer's edit.
apps/api/src/routes/files.ts:1306
↓ 1 callers
Function
basename
(path: string)
apps/web/src/components/SearchDialog.tsx:22
↓ 1 callers
Function
buildNoteVector
* Build a normalized TF-IDF vector for a note's tokens — the same weighting the * semantic engine (`semantic.ts`) uses per chunk, applied here at not
packages/shared/src/maintenance.ts:153
↓ 1 callers
Function
buildServer
(context: AppContext)
apps/mcp/src/server.ts:765
↓ 1 callers
Function
checkNode
()
scripts/doctor.mjs:24
↓ 1 callers
Function
checkVault
()
scripts/doctor.mjs:35
↓ 1 callers
Method
close
()
apps/api/src/events/watcher.ts:21
↓ 1 callers
Function
closeMobileSidebar
()
apps/web/src/components/GlobalLayout.tsx:548
↓ 1 callers
Function
collectDirectoryPaths
(nodes: FileNode[])
apps/web/src/components/FileTreeSidebar.tsx:10
↓ 1 callers
Function
computeAdjacency
(graph: GraphData)
apps/web/src/components/graphLayout.ts:142
↓ 1 callers
Function
computeGraphLayout
( graph: GraphData, options: LayoutOptions = {}, )
apps/web/src/components/graphLayout.ts:35
↓ 1 callers
Function
confirmDelete
()
apps/web/src/components/GlobalLayout.tsx:734
↓ 1 callers
Function
connect
()
apps/web/src/hooks/useVaultEvents.ts:87
↓ 1 callers
Function
cosine
(a: Map<string, number>, b: Map<string, number>)
packages/shared/src/semantic.ts:200
↓ 1 callers
Function
cosine
Cosine of two normalized vectors = their dot product (iterate the smaller).
packages/shared/src/maintenance.ts:175
↓ 1 callers
Function
countWords
(text: string)
apps/web/src/components/RichTextEditorPane.tsx:40
↓ 1 callers
Function
createApiClient
(context: AppContext)
apps/mcp/src/server.ts:73
↓ 1 callers
Function
createDirectory
(path: string)
apps/web/src/api/files.ts:214
↓ 1 callers
Function
createFile
(path: string, content = '')
apps/web/src/api/files.ts:207
↓ 1 callers
Function
createIdempotencyCache
(capacity = DEFAULT_CAPACITY)
apps/api/src/storage/idempotencyCache.ts:17
↓ 1 callers
Function
createRouteDependencies
(rootPath: string)
apps/api/src/routes/files.test.ts:24
↓ 1 callers
Function
createVaultWatcher
(options: { contentRoot: string; eventBus: EventBus; debounceMs?: number; })
apps/api/src/events/watcher.ts:73
↓ 1 callers
Function
dedupeKey
* Stable, collision-proof de-dupe key for a passage. JSON-encoding the * path/heading/text triple keeps the key plain text (no magic separator byte)
packages/shared/src/context.ts:73
↓ 1 callers
Function
defaultTargetFor
(channel: FeedbackChannel)
packages/shared/src/feedback.ts:172
↓ 1 callers
Function
deletePath
(path: string, recursive = false)
apps/web/src/api/files.ts:228
↓ 1 callers
Function
doRebuild
()
apps/api/src/index/vaultIndex.ts:101
↓ 1 callers
Function
edgePath
A gentle quadratic arc between two points — softer than a straight line.
apps/web/src/components/KnowledgeGraph.tsx:47
↓ 1 callers
Function
ensureContentRoot
(contentRoot: string)
apps/api/src/config.ts:34
↓ 1 callers
Method
ensureInsideRoot
(absolutePath: string)
apps/api/src/storage/pathResolver.ts:17
↓ 1 callers
Function
estimateCandidateTokens
Approximate the tokens a candidate contributes (its heading counts too).
packages/shared/src/context.ts:61
↓ 1 callers
Function
excerptOf
A whitespace-collapsed, length-capped excerpt of a passage.
packages/shared/src/think.ts:86
↓ 1 callers
Function
extractBlockAnchorsFromNote
(raw: string)
packages/shared/src/blocks.ts:249
↓ 1 callers
Function
fetchAudit
( params: { path?: string; limit?: number } = {}, )
apps/web/src/api/files.ts:148
↓ 1 callers
Function
fetchBacklinks
(path: string)
apps/web/src/api/files.ts:85
↓ 1 callers
Function
fetchGraph
()
apps/web/src/api/files.ts:92
↓ 1 callers
Function
fetchTree
(path = '')
apps/web/src/api/files.ts:73
↓ 1 callers
Function
findHeadings
Find ATX headings in body order, skipping fenced (``` / ~~~) code blocks.
packages/shared/src/feedback.ts:283
↓ 1 callers
Function
firstBodyLine
First non-empty body line of a note (heading marker stripped) — a fallback * display snippet for hits that have no exact match line and no semantic c
apps/api/src/routes/files.ts:900
↓ 1 callers
Function
firstHeading
(body: string)
packages/shared/src/skills.ts:50
↓ 1 callers
Function
firstParagraphLine
(body: string)
packages/shared/src/skills.ts:60
↓ 1 callers
Function
fixMarkdownFormat
(params: { apiKey: string; model: string; markdown: string; signal?: AbortSignal; })
apps/web/src/openrouter/client.ts:32
↓ 1 callers
Function
flattenFiles
(nodes: FileNode[])
apps/mcp/src/server.ts:97
↓ 1 callers
Function
flattenMarkdownPaths
(nodes: TreeNode[])
apps/api/src/index/vaultIndex.ts:43
↓ 1 callers
Function
flattenTree
(nodes: FileNode[], depth = 1)
apps/web/src/components/GlobalLayout.tsx:158
↓ 1 callers
Function
formatLesson
(pairing: FeedbackPairing, diff: FeedbackDiff)
packages/shared/src/feedback.ts:385
↓ 1 callers
Function
formatTimestamp
(ts: string)
apps/web/src/components/ActivityPanel.tsx:19
↓ 1 callers
Function
generateBlockId
Generate a short, URL-safe, ASCII block id.
packages/shared/src/blocks.ts:199
↓ 1 callers
Method
get
(key: string)
apps/api/src/storage/idempotencyCache.ts:11
↓ 1 callers
Method
getRootPath
()
apps/api/src/storage/pathResolver.ts:13
↓ 1 callers
Function
handleEventStream
( req: http.IncomingMessage, res: http.ServerResponse, eventBus: EventBus, )
apps/api/src/events/sse.ts:15
↓ 1 callers
Function
handleItemDragLeave
(event: DragEvent<HTMLElement>, node: FileNode)
apps/web/src/components/GlobalLayout.tsx:420
↓ 1 callers
Function
handleItemDragStart
(event: DragEvent<HTMLElement>, nodePath: string)
apps/web/src/components/GlobalLayout.tsx:370
↓ 1 callers
Function
handleItemDrop
(event: DragEvent<HTMLElement>, node: FileNode)
apps/web/src/components/GlobalLayout.tsx:429
↓ 1 callers
Function
handleOpenFileChangedOnDisk
(path: string)
apps/web/src/App.tsx:282
↓ 1 callers
Function
handleScan
()
apps/web/src/components/MaintenancePanel.tsx:38
↓ 1 callers
Function
handleSelectFile
(nextPath: string)
apps/web/src/App.tsx:215
↓ 1 callers
Function
handleTopSave
()
apps/web/src/components/GlobalLayout.tsx:806
↓ 1 callers
Function
hybridSearch
(params: { query: string; limit?: number; })
apps/web/src/api/files.ts:133
↓ 1 callers
Function
idf
(term: string)
packages/shared/src/semantic.ts:273
↓ 1 callers
Function
idf
(term: string)
packages/shared/src/maintenance.ts:289
↓ 1 callers
Function
installMatchMedia
* Install a controllable `prefers-color-scheme` media query (jsdom has none). * Returns a `setDark` that flips the value and notifies listeners, so a
apps/web/src/components/__tests__/MarkdownPreviewPane.mermaid.test.tsx:24
↓ 1 callers
Function
installShutdownHandlers
(context: AppContext)
apps/mcp/src/server.ts:794
↓ 1 callers
Function
isIgnoredRelativePath
(relativePath: string)
apps/api/src/events/watcher.ts:32
↓ 1 callers
Function
listener
()
apps/api/src/server.ts:141
↓ 1 callers
Function
load
()
apps/web/src/components/GraphView.tsx:30
↓ 1 callers
Function
loadMermaid
()
apps/web/src/components/MermaidDiagram.tsx:13
↓ 1 callers
Function
loadOpenRouterApiKey
()
apps/web/src/openrouter/storage.ts:15
↓ 1 callers
Function
loadOpenRouterModel
()
apps/web/src/openrouter/storage.ts:35
↓ 1 callers
Function
loadSynthesisConfig
()
apps/api/src/think/synthesize.ts:30
↓ 1 callers
Function
main
()
apps/mcp/src/server.ts:805
↓ 1 callers
Function
maybeSeedWelcome
Drop a friendly note in the vault on its very first launch so it isn't empty.
apps/mcp/src/server.ts:163
↓ 1 callers
Method
moveMarkdownFile
(fromLogicalPath: string, toLogicalPath: string)
apps/api/src/storage/fileRepository.ts:23
↓ 1 callers
Function
newPlaybook
A fresh per-channel playbook, seeded with its first lesson (a `type: skill` note).
packages/shared/src/feedback.ts:406
↓ 1 callers
Function
nodeToText
(children: ReactNode)
apps/web/src/components/MarkdownPreviewPane.tsx:25
↓ 1 callers
Function
nodeType
* A note's declared frontmatter `type:`, normalized to lowercase, or undefined. * Read here (rather than via the schema module) so the graph stays a
packages/shared/src/graph.ts:158
↓ 1 callers
Method
normalizeLogicalPath
(logicalPath: string)
apps/api/src/storage/pathResolver.ts:16
↓ 1 callers
Function
parsePatchOp
(raw: unknown)
apps/api/src/routes/files.ts:572
↓ 1 callers
Function
proposal
(overrides: Partial<EditProposal>)
apps/web/src/components/__tests__/MaintenancePanel.test.tsx:13
↓ 1 callers
Function
pruneClaims
Drop de-dupe claims older than the window so the map can't grow unbounded.
apps/api/src/events/watcher.ts:94
↓ 1 callers
Function
publishFeedbackProposal
Broadcast a `proposal_created` event for a feedback-loop-filed proposal.
apps/api/src/routes/files.ts:1650
↓ 1 callers
Function
publishMaintenanceProposal
Broadcast a `proposal_created` event for a maintenance-filed proposal.
apps/api/src/routes/files.ts:1449
↓ 1 callers
Function
radiusFor
(node: GraphNode)
apps/web/src/components/KnowledgeGraph.tsx:139
← previous
next →
201–300 of 473, ranked by callers