Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Alphanimble/htmlstream
/ functions
Functions
189 in github.com/Alphanimble/htmlstream
⨍
Functions
189
◇
Types & classes
23
↓ 30 callers
Function
rehtml
( input: string, options?: RehtmlOptions, )
src/rehtml/index.ts:50
↓ 21 callers
Function
sanitizeHtml
( html: string, config?: Config, )
src/sanitize.ts:50
↓ 17 callers
Function
closeOpenTags
(html: string)
src/rehtml/close-tags.ts:7
↓ 14 callers
Function
assembleStreamHtml
(track: string)
src/patch-streaming-html.ts:940
↓ 14 callers
Function
patchStreamingHtml
( container: HTMLElement, displayHtml: string, trackClean: string, previousTrack: string, )
src/patch-streaming-html.ts:585
↓ 14 callers
Function
shouldShowStreamingCaret
(cleanTrack: string)
src/patch-streaming-html.ts:135
↓ 13 callers
Function
findTableStart
(html: string)
src/patch-streaming-html.ts:285
↓ 12 callers
Function
stripIncompleteTag
(html: string)
src/rehtml/strip-incomplete.ts:27
↓ 12 callers
Function
syncStreamingCaret
( container: HTMLElement, html: string, track?: string, )
src/patch-streaming-html.ts:907
↓ 9 callers
Function
resetStreamScrollFollow
(state: StreamScrollFollow)
src/hold-stream.ts:108
↓ 7 callers
Function
applyStreamingSmilPolicy
(html: string, track: string)
src/strip-smil-animations.ts:209
↓ 7 callers
Function
initTableRowCounts
(container: HTMLElement)
src/patch-streaming-html.ts:1022
↓ 7 callers
Function
lockStreamHeight
( el: HTMLElement, streaming: boolean, options?: { domUpdated?: boolean }, )
src/hold-stream.ts:30
↓ 7 callers
Function
removePartialRow
(section: HTMLTableSectionElement)
src/patch-streaming-html.ts:867
↓ 7 callers
Function
streamWithoutCrash
(html: string, chunkSize = 7)
tests/claude-edge-cases.integration.test.tsx:21
↓ 6 callers
Function
firstCompleteTableEnd
( track: string, tableStart: number, )
src/patch-streaming-html.ts:290
↓ 6 callers
Function
streamSnapshots
( full: string, chunkSize = 8, options?: RehtmlOptions, )
tests/helpers/simulate-stream.ts:15
↓ 5 callers
Function
createStreamScrollFollow
()
src/hold-stream.ts:103
↓ 5 callers
Function
easeScrollToBottom
( el: HTMLElement, factor = DEFAULT_STREAM_SCROLL_EASE, )
src/hold-stream.ts:79
↓ 5 callers
Function
initTableRowCountsFromTrack
( container: HTMLElement, track: string, )
src/patch-streaming-html.ts:995
↓ 5 callers
Function
parseStreamPartsText
(text: string)
src/stream-parts.ts:31
↓ 5 callers
Function
splitHtmlIntoBlocks
(html: string)
src/rehtml/split-blocks.ts:14
↓ 5 callers
Function
streamChunks
( full: string, chunkSize = 8, )
tests/helpers/simulate-stream.ts:5
↓ 5 callers
Function
stripSmilAnimations
(html: string)
src/strip-smil-animations.ts:13
↓ 5 callers
Function
syncStreamScrollFollow
( el: HTMLElement, state: StreamScrollFollow, thresholdPx = DEFAULT_STREAM_SCROLL_THRESHOLD, )
src/hold-stream.ts:117
↓ 4 callers
Function
configureSanitizer
(config: Config)
src/sanitize.ts:25
↓ 4 callers
Function
extractCompleteRows
(html: string)
src/patch-streaming-html.ts:280
↓ 4 callers
Function
formatRawStream
(reasoning: string, content: string)
demo/chat/App.tsx:35
↓ 4 callers
Function
getCompleteSvgRanges
(html: string)
src/freeze-stream-svgs.ts:109
↓ 4 callers
Function
parseStreamPartLine
(line: string)
src/stream-parts.ts:8
↓ 4 callers
Function
syncNestedStreamScroll
( root: HTMLElement, options?: { pin?: boolean; smooth?: boolean; factor?: number }, )
src/hold-stream.ts:184
↓ 4 callers
Function
unlockStreamHeight
(el: HTMLElement)
src/hold-stream.ts:52
↓ 3 callers
Function
applyCaretTransform
(caret: HTMLElement, x: number, y: number)
src/stream-caret.ts:69
↓ 3 callers
Function
autoCloseFragment
(fragment: string)
src/patch-streaming-html.ts:875
↓ 3 callers
Function
bindStreamScrollFollow
( el: HTMLElement, state: StreamScrollFollow, options?: { thresholdPx?: number }, )
src/hold-stream.ts:150
↓ 3 callers
Function
collapseRangeAtElementStart
(range: Range, element: Element)
src/patch-streaming-html.ts:200
↓ 3 callers
Function
collapseRangeAtTextEnd
(range: Range, text: Text)
src/patch-streaming-html.ts:195
↓ 3 callers
Function
countBodyRows
(tbody: HTMLTableSectionElement)
src/patch-streaming-html.ts:672
↓ 3 callers
Function
ensureSessionDir
()
demo/server/session-log.ts:27
↓ 3 callers
Function
findLastTextNode
Deepest last text node under `root` (matches insertAdjacentText tail).
src/patch-streaming-html.ts:180
↓ 3 callers
Function
getOpenTagStack
Unclosed element tags at end of strip-only track
src/patch-streaming-html.ts:110
↓ 3 callers
Function
getStreamingFreezePoint
(track: string)
src/freeze-stream-svgs.ts:144
↓ 3 callers
Function
giantPreBlock
(charCount = 8000)
tests/fixtures/claude-edge-cases.ts:116
↓ 3 callers
Function
insertSafeHtml
Sanitize before every incremental DOM write during streaming
src/patch-streaming-html.ts:14
↓ 3 callers
Function
markPartialRow
(rowHtml: string)
src/patch-streaming-html.ts:799
↓ 3 callers
Function
performanceBomb
(count = 120)
tests/fixtures/claude-edge-cases.ts:128
↓ 3 callers
Function
removeStreamingCarets
(container: HTMLElement)
src/patch-streaming-html.ts:903
↓ 3 callers
Function
repairSession
(session: ChatSession)
demo/chat/session.ts:41
↓ 3 callers
Function
resolveStreamCaretRange
( container: HTMLElement, cleanTrack: string, )
src/patch-streaming-html.ts:206
↓ 3 callers
Function
sanitizePatchFragment
DOMPurify strips bare tr/td — wrap in table context first
src/patch-streaming-html.ts:23
↓ 3 callers
Function
saveLocalSession
(session: ChatSession)
demo/chat/session.ts:81
↓ 3 callers
Function
shouldSkipStreamRewind
( previousClean: string, nextClean: string, )
src/hold-stream.ts:12
↓ 3 callers
Function
splitStoredStreamText
(text: string)
src/stream-parts.ts:81
↓ 3 callers
Function
splitTableStream
(tableSection: string)
src/patch-streaming-html.ts:533
↓ 3 callers
Function
stripCaret
(html: string)
src/patch-streaming-html.ts:265
↓ 3 callers
Function
stripCaret
(html: string)
src/hold-stream.ts:2
↓ 2 callers
Function
appendStreamingTextChunk
(parent: Element, text: string)
src/stream-chunk.ts:4
↓ 2 callers
Function
assembleTableSectionHtml
(tableSection: string)
src/patch-streaming-html.ts:332
↓ 2 callers
Function
cancelCaretMotion
(caret: HTMLElement)
src/stream-caret.ts:45
↓ 2 callers
Function
close
(chunk: string)
src/rehtml/index.ts:79
↓ 2 callers
Function
createSession
()
demo/chat/session.ts:48
↓ 2 callers
Function
easeScrollTop
( el: HTMLElement, targetTop: number, factor = DEFAULT_STREAM_SCROLL_EASE, )
src/hold-stream.ts:63
↓ 2 callers
Function
extractPartialRow
( section: string, completeRows: string[], )
src/patch-streaming-html.ts:548
↓ 2 callers
Function
finalizeSmilAnimations
(html: string)
src/strip-smil-animations.ts:27
↓ 2 callers
Function
findDeepOpenElement
Walk DOM to the innermost open element matching the track stack
src/patch-streaming-html.ts:152
↓ 2 callers
Function
initFloatingCaret
(caret: HTMLElement)
src/stream-caret.ts:32
↓ 2 callers
Function
measureCaretCoords
( host: HTMLElement, range: Range, fallback: Element, caret: HTMLElement, )
src/stream-caret.ts:172
↓ 2 callers
Function
mergeStringLists
( ...lists: (string[] | undefined)[] )
src/sanitize.ts:16
↓ 2 callers
Function
mockScrollEl
(scrollTop: number, scrollHeight: number, clientHeight: number)
tests/hold-stream.test.ts:118
↓ 2 callers
Function
moveCaretTo
( caret: HTMLElement, x: number, y: number, instant: boolean, )
src/stream-caret.ts:103
↓ 2 callers
Function
newMessage
( role: ChatMessage["role"], content: string, )
demo/chat/App.tsx:75
↓ 2 callers
Function
patchFirstTableStream
( container: HTMLElement, displayHtml: string, track: string, previousTrack: string, )
src/patch-streaming-html.ts:443
↓ 2 callers
Function
patchPartialRowInSection
( section: HTMLTableSectionElement, partial: string, completeRowCount: number, )
src/patch-streaming-html.ts:822
↓ 2 callers
Function
picsumFallback
(seed: string, width = 140, height = 140)
demo/chat/stream-actions.ts:32
↓ 2 callers
Function
popUntil
(stack: string[], tagName: string)
src/rehtml/close-tags.ts:75
↓ 2 callers
Function
positionStreamingCaret
( caret: HTMLElement, host: HTMLElement, anchor: Element, mode: "inside-end" | "after", )
src/stream-caret.ts:212
↓ 2 callers
Function
promoteOrAppendRows
Promote in-progress partial row to complete instead of duplicating
src/patch-streaming-html.ts:804
↓ 2 callers
Function
readStreamParts
( body: ReadableStream<Uint8Array>, onPart: (part: StreamPart) => void, signal?: AbortSignal, )
src/stream-parts.ts:107
↓ 2 callers
Function
renderFrozenTrackSlice
(slice: string, fullTrack: string)
src/freeze-stream-svgs.ts:165
↓ 2 callers
Function
renderPostTableTrack
(postTrack: string)
src/patch-streaming-html.ts:362
↓ 2 callers
Function
resetPatchState
(container: HTMLElement)
src/patch-streaming-html.ts:931
↓ 2 callers
Function
resetStreamDom
()
src/streamhtml.tsx:178
↓ 2 callers
Function
resetSvgStreamRegions
(container: HTMLElement)
src/streamhtml.tsx:90
↓ 2 callers
Function
sanitizeBlock
(block: string)
src/streamhtml.tsx:378
↓ 2 callers
Function
setStreamingCaretVisible
( caret: HTMLElement, visible: boolean, )
src/stream-caret.ts:266
↓ 2 callers
Function
shouldSnapCaret
(caret: HTMLElement)
src/stream-caret.ts:186
↓ 2 callers
Function
sliceTagSection
( tableSection: string, tag: "thead" | "tbody", )
src/patch-streaming-html.ts:483
↓ 2 callers
Function
tickStreamScrollFollow
( el: HTMLElement, state: StreamScrollFollow, options?: { thresholdPx?: number; factor?: number }, )
src/hold-stream.ts:136
↓ 1 callers
Function
acquireStreamingCaret
(container: HTMLElement)
src/stream-caret.ts:197
↓ 1 callers
Function
animateCaretFrame
(caret: HTMLElement, time: number)
src/stream-caret.ts:73
↓ 1 callers
Function
assertMonotonicStable
( snapshots: RehtmlResult[], )
tests/helpers/simulate-stream.ts:26
↓ 1 callers
Function
assistantTurns
(messages: ChatMessage[])
demo/chat/SessionSidebar.tsx:28
↓ 1 callers
Function
attachStreamActions
(root: HTMLElement | null)
demo/chat/stream-actions.ts:94
↓ 1 callers
Function
calcThroughput
(chunkSize: number, intervalMs: number)
demo/App.tsx:181
↓ 1 callers
Function
clearLocalSession
()
demo/chat/session.ts:116
↓ 1 callers
Function
countIncompleteStrips
(snapshots: RehtmlResult[])
tests/helpers/simulate-stream.ts:41
↓ 1 callers
Function
countSvgOpensBefore
(html: string, beforeIndex: number)
src/strip-smil-animations.ts:86
↓ 1 callers
Function
enhanceStreamedContent
(root: HTMLElement | null)
demo/chat/stream-actions.ts:86
↓ 1 callers
Function
ensureCaretMotion
(caret: HTMLElement)
src/stream-caret.ts:53
↓ 1 callers
Function
ensurePostTableHolder
(firstTable: HTMLTableElement)
src/patch-streaming-html.ts:371
next →
1–100 of 189, ranked by callers