Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,885 in github.com/danielmiessler/Fabric
⨍
Functions
1,885
◇
Types & classes
270
↓ 2 callers
Method
postMessage
(data: { id: number; buffer: ArrayBuffer }, transfer: Transferable[])
web/src/lib/services/PdfConversionService.test.ts:108
↓ 2 callers
Function
prepareBedrockBody
(t *testing.T, model string, topP float64)
internal/plugins/ai/azureaigateway/backend_bedrock_sampling_test.go:12
↓ 2 callers
Function
randomBase64URL
(size int)
internal/plugins/ai/codex/oauth.go:277
↓ 2 callers
Function
readLine
readLine reads a single line from stdin and accepts either \n or \r as the line ending. Terminals such as kitty on macOS send a bare \r when Enter is
internal/plugins/plugin.go:394
↓ 2 callers
Function
rejectInvalidStorageName
rejectInvalidStorageName answers a 400 when name does not obey storage-name validation. An empty name passes, because the fields that this guards are
internal/server/storage.go:44
↓ 2 callers
Function
removeVTTTags
(s string)
internal/tools/youtube/youtube.go:405
↓ 2 callers
Function
renderPromptExport
( currentFlags *Flags, registry *core.PluginRegistry, meta string, messageTools string)
internal/cli/prompt_export.go:53
↓ 2 callers
Method
request
(requestURL string)
internal/tools/jina/jina.go:45
↓ 2 callers
Method
requireSecureOrigins
requireSecureOrigins refuses plaintext http to a remote auth or API origin. The refresh token goes to the auth origin, the access token to the API ori
internal/plugins/ai/codex/codex.go:184
↓ 2 callers
Function
resolveStepInputWithOverride
resolveStepInputWithOverride returns the input for one step. A step.Input that is not blank after TrimSpace replaces carriedInput. Otherwise carriedIn
internal/cli/workflow.go:262
↓ 2 callers
Function
responseTextFromContent
(content []types.ContentBlock)
internal/plugins/ai/bedrock/bedrock.go:583
↓ 2 callers
Function
responsesSSE
responsesSSE answers a Responses API request with the given server-sent events.
internal/plugins/ai/openai/responses_stream_test.go:18
↓ 2 callers
Function
runWorkflow
runWorkflow runs the steps in order. Each output becomes the next input. It returns the last output. The caller prints it.
internal/cli/workflow.go:104
↓ 2 callers
Function
samplingOptions
samplingOptions returns the anthropic plugin's sampling options for Vertex AI. Vertex AI reads the API version from the anthropic_version body field.
internal/plugins/ai/vertexai/vertexai.go:38
↓ 2 callers
Function
sanitizeHtml
(html: string)
web/src/lib/utils/sanitize-html.ts:9
↓ 2 callers
Function
sanitizeNotificationText
sanitizeNotificationText removes double quotes, single quotes and backslashes. Thus the text cannot close a quoted string in a custom notification com
internal/cli/chat.go:203
↓ 2 callers
Function
sanitize_input_content
Sanitize input content by removing or replacing problematic characters. Args: input_text: The input text to sanitize Returns:
scripts/python_ui/streamlit.py:772
↓ 2 callers
Method
saveRegistry
()
internal/plugins/template/extension_registry.go:217
↓ 2 callers
Function
save_output_log
Save pattern execution log.
scripts/python_ui/streamlit.py:666
↓ 2 callers
Function
scanStreamJSON
scanStreamJSON reads one stream-json event per line and forwards text deltas to channel. It returns scanner.Err() so a truncated line or a broken pipe
internal/plugins/ai/claudecode/claudecode.go:93
↓ 2 callers
Function
searchResultSources
searchResultSources lists the results of the Perplexity "search_results" output items. The result IDs agree with the [n] markers in the answer text.
internal/plugins/ai/openai/openai.go:486
↓ 2 callers
Method
sendClaude
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:145
↓ 2 callers
Function
sendOnce
(t *testing.T, stream bool, model string)
internal/plugins/ai/bedrock/bedrock_sampling_test.go:52
↓ 2 callers
Method
sendResponses
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/openai/openai.go:256
↓ 2 callers
Function
sendStream
(t *testing.T, client *BedrockClient)
internal/plugins/ai/bedrock/bedrock_stream_test.go:59
↓ 2 callers
Function
sentRequest
sentRequest sends one message through Send and returns the API version header and the JSON body of each request that reached the server.
internal/plugins/ai/anthropic/anthropic_sampling_test.go:23
↓ 2 callers
Method
setupVendorTo
(vendor Vendor, configuredVendors map[string]Vendor)
internal/plugins/ai/vendors.go:166
↓ 2 callers
Function
shellEscape
shellEscape wraps s in single quotes and escapes embedded single quotes. The result is one literal argument to "sh -c".
internal/plugins/template/extension_executor.go:91
↓ 2 callers
Function
shouldIncludeRepeat
shouldIncludeRepeat reports whether at least TimeGapForRepeats seconds separate the two timestamps.
internal/tools/youtube/youtube.go:411
↓ 2 callers
Method
shouldUseImageGeneration
(opts *domain.ChatOptions)
internal/plugins/ai/openai/openai_image.go:88
↓ 2 callers
Function
sortModels
sortModels puts Gemini models first, then Claude, then the rest. Within a group, names sort alphabetically, ignoring case.
internal/plugins/ai/vertexai/models.go:132
↓ 2 callers
Function
sseEvent
(name, data string)
internal/plugins/ai/openai/responses_stream_test.go:27
↓ 2 callers
Function
stepLabel
stepLabel returns the "[step N/TOTAL pattern]" prefix. Every workflow log line and error starts with it, so one grep pattern finds them all.
internal/cli/workflow.go:41
↓ 2 callers
Function
streamClient
streamClient serves body as the ConverseStream response.
internal/plugins/ai/bedrock/bedrock_stream_test.go:42
↓ 2 callers
Function
streamResponses
(t *testing.T, handler http.HandlerFunc)
internal/plugins/ai/openai/responses_stream_test.go:31
↓ 2 callers
Method
supportsResponsesAPI
()
internal/plugins/ai/openai/openai.go:280
↓ 2 callers
Function
symlinkContained
symlinkContained rejects an entry at path if the entry resolves, through symlinks, to a target outside absDir. A missing entry passes, because the lex
internal/plugins/db/fsdb/storage.go:266
↓ 2 callers
Function
textDelta
textDelta extracts the text from one stream-json line, if it carries any.
internal/plugins/ai/claudecode/claudecode.go:234
↓ 2 callers
Method
toMessages
toMessages converts chat messages to Bedrock Converse messages. System messages get the user role, because they hold the pattern text and the user inp
internal/plugins/ai/bedrock/bedrock.go:606
↓ 2 callers
Function
tokenNeedsRefresh
(jwt string, now time.Time)
internal/plugins/ai/codex/token.go:31
↓ 2 callers
Method
tryMethodYtDlpInternal
tryMethodYtDlpInternal downloads the subtitles for videoId with yt-dlp, then applies processVTTFileFunc to the VTT file.
internal/tools/youtube/youtube.go:231
↓ 2 callers
Function
usePrefix
(t *testing.T, prefix string)
internal/tools/keenable/keenable_test.go:36
↓ 2 callers
Function
validateImageFile
validateImageFile rejects a path that exists or has an extension other than png, jpeg, jpg, or webp.
internal/cli/flags.go:332
↓ 2 callers
Function
validateImageParameters
(imagePath, size, quality, background string, compression int)
internal/cli/flags.go:351
↓ 2 callers
Function
validatePromptExportFlags
(currentFlags *Flags)
internal/cli/prompt_export.go:37
↓ 2 callers
Function
validate_input_content
Validate input content for potentially problematic characters or patterns. Args: input_text: The input text to validate Returns:
scripts/python_ui/streamlit.py:725
↓ 2 callers
Function
validate_pattern
Validate a pattern's structure and content.
scripts/python_ui/streamlit.py:916
↓ 2 callers
Function
visualCueRange
(frameTimes []float64, index int)
internal/tools/youtube/youtube.go:496
↓ 2 callers
Function
withBetas
withBetas returns reqOpts with an anthropic-beta header for betas. It does not change reqOpts.
internal/plugins/ai/anthropic/anthropic.go:363
↓ 2 callers
Function
wrapPublicError
(message string, statusCode int, providerMessage string)
internal/plugins/ai/codex/errors.go:95
↓ 2 callers
Function
writeExecutable
(t *testing.T, dir, name, contents string)
internal/tools/youtube/timestamp_test.go:128
↓ 2 callers
Function
writeOllamaResponse
writeOllamaResponse constructs an Ollama-formatted response chunk and writes it to the streaming output associated with the provided Gin context. The
internal/server/ollama.go:537
↓ 2 callers
Function
writeOllamaResponseStruct
writeOllamaResponseStruct marshals the provided OllamaResponse and writes it as newline-delimited JSON to the HTTP response stream.
internal/server/ollama.go:559
↓ 2 callers
Function
ytDlpLangArgs
ytDlpLangArgs returns the built-in --sub-langs flag for language. yt-dlp does not replace a repeated --sub-langs flag. It adds the values together. So
internal/tools/youtube/youtube.go:211
↓ 1 callers
Method
AddSetupQuestionCustomBool
(name string, required bool, question string)
internal/plugins/plugin.go:95
↓ 1 callers
Method
Apply
Apply executes the requested text operation on the provided value
internal/plugins/template/text.go:33
↓ 1 callers
Method
Apply
Apply executes fetch operations: - get:URL: Fetches content from URL, returns text content
internal/plugins/template/fetch.go:47
↓ 1 callers
Method
Apply
Apply executes datetime operations with the following formats: Time: now (RFC3339), time (HH:MM:SS), unix (timestamp) Hour: startofhour, endofhour Dat
internal/plugins/template/datetime.go:22
↓ 1 callers
Function
ApplyTemplateNoSystemPlugins
ApplyTemplateNoSystemPlugins is ApplyTemplate for a template from an untrusted client, for example a pattern that the REST API saved. It runs only the
internal/plugins/template/template.go:79
↓ 1 callers
Method
AuthHeader
AuthHeader returns the Bedrock auth header (Bearer token)
internal/plugins/ai/azureaigateway/backend_bedrock.go:56
↓ 1 callers
Method
AuthHeader
AuthHeader returns the header name and value for authentication. Each APIM backend uses a different auth header: Bedrock: "Authorization", "Beare
internal/plugins/ai/azureaigateway/azureaigateway.go:47
↓ 1 callers
Method
AuthHeader
AuthHeader returns the Vertex AI auth header (Google API key via APIM)
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:49
↓ 1 callers
Method
AuthHeader
AuthHeader returns the Azure OpenAI auth header
internal/plugins/ai/azureaigateway/backend_azure_openai.go:58
↓ 1 callers
Method
Base64Content
()
internal/domain/attachment.go:108
↓ 1 callers
Method
BuildEndpoint
BuildEndpoint constructs the full API endpoint URL for the given model
internal/plugins/ai/azureaigateway/azureaigateway.go:40
↓ 1 callers
Method
BuildEndpoint
BuildEndpoint constructs the Vertex AI API endpoint URL Uses /publishers/google/models/{model}:generateContent path per Azure APIM Gateway routing Thi
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:43
↓ 1 callers
Method
BuildFilePath
(fileName string)
internal/plugins/db/fsdb/storage.go:192
↓ 1 callers
Method
BuildResponseParams
BuildResponseParams exposes the shared Responses API request builder so auth-specialized vendors can reuse Fabric's OpenAI-compatible request shape.
internal/plugins/ai/openai/openai.go:413
↓ 1 callers
Method
Clear
()
internal/plugins/ai/vendors.go:45
↓ 1 callers
Method
Clear
()
cmd/generate_changelog/internal/cache/cache.go:269
↓ 1 callers
Method
Close
()
cmd/generate_changelog/internal/release.go:68
↓ 1 callers
Method
CloseNotify
()
internal/server/chat_test.go:161
↓ 1 callers
Method
CommitChanges
CommitChanges creates a commit with the given message Uses native git CLI instead of go-git to properly handle worktree scenarios
cmd/generate_changelog/internal/git/walker.go:471
↓ 1 callers
Method
CommitExists
CommitExists checks if a commit already exists in the cache
cmd/generate_changelog/internal/cache/cache.go:290
↓ 1 callers
Method
Complete
(ctx context.Context, prompt string, opts *domain.ChatOptions)
internal/plugins/ai/lmstudio/lmstudio.go:264
↓ 1 callers
Method
Configure
()
internal/plugins/plugin.go:106
↓ 1 callers
Method
Configure
()
internal/plugins/plugin.go:304
↓ 1 callers
Method
Configure
()
internal/plugins/plugin.go:328
↓ 1 callers
Method
Configure
()
internal/plugins/db/fsdb/storage.go:25
↓ 1 callers
Method
ContentBytes
()
internal/domain/attachment.go:82
↓ 1 callers
Function
CreateAudioOutputFile
CreateAudioOutputFile creates a binary file for audio data
internal/cli/output.go:45
↓ 1 callers
Method
CreateNewChangelogEntry
CreateNewChangelogEntry aggregates all incoming PR files for release and includes direct commits
cmd/generate_changelog/internal/changelog/processing.go:119
↓ 1 callers
Function
CustomHelpHandler
CustomHelpHandler handles help output with translations
internal/cli/help.go:171
↓ 1 callers
Method
Delete
(name string)
internal/plugins/db/fsdb/storage.go:105
↓ 1 callers
Method
Delete
(name string)
internal/plugins/db/fsdb/sessions.go:48
↓ 1 callers
Method
DirectlyGetModels
DirectlyGetModels is used to fetch models directly from the API when the standard OpenAI SDK method fails due to a nonstandard format.
internal/plugins/ai/openai_compatible/direct_models_call.go:11
↓ 1 callers
Function
ExtractCitations
ExtractCitations extracts web citations from grounding metadata.
internal/plugins/ai/geminicommon/geminicommon.go:134
↓ 1 callers
Method
ExtractText
ExtractText exposes the shared Responses API text extraction logic so other vendors can reuse Fabric's response formatting and citation handling.
internal/plugins/ai/openai/openai.go:511
↓ 1 callers
Method
FetchAllMergedPRs
FetchAllMergedPRs fetches all merged PRs using GitHub's search API This is much more efficient than fetching PRs individually
cmd/generate_changelog/internal/github/client.go:244
↓ 1 callers
Method
FetchAllMergedPRsGraphQL
FetchAllMergedPRsGraphQL fetches all merged PRs with their commits using GraphQL This is the ultimate optimization - gets everything in ~5-10 API call
cmd/generate_changelog/internal/github/client.go:318
↓ 1 callers
Method
FetchAndSavePlaylist
FetchAndSavePlaylist fetches all videos in a playlist and saves them to a CSV file.
internal/tools/youtube/youtube.go:681
↓ 1 callers
Method
FilePath
(fileName string)
internal/plugins/db/fsdb/db.go:202
↓ 1 callers
Method
FillEnvFileContent
(buffer *bytes.Buffer)
internal/plugins/plugin.go:337
↓ 1 callers
Method
Generate
()
cmd/generate_changelog/internal/changelog/generator.go:63
↓ 1 callers
Function
GetDefaultConfigPath
GetDefaultConfigPath returns the default path for the configuration file if it exists, otherwise returns an empty string.
internal/util/utils.go:76
↓ 1 callers
Method
GetEmbeddings
(ctx context.Context, input string, opts *domain.ChatOptions)
internal/plugins/ai/lmstudio/lmstudio.go:320
↓ 1 callers
Method
GetLastPRSync
GetLastPRSync returns the timestamp of the last PR sync
cmd/generate_changelog/internal/cache/cache.go:300
↓ 1 callers
Method
GetLastProcessedTag
()
cmd/generate_changelog/internal/cache/cache.go:97
↓ 1 callers
Method
GetOutputMethod
Helper methods for Config access
internal/plugins/template/extension_registry.go:51
↓ 1 callers
Method
GetPR
(number int)
cmd/generate_changelog/internal/cache/cache.go:157
← previous
next →
501–600 of 1,885, ranked by callers