MCPcopy Create free account

hub / github.com/Alphanimble/htmlstream / functions

Functions189 in github.com/Alphanimble/htmlstream

↓ 30 callersFunctionrehtml
( input: string, options?: RehtmlOptions, )
src/rehtml/index.ts:50
↓ 21 callersFunctionsanitizeHtml
( html: string, config?: Config, )
src/sanitize.ts:50
↓ 17 callersFunctioncloseOpenTags
(html: string)
src/rehtml/close-tags.ts:7
↓ 14 callersFunctionassembleStreamHtml
(track: string)
src/patch-streaming-html.ts:940
↓ 14 callersFunctionpatchStreamingHtml
( container: HTMLElement, displayHtml: string, trackClean: string, previousTrack: string, )
src/patch-streaming-html.ts:585
↓ 14 callersFunctionshouldShowStreamingCaret
(cleanTrack: string)
src/patch-streaming-html.ts:135
↓ 13 callersFunctionfindTableStart
(html: string)
src/patch-streaming-html.ts:285
↓ 12 callersFunctionstripIncompleteTag
(html: string)
src/rehtml/strip-incomplete.ts:27
↓ 12 callersFunctionsyncStreamingCaret
( container: HTMLElement, html: string, track?: string, )
src/patch-streaming-html.ts:907
↓ 9 callersFunctionresetStreamScrollFollow
(state: StreamScrollFollow)
src/hold-stream.ts:108
↓ 7 callersFunctionapplyStreamingSmilPolicy
(html: string, track: string)
src/strip-smil-animations.ts:209
↓ 7 callersFunctioninitTableRowCounts
(container: HTMLElement)
src/patch-streaming-html.ts:1022
↓ 7 callersFunctionlockStreamHeight
( el: HTMLElement, streaming: boolean, options?: { domUpdated?: boolean }, )
src/hold-stream.ts:30
↓ 7 callersFunctionremovePartialRow
(section: HTMLTableSectionElement)
src/patch-streaming-html.ts:867
↓ 7 callersFunctionstreamWithoutCrash
(html: string, chunkSize = 7)
tests/claude-edge-cases.integration.test.tsx:21
↓ 6 callersFunctionfirstCompleteTableEnd
( track: string, tableStart: number, )
src/patch-streaming-html.ts:290
↓ 6 callersFunctionstreamSnapshots
( full: string, chunkSize = 8, options?: RehtmlOptions, )
tests/helpers/simulate-stream.ts:15
↓ 5 callersFunctioncreateStreamScrollFollow
()
src/hold-stream.ts:103
↓ 5 callersFunctioneaseScrollToBottom
( el: HTMLElement, factor = DEFAULT_STREAM_SCROLL_EASE, )
src/hold-stream.ts:79
↓ 5 callersFunctioninitTableRowCountsFromTrack
( container: HTMLElement, track: string, )
src/patch-streaming-html.ts:995
↓ 5 callersFunctionparseStreamPartsText
(text: string)
src/stream-parts.ts:31
↓ 5 callersFunctionsplitHtmlIntoBlocks
(html: string)
src/rehtml/split-blocks.ts:14
↓ 5 callersFunctionstreamChunks
( full: string, chunkSize = 8, )
tests/helpers/simulate-stream.ts:5
↓ 5 callersFunctionstripSmilAnimations
(html: string)
src/strip-smil-animations.ts:13
↓ 5 callersFunctionsyncStreamScrollFollow
( el: HTMLElement, state: StreamScrollFollow, thresholdPx = DEFAULT_STREAM_SCROLL_THRESHOLD, )
src/hold-stream.ts:117
↓ 4 callersFunctionconfigureSanitizer
(config: Config)
src/sanitize.ts:25
↓ 4 callersFunctionextractCompleteRows
(html: string)
src/patch-streaming-html.ts:280
↓ 4 callersFunctionformatRawStream
(reasoning: string, content: string)
demo/chat/App.tsx:35
↓ 4 callersFunctiongetCompleteSvgRanges
(html: string)
src/freeze-stream-svgs.ts:109
↓ 4 callersFunctionparseStreamPartLine
(line: string)
src/stream-parts.ts:8
↓ 4 callersFunctionsyncNestedStreamScroll
( root: HTMLElement, options?: { pin?: boolean; smooth?: boolean; factor?: number }, )
src/hold-stream.ts:184
↓ 4 callersFunctionunlockStreamHeight
(el: HTMLElement)
src/hold-stream.ts:52
↓ 3 callersFunctionapplyCaretTransform
(caret: HTMLElement, x: number, y: number)
src/stream-caret.ts:69
↓ 3 callersFunctionautoCloseFragment
(fragment: string)
src/patch-streaming-html.ts:875
↓ 3 callersFunctionbindStreamScrollFollow
( el: HTMLElement, state: StreamScrollFollow, options?: { thresholdPx?: number }, )
src/hold-stream.ts:150
↓ 3 callersFunctioncollapseRangeAtElementStart
(range: Range, element: Element)
src/patch-streaming-html.ts:200
↓ 3 callersFunctioncollapseRangeAtTextEnd
(range: Range, text: Text)
src/patch-streaming-html.ts:195
↓ 3 callersFunctioncountBodyRows
(tbody: HTMLTableSectionElement)
src/patch-streaming-html.ts:672
↓ 3 callersFunctionensureSessionDir
()
demo/server/session-log.ts:27
↓ 3 callersFunctionfindLastTextNode
Deepest last text node under `root` (matches insertAdjacentText tail).
src/patch-streaming-html.ts:180
↓ 3 callersFunctiongetOpenTagStack
Unclosed element tags at end of strip-only track
src/patch-streaming-html.ts:110
↓ 3 callersFunctiongetStreamingFreezePoint
(track: string)
src/freeze-stream-svgs.ts:144
↓ 3 callersFunctiongiantPreBlock
(charCount = 8000)
tests/fixtures/claude-edge-cases.ts:116
↓ 3 callersFunctioninsertSafeHtml
Sanitize before every incremental DOM write during streaming
src/patch-streaming-html.ts:14
↓ 3 callersFunctionmarkPartialRow
(rowHtml: string)
src/patch-streaming-html.ts:799
↓ 3 callersFunctionperformanceBomb
(count = 120)
tests/fixtures/claude-edge-cases.ts:128
↓ 3 callersFunctionremoveStreamingCarets
(container: HTMLElement)
src/patch-streaming-html.ts:903
↓ 3 callersFunctionrepairSession
(session: ChatSession)
demo/chat/session.ts:41
↓ 3 callersFunctionresolveStreamCaretRange
( container: HTMLElement, cleanTrack: string, )
src/patch-streaming-html.ts:206
↓ 3 callersFunctionsanitizePatchFragment
DOMPurify strips bare tr/td — wrap in table context first
src/patch-streaming-html.ts:23
↓ 3 callersFunctionsaveLocalSession
(session: ChatSession)
demo/chat/session.ts:81
↓ 3 callersFunctionshouldSkipStreamRewind
( previousClean: string, nextClean: string, )
src/hold-stream.ts:12
↓ 3 callersFunctionsplitStoredStreamText
(text: string)
src/stream-parts.ts:81
↓ 3 callersFunctionsplitTableStream
(tableSection: string)
src/patch-streaming-html.ts:533
↓ 3 callersFunctionstripCaret
(html: string)
src/patch-streaming-html.ts:265
↓ 3 callersFunctionstripCaret
(html: string)
src/hold-stream.ts:2
↓ 2 callersFunctionappendStreamingTextChunk
(parent: Element, text: string)
src/stream-chunk.ts:4
↓ 2 callersFunctionassembleTableSectionHtml
(tableSection: string)
src/patch-streaming-html.ts:332
↓ 2 callersFunctioncancelCaretMotion
(caret: HTMLElement)
src/stream-caret.ts:45
↓ 2 callersFunctionclose
(chunk: string)
src/rehtml/index.ts:79
↓ 2 callersFunctioncreateSession
()
demo/chat/session.ts:48
↓ 2 callersFunctioneaseScrollTop
( el: HTMLElement, targetTop: number, factor = DEFAULT_STREAM_SCROLL_EASE, )
src/hold-stream.ts:63
↓ 2 callersFunctionextractPartialRow
( section: string, completeRows: string[], )
src/patch-streaming-html.ts:548
↓ 2 callersFunctionfinalizeSmilAnimations
(html: string)
src/strip-smil-animations.ts:27
↓ 2 callersFunctionfindDeepOpenElement
Walk DOM to the innermost open element matching the track stack
src/patch-streaming-html.ts:152
↓ 2 callersFunctioninitFloatingCaret
(caret: HTMLElement)
src/stream-caret.ts:32
↓ 2 callersFunctionmeasureCaretCoords
( host: HTMLElement, range: Range, fallback: Element, caret: HTMLElement, )
src/stream-caret.ts:172
↓ 2 callersFunctionmergeStringLists
( ...lists: (string[] | undefined)[] )
src/sanitize.ts:16
↓ 2 callersFunctionmockScrollEl
(scrollTop: number, scrollHeight: number, clientHeight: number)
tests/hold-stream.test.ts:118
↓ 2 callersFunctionmoveCaretTo
( caret: HTMLElement, x: number, y: number, instant: boolean, )
src/stream-caret.ts:103
↓ 2 callersFunctionnewMessage
( role: ChatMessage["role"], content: string, )
demo/chat/App.tsx:75
↓ 2 callersFunctionpatchFirstTableStream
( container: HTMLElement, displayHtml: string, track: string, previousTrack: string, )
src/patch-streaming-html.ts:443
↓ 2 callersFunctionpatchPartialRowInSection
( section: HTMLTableSectionElement, partial: string, completeRowCount: number, )
src/patch-streaming-html.ts:822
↓ 2 callersFunctionpicsumFallback
(seed: string, width = 140, height = 140)
demo/chat/stream-actions.ts:32
↓ 2 callersFunctionpopUntil
(stack: string[], tagName: string)
src/rehtml/close-tags.ts:75
↓ 2 callersFunctionpositionStreamingCaret
( caret: HTMLElement, host: HTMLElement, anchor: Element, mode: "inside-end" | "after", )
src/stream-caret.ts:212
↓ 2 callersFunctionpromoteOrAppendRows
Promote in-progress partial row to complete instead of duplicating
src/patch-streaming-html.ts:804
↓ 2 callersFunctionreadStreamParts
( body: ReadableStream<Uint8Array>, onPart: (part: StreamPart) => void, signal?: AbortSignal, )
src/stream-parts.ts:107
↓ 2 callersFunctionrenderFrozenTrackSlice
(slice: string, fullTrack: string)
src/freeze-stream-svgs.ts:165
↓ 2 callersFunctionrenderPostTableTrack
(postTrack: string)
src/patch-streaming-html.ts:362
↓ 2 callersFunctionresetPatchState
(container: HTMLElement)
src/patch-streaming-html.ts:931
↓ 2 callersFunctionresetStreamDom
()
src/streamhtml.tsx:178
↓ 2 callersFunctionresetSvgStreamRegions
(container: HTMLElement)
src/streamhtml.tsx:90
↓ 2 callersFunctionsanitizeBlock
(block: string)
src/streamhtml.tsx:378
↓ 2 callersFunctionsetStreamingCaretVisible
( caret: HTMLElement, visible: boolean, )
src/stream-caret.ts:266
↓ 2 callersFunctionshouldSnapCaret
(caret: HTMLElement)
src/stream-caret.ts:186
↓ 2 callersFunctionsliceTagSection
( tableSection: string, tag: "thead" | "tbody", )
src/patch-streaming-html.ts:483
↓ 2 callersFunctiontickStreamScrollFollow
( el: HTMLElement, state: StreamScrollFollow, options?: { thresholdPx?: number; factor?: number }, )
src/hold-stream.ts:136
↓ 1 callersFunctionacquireStreamingCaret
(container: HTMLElement)
src/stream-caret.ts:197
↓ 1 callersFunctionanimateCaretFrame
(caret: HTMLElement, time: number)
src/stream-caret.ts:73
↓ 1 callersFunctionassertMonotonicStable
( snapshots: RehtmlResult[], )
tests/helpers/simulate-stream.ts:26
↓ 1 callersFunctionassistantTurns
(messages: ChatMessage[])
demo/chat/SessionSidebar.tsx:28
↓ 1 callersFunctionattachStreamActions
(root: HTMLElement | null)
demo/chat/stream-actions.ts:94
↓ 1 callersFunctioncalcThroughput
(chunkSize: number, intervalMs: number)
demo/App.tsx:181
↓ 1 callersFunctionclearLocalSession
()
demo/chat/session.ts:116
↓ 1 callersFunctioncountIncompleteStrips
(snapshots: RehtmlResult[])
tests/helpers/simulate-stream.ts:41
↓ 1 callersFunctioncountSvgOpensBefore
(html: string, beforeIndex: number)
src/strip-smil-animations.ts:86
↓ 1 callersFunctionenhanceStreamedContent
(root: HTMLElement | null)
demo/chat/stream-actions.ts:86
↓ 1 callersFunctionensureCaretMotion
(caret: HTMLElement)
src/stream-caret.ts:53
↓ 1 callersFunctionensurePostTableHolder
(firstTable: HTMLTableElement)
src/patch-streaming-html.ts:371
next →1–100 of 189, ranked by callers