Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,442 in github.com/danielmiessler/Fabric
⨍
Functions
1,442
◇
Types & classes
227
↓ 1 callers
Function
matchTriple
matchTriple extracts the first two required and optional third value from a token pattern of the form {{type:part1:part2(:part3)?}} returning part1, p
internal/plugins/template/template.go:44
↓ 1 callers
Function
messageTextFromParts
messageTextFromParts extracts and concatenates all text content from a message, combining both the Content field and any text parts in MultiContent.
internal/plugins/ai/anthropic/anthropic.go:431
↓ 1 callers
Function
modelDisallowsSamplingParams
(model string)
internal/plugins/ai/anthropic/anthropic.go:38
↓ 1 callers
Method
movePatterns
movePatterns copies the new patterns into the config directory
internal/tools/patterns_loader.go:172
↓ 1 callers
Function
newFabricChatClient
()
internal/server/ollama.go:200
↓ 1 callers
Function
noLangs
(args []string)
internal/tools/youtube/youtube.go:203
↓ 1 callers
Method
normalizeFileName
(name string)
internal/tools/youtube/youtube.go:709
↓ 1 callers
Function
normalizeImageMimeType
normalizeImageMimeType validates and normalizes image MIME types to those supported by the Anthropic API. Supported formats: image/jpeg, image/png, im
internal/plugins/ai/anthropic/anthropic.go:546
↓ 1 callers
Function
normalizeLineEndings
(content string)
cmd/generate_changelog/internal/changelog/generator.go:593
↓ 1 callers
Function
normalizeLocation
(location string)
internal/plugins/ai/gemini/gemini.go:260
↓ 1 callers
Function
normalize_version
Ensure version string starts with 'v'.
scripts/readme_updates/update_readme_features.py:74
↓ 1 callers
Function
oauthStatesMatch
(expected string, actual string)
internal/plugins/ai/codex/oauth.go:286
↓ 1 callers
Function
openFileDialog
(accept: string)
web/src/lib/utils/file-utils.ts:1
↓ 1 callers
Function
parseDataURL
parseDataURL parses an RFC 2397 data URL, extracting the MIME type and base64-encoded data. Only base64-encoded data URLs are supported; URL-encoded d
internal/plugins/ai/anthropic/anthropic.go:510
↓ 1 callers
Function
parseDebugLevel
(args []string)
internal/cli/flags.go:242
↓ 1 callers
Function
parseGitHubURL
(url string)
cmd/generate_changelog/internal/git/walker.go:279
↓ 1 callers
Method
parseSSEStream
parseSSEStream parses the Server-Sent Events stream from Copilot.
internal/plugins/ai/copilot/copilot.go:355
↓ 1 callers
Function
parseThinking
(level domain.ThinkingLevel)
internal/plugins/ai/anthropic/anthropic.go:153
↓ 1 callers
Function
parseThinkingConfig
(level domain.ThinkingLevel)
internal/plugins/ai/gemini/gemini.go:183
↓ 1 callers
Function
parse_args
Parse command-line arguments.
scripts/readme_updates/update_readme_features.py:36
↓ 1 callers
Function
parse_date
Parse various date formats and return formatted string.
scripts/readme_updates/update_readme_features.py:80
↓ 1 callers
Function
parse_models_output
Parse the output of fabric --listmodels command.
scripts/python_ui/streamlit.py:112
↓ 1 callers
Function
pattern_creation_ui
UI component for creating patterns with simple and wizard modes.
scripts/python_ui/streamlit.py:622
↓ 1 callers
Function
pattern_creation_wizard
Multi-step wizard for creating a new pattern.
scripts/python_ui/streamlit.py:494
↓ 1 callers
Function
pattern_editor
Edit pattern content with simple and advanced editing options.
scripts/python_ui/streamlit.py:942
↓ 1 callers
Function
pdfResult
(overrides: Partial<PdfProcessResult> = {})
web/src/lib/services/PdfConversionService.test.ts:7
↓ 1 callers
Method
performTTSGeneration
performTTSGeneration performs the actual TTS generation and audio processing
internal/plugins/ai/gemini/gemini.go:332
↓ 1 callers
Function
pick_feature
Pick the best feature line from the AI summary.
scripts/readme_updates/update_readme_features.py:222
↓ 1 callers
Function
prependSystemContentToBlocks
prependSystemContentToBlocks prepends system content to content blocks. If the first block is text, it merges the system content with it; otherwise, i
internal/plugins/ai/anthropic/anthropic.go:471
↓ 1 callers
Function
printUsage
()
cmd/code2context/main.go:92
↓ 1 callers
Method
processStream
( stream: ReadableStream<StreamResponse>, onContent: (content: string, response?: StreamResponse) => void,
web/src/lib/services/ChatService.ts:281
↓ 1 callers
Function
processYoutubeVideo
( flags *Flags, registry *core.PluginRegistry, videoId string)
internal/cli/cli.go:117
↓ 1 callers
Method
publishOAuthResult
(results chan<- oauthResult, result oauthResult)
internal/plugins/ai/codex/oauth.go:190
↓ 1 callers
Function
readAPIErrorBody
(apiErr *openaiapi.Error)
internal/plugins/ai/codex/errors.go:98
↓ 1 callers
Function
readFileContent
( file: File, pdf: { convertToMarkdown(file: File): Promise<PdfConversion> }, warn: (message: string) =>
web/src/lib/components/chat/read-file-content.ts:6
↓ 1 callers
Method
readModels
()
internal/plugins/ai/vendors.go:77
↓ 1 callers
Function
readStdin
readStdin reads from stdin and returns the input as a string or an error
internal/cli/flags.go:333
↓ 1 callers
Method
refreshAccessToken
refreshAccessToken obtains a new access token using Client Credentials flow.
internal/tools/spotify/spotify.go:91
↓ 1 callers
Method
refreshAccessToken
(ctx context.Context)
internal/plugins/ai/codex/auth_transport.go:114
↓ 1 callers
Method
refreshErrorFromResponse
(statusCode int, body []byte)
internal/plugins/ai/codex/errors.go:39
↓ 1 callers
Function
repo_root
Get the repository root directory.
scripts/readme_updates/update_readme_features.py:53
↓ 1 callers
Function
resolveInputFile
resolveInputFile attempts to open the input file. If tryAppendTex is true and the initial attempt fails, it appends ".tex" and retries.
cmd/to_pdf/main.go:39
↓ 1 callers
Method
roundTrip
(req *http.Request, retried bool)
internal/plugins/ai/codex/auth_transport.go:184
↓ 1 callers
Method
roundTripper
()
internal/plugins/ai/codex/auth_transport.go:217
↓ 1 callers
Method
runFirstTimeSetup
runFirstTimeSetup handles first-time setup with automatic pattern/strategy download
internal/core/plugin_registry.go:213
↓ 1 callers
Method
runInteractiveSetup
runInteractiveSetup runs the standard interactive setup menu
internal/core/plugin_registry.go:322
↓ 1 callers
Method
runVendorSetup
runVendorSetup helps user select and configure their first AI vendor
internal/core/plugin_registry.go:276
↓ 1 callers
Method
safePath
safePath validates and normalizes file paths
internal/plugins/template/file.go:29
↓ 1 callers
Function
safe_run_command
Safely run a command with retries.
scripts/python_ui/streamlit.py:140
↓ 1 callers
Function
saveToFile
(data: any, filename: string)
web/src/lib/utils/file-utils.ts:34
↓ 1 callers
Function
saveToFile
(content: string)
web/src/lib/store/note-store.ts:47
↓ 1 callers
Function
save_pattern_files
Save pattern extracts and descriptions JSON files
scripts/pattern_descriptions/extract_patterns.py:105
↓ 1 callers
Method
sendChatCompletions
sendChatCompletions sends a request using the Chat Completions API
internal/plugins/ai/openai/chat_completions.go:18
↓ 1 callers
Method
sendChatMessage
sendChatMessage sends a message to an existing conversation (synchronous).
internal/plugins/ai/copilot/copilot.go:267
↓ 1 callers
Method
sendChatMessageStream
sendChatMessageStream sends a message and streams the response via SSE.
internal/plugins/ai/copilot/copilot.go:313
↓ 1 callers
Method
sendClaude
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:136
↓ 1 callers
Method
sendGemini
(ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:269
↓ 1 callers
Method
sendStreamChatCompletions
sendStreamChatCompletions sends a streaming request using the Chat Completions API
internal/plugins/ai/openai/chat_completions.go:32
↓ 1 callers
Method
sendStreamClaude
(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate)
internal/plugins/ai/vertexai/vertexai.go:189
↓ 1 callers
Method
sendStreamGemini
(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.StreamUpdate)
internal/plugins/ai/vertexai/vertexai.go:340
↓ 1 callers
Method
sendStreamResponses
( ctx context.Context, msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, channel chan domain.Stre
internal/plugins/ai/openai/openai.go:150
↓ 1 callers
Function
sendStreamUpdate
(ctx context.Context, channel chan domain.StreamUpdate, update domain.StreamUpdate)
internal/plugins/ai/codex/codex.go:327
↓ 1 callers
Function
setSystemPrompt
(prompt: string)
web/src/lib/store/pattern-store.ts:36
↓ 1 callers
Function
set_clipboard_content
Set content to clipboard with proper error handling. Args: content: The content to copy to clipboard Returns: Tuple[bool, st
scripts/python_ui/streamlit.py:1318
↓ 1 callers
Function
setup
()
web/src/lib/services/PdfConversionService.test.ts:123
↓ 1 callers
Function
shellEscape
shellEscape wraps a string in single quotes for safe use in a shell command, escaping any embedded single quotes. This prevents command injection when
internal/plugins/template/extension_executor.go:103
↓ 1 callers
Function
splitAudioFile
splitAudioFile splits the source file into chunks smaller than maxSize using ffmpeg. It returns the list of chunk file paths and a cleanup function.
internal/plugins/ai/openai/openai_audio.go:143
↓ 1 callers
Function
split_summary
Split AI summary into individual lines/bullets.
scripts/readme_updates/update_readme_features.py:118
↓ 1 callers
Method
stageChangesForRelease
stageChangesForRelease stages the modified files for the release commit
cmd/generate_changelog/internal/changelog/processing.go:520
↓ 1 callers
Function
star_output
Star/favorite an output log. Args: log_index: Index of the output log to star custom_name: Optional custom name for the starred o
scripts/python_ui/streamlit.py:682
↓ 1 callers
Method
streamChat
( userInput: string, systemPromptText?: string, )
web/src/lib/services/ChatService.ts:273
↓ 1 callers
Method
syncGitHistory
syncGitHistory walks the complete git history and ensures all versions and commits are cached
cmd/generate_changelog/internal/changelog/generator.go:733
↓ 1 callers
Method
terminate
()
web/src/lib/services/PdfConversionService.test.ts:112
↓ 1 callers
Function
toTitle
toTitle capitalizes a letter if it follows a non-letter, unless next char is space
internal/plugins/template/text.go:16
↓ 1 callers
Function
tryGetMessage
tryGetMessage attempts to get a message from embedded locale files
internal/i18n/i18n.go:170
↓ 1 callers
Method
tryMethodYtDlp
(videoId string, language string, additionalArgs string)
internal/tools/youtube/youtube.go:293
↓ 1 callers
Method
tryMethodYtDlpWithTimestamps
(videoId string, language string, additionalArgs string)
internal/tools/youtube/youtube.go:297
↓ 1 callers
Method
tryPathMigration
tryPathMigration attempts to migrate from old pattern paths to new restructured paths
internal/tools/patterns_loader.go:250
↓ 1 callers
Function
unlockExclusive
(f *os.File)
internal/plugins/db/fsdb/env_lock_unix.go:18
↓ 1 callers
Function
unstar_output
Remove an output from starred/favorites.
scripts/python_ui/streamlit.py:716
↓ 1 callers
Method
updateReleaseForRepo
(ctx context.Context, client *github.Client, owner, repo, version, releaseBody string)
cmd/generate_changelog/internal/release.go:136
↓ 1 callers
Function
update_provider_selection
Update provider and reset related states.
scripts/python_ui/streamlit.py:199
↓ 1 callers
Function
userLocaleDir
()
internal/i18n/i18n.go:114
↓ 1 callers
Method
validateExtensionDefinition
(ext *ExtensionDefinition)
internal/plugins/template/extension_registry.go:160
↓ 1 callers
Method
validateGitStatus
validateGitStatus ensures the working directory is clean
cmd/generate_changelog/internal/changelog/processing.go:398
↓ 1 callers
Method
validatePRState
validatePRState validates that a PR is in the correct state for processing
cmd/generate_changelog/internal/changelog/processing.go:377
↓ 1 callers
Method
validateSetup
validateSetup checks if required components are configured and warns user
internal/core/plugin_registry.go:385
↓ 1 callers
Method
validateTextContent
validateTextContent ensures content is valid UTF-8 without null bytes
internal/plugins/template/fetch.go:71
↓ 1 callers
Method
verifyCommitPRMappings
verifyCommitPRMappings ensures all PR commits have proper mappings
cmd/generate_changelog/internal/changelog/generator.go:786
↓ 1 callers
Method
writeAllFlags
writeAllFlags writes all flags with translated descriptions
internal/cli/help.go:223
↓ 1 callers
Function
writeEnvFileAtomic
(path string, env map[string]string)
internal/plugins/db/fsdb/db.go:161
↓ 1 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:574
↓ 1 callers
Function
writeSSEResponse
(w gin.ResponseWriter, response StreamResponse)
internal/server/chat.go:258
Method
AddSetupQuestionBool
(name string, required bool)
internal/plugins/plugin.go:86
Method
ApplyPattern
ApplyPattern handles the POST /patterns/:name/apply route @Summary Apply pattern with variables @Description Apply a pattern with variable substitutio
internal/server/patterns.go:98
Method
Ask
(label string)
internal/plugins/plugin.go:325
Method
Configure
Configure buildClient VendorsController based on the environment variables
internal/core/plugin_registry.go:509
Method
Configure
()
internal/core/chatter_test.go:36
Method
Configure
()
internal/core/plugin_registry_test.go:47
Method
Configure
()
internal/plugins/ai/vendors.go:60
← previous
next →
701–800 of 1,442, ranked by callers