Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/danielmiessler/Fabric
/ functions
Functions
1,350 in github.com/danielmiessler/Fabric
⨍
Functions
1,350
◇
Types & classes
220
↓ 245 callers
Function
T
T returns the localized string for the given message id. If the translator is not initialized, it will automatically initialize with system locale det
internal/i18n/i18n.go:105
↓ 105 callers
Method
Error
()
internal/plugins/ai/codex/errors.go:20
↓ 98 callers
Method
Close
()
cmd/generate_changelog/internal/cache/cache.go:33
↓ 40 callers
Method
String
()
internal/plugins/db/fsdb/sessions.go:85
↓ 32 callers
Method
Get
(name string)
internal/plugins/db/api.go:5
↓ 25 callers
Method
String
String implements fmt.Stringer with token redaction to prevent accidental exposure of the ABSK key in logs or debug output.
internal/plugins/ai/bedrock/bedrock.go:80
↓ 21 callers
Function
NewBedrockBackend
NewBedrockBackend creates a new Bedrock backend handler
internal/plugins/ai/azureaigateway/backend_bedrock.go:26
↓ 21 callers
Function
NewClient
NewClient creates a new Azure AI Gateway client
internal/plugins/ai/azureaigateway/azureaigateway.go:72
↓ 18 callers
Method
Remove
(name string)
internal/plugins/template/extension_registry.go:192
↓ 17 callers
Function
NewClient
NewClient returns a new Bedrock plugin client. Client initialization is deferred to configure() so that explicit credentials from the .env file or --s
internal/plugins/ai/bedrock/bedrock.go:194
↓ 16 callers
Function
NewClient
()
internal/plugins/ai/openai/openai.go:25
↓ 16 callers
Function
NewDb
(dir string)
internal/plugins/db/fsdb/db.go:14
↓ 15 callers
Method
GetName
()
internal/plugins/plugin.go:16
↓ 15 callers
Function
get
(name: string)
web/src/lib/api/base.ts:61
↓ 14 callers
Function
Init
Init initializes the i18n bundle and localizer. It loads the specified locale and falls back to English if loading fails. Translation files are search
internal/i18n/i18n.go:51
↓ 14 callers
Function
NewClient
()
internal/plugins/ai/anthropic/anthropic.go:43
↓ 13 callers
Method
buildResponseParams
( inputMsgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions, )
internal/plugins/ai/openai/openai.go:257
↓ 13 callers
Function
debugf
(format string, a ...any)
internal/plugins/template/template.go:38
↓ 13 callers
Function
withTempModelsCache
withTempModelsCache redirects the models cache to a temporary directory for the duration of a test and restores the original afterwards.
internal/plugins/ai/openai/models_cache_test.go:19
↓ 12 callers
Function
FetchModelsDirectly
10MB FetchModelsDirectly is used to fetch models directly from the API when the standard OpenAI SDK method fails due to a nonstandard format. This is
internal/plugins/ai/openai/direct_models.go:35
↓ 12 callers
Function
NewVendorPluginBase
NewVendorPluginBase creates a standardized PluginBase for AI vendor plugins. This centralizes the common initialization pattern used by all vendors.
internal/plugins/plugin.go:41
↓ 11 callers
Method
AddSetupQuestion
AddSetupQuestion adds a setup question to the plugin. This is a helper method, usually called from NewClient.
internal/plugins/ai/perplexity/perplexity.go:256
↓ 10 callers
Method
AddVendors
AddVendors registers one or more vendors with the manager. Vendors are stored with lowercase keys to enable case-insensitive lookup.
internal/plugins/ai/vendors.go:32
↓ 10 callers
Function
ApplyTemplate
(content string, variables map[string]string, input string)
internal/plugins/template/template.go:56
↓ 10 callers
Method
Ask
(label string)
internal/plugins/plugin.go:209
↓ 10 callers
Function
BuildEnvVariablePrefix
(name string)
internal/plugins/plugin.go:336
↓ 10 callers
Method
IsConfigured
()
internal/plugins/plugin.go:18
↓ 10 callers
Function
NewAzureOpenAIBackend
NewAzureOpenAIBackend creates a new Azure OpenAI backend handler If apiVersion is empty, defaults to "2025-04-01-preview"
internal/plugins/ai/azureaigateway/backend_azure_openai.go:26
↓ 10 callers
Function
NewSpotify
NewSpotify creates a new Spotify client instance.
internal/tools/spotify/spotify.go:43
↓ 10 callers
Method
Print
()
internal/plugins/plugin.go:166
↓ 10 callers
Method
buildMessageParams
(msgs []anthropic.MessageParam, opts *domain.ChatOptions)
internal/plugins/ai/anthropic/anthropic.go:233
↓ 10 callers
Function
setupIntegrationClient
(t *testing.T)
internal/tools/spotify/spotify_integration_test.go:32
↓ 9 callers
Method
AddGroupItems
(group string, items ...I)
internal/util/groups_items.go:42
↓ 9 callers
Method
Setup
()
internal/plugins/plugin.go:20
↓ 9 callers
Function
fetch
(endpoint: string, options: RequestInit = {})
web/src/lib/api/base.ts:14
↓ 8 callers
Method
AddSetupQuestionWithEnvName
AddSetupQuestionWithEnvName creates a setup question with an explicit environment variable name. This is useful when you want the environment variable
internal/plugins/plugin.go:79
↓ 8 callers
Function
LoadStrategy
LoadStrategy loads a strategy from the given name. The resolved path is validated to stay within the strategy directory to prevent path traversal.
internal/plugins/strategy/strategy.go:185
↓ 8 callers
Function
NewExtensionManager
NewExtensionManager creates a new extension manager instance
internal/plugins/template/extension_manager.go:22
↓ 8 callers
Function
NewVendorsManager
()
internal/plugins/ai/vendors.go:16
↓ 8 callers
Function
NewVendorsModels
()
internal/plugins/ai/models.go:12
↓ 8 callers
Function
NewVertexAIBackend
NewVertexAIBackend creates a new Vertex AI backend handler
internal/plugins/ai/azureaigateway/backend_vertex_ai.go:25
↓ 8 callers
Method
Send
Send sends a non-streaming request through the APIM gateway. This is the single implementation of HTTP plumbing shared by all backends.
internal/plugins/ai/azureaigateway/azureaigateway.go:144
↓ 8 callers
Method
buildGenerateContentConfig
buildGenerateContentConfig constructs the generation config with optional tools. When search is enabled it injects the Google Search tool. The optiona
internal/plugins/ai/gemini/gemini.go:210
↓ 8 callers
Method
configure
()
internal/plugins/ai/azure/azure.go:36
↓ 8 callers
Function
fetchBedrockRegions
fetchBedrockRegions fetches the list of AWS regions where Bedrock is available from the botocore endpoints.json file (public, no authentication requir
internal/plugins/ai/bedrock/bedrock.go:136
↓ 7 callers
Method
AddSetupQuestionCustom
(name string, required bool, question string)
internal/plugins/plugin.go:66
↓ 7 callers
Function
ExtractTextWithCitations
ExtractTextWithCitations extracts text content from the response and appends any web citations in a standardized format.
internal/plugins/ai/geminicommon/geminicommon.go:84
↓ 7 callers
Method
GetChatter
(model string, modelContextLength int, vendorName string, stream bool, dryRun bool)
internal/core/plugin_registry.go:477
↓ 7 callers
Method
GetName
GetName returns the name of the plugin.
internal/plugins/ai/perplexity/perplexity.go:244
↓ 7 callers
Function
NewClient
()
internal/plugins/ai/azure_entra/azure_entra.go:19
↓ 7 callers
Function
NewClient
NewClient creates a new Codex vendor client.
internal/plugins/ai/codex/codex.go:74
↓ 7 callers
Method
RegisterExtension
RegisterExtension handles the addextension flag action
internal/plugins/template/extension_manager.go:75
↓ 7 callers
Method
configure
configure initializes the HTTP client and instantiates the appropriate backend
internal/plugins/ai/azureaigateway/azureaigateway.go:91
↓ 7 callers
Function
run
(cmd *cobra.Command, args []string)
cmd/generate_changelog/main.go:51
↓ 7 callers
Function
testJWT
(accountID string, expiry time.Time)
internal/plugins/ai/codex/codex_test.go:605
↓ 7 callers
Function
withMockEndpointsURL
--- fetchBedrockRegions mock HTTP tests --- withMockEndpointsURL temporarily overrides the botocore endpoints URL for testing. NOTE: Not safe with t.P
internal/plugins/ai/bedrock/bedrock_test.go:337
↓ 6 callers
Method
AddSetting
(name string, required bool)
internal/plugins/plugin.go:56
↓ 6 callers
Method
BuildChatOptions
()
internal/cli/flags.go:434
↓ 6 callers
Method
Configure
()
internal/plugins/plugin.go:19
↓ 6 callers
Method
FindByName
FindByName returns a vendor by name. Lookup is case-insensitive. For example, "OpenAI", "openai", and "OPENAI" all match the same vendor.
internal/plugins/ai/vendors.go:73
↓ 6 callers
Method
FormatMetadataAsText
FormatMetadataAsText formats metadata as human-readable text suitable for LLM processing.
internal/tools/spotify/spotify.go:474
↓ 6 callers
Function
NewClient
()
internal/plugins/ai/azure/azure.go:17
↓ 6 callers
Function
ParseBool
(val string)
internal/plugins/plugin.go:194
↓ 6 callers
Method
SaveEnvFile
()
internal/core/plugin_registry.go:139
↓ 6 callers
Method
Send
Send processes a chat request and applies file changes for create_coding_feature pattern
internal/core/chatter.go:60
↓ 6 callers
Method
configure
()
internal/plugins/ai/codex/codex.go:128
↓ 5 callers
Function
AppendMessage
(message string, newMessage string)
internal/cli/flags.go:566
↓ 5 callers
Method
BuildFilePathByName
(name string)
internal/plugins/db/fsdb/storage.go:123
↓ 5 callers
Function
ComputeHash
ComputeHash computes SHA-256 hash of a file at given path. Returns the hex-encoded hash string or an error if the operation fails.
internal/plugins/template/hash.go:15
↓ 5 callers
Function
ComputeStringHash
ComputeStringHash returns hex-encoded SHA-256 hash of the given string
internal/plugins/template/hash.go:31
↓ 5 callers
Function
ConvertMessages
ConvertMessages converts fabric chat messages to genai Content format. Gemini's API only accepts "user" and "model" roles, so other roles are mapped t
internal/plugins/ai/geminicommon/geminicommon.go:22
↓ 5 callers
Method
Count
()
internal/util/groups_items.go:26
↓ 5 callers
Function
CreateOutputFile
(message string, fileName string)
internal/cli/output.go:22
↓ 5 callers
Function
NewClientCompatibleNoSetupQuestions
(vendorName string, configureCustom func() error)
internal/plugins/ai/openai/openai.go:50
↓ 5 callers
Function
NewCustomPatterns
()
internal/tools/custom_patterns/custom_patterns.go:13
↓ 5 callers
Function
NewNotificationManager
NewNotificationManager creates a new notification manager with the best available provider
internal/tools/notifications/notifications.go:24
↓ 5 callers
Method
PrepareRequest
PrepareRequest converts messages to Bedrock API format (Anthropic Messages API). System messages are extracted into the top-level "system" field per t
internal/plugins/ai/azureaigateway/backend_bedrock.go:62
↓ 5 callers
Method
Register
Update the Register method in extension_registry.go
internal/plugins/template/extension_registry.go:106
↓ 5 callers
Method
Worktree
Worktree returns the git worktree for performing git operations
cmd/generate_changelog/internal/git/walker.go:416
↓ 5 callers
Method
addAuthorizationHeader
(req *http.Request)
internal/plugins/ai/lmstudio/lmstudio.go:379
↓ 5 callers
Function
createTestPattern
Helper to create a test pattern file
internal/plugins/db/fsdb/patterns_test.go:35
↓ 5 callers
Method
fetch
fetch retrieves content from a URL with safety checks
internal/plugins/template/fetch.go:87
↓ 5 callers
Method
mapRequestError
(err error)
internal/plugins/ai/codex/errors.go:55
↓ 5 callers
Function
newConfiguredTestClient
(t *testing.T, apiBaseURL string, accountID string, accessToken string)
internal/plugins/ai/codex/codex_test.go:588
↓ 5 callers
Function
readModelsCache
readModelsCache returns the cached model list for (providerName, fullURL). When maxAge > 0 the entry must be younger than maxAge; maxAge <= 0 accepts
internal/plugins/ai/openai/models_cache.go:54
↓ 5 callers
Method
toMessages
Claude message conversion
internal/plugins/ai/vertexai/vertexai.go:396
↓ 5 callers
Method
update
()
web/src/lib/components/ui/connections/ParticleSystem.ts:65
↓ 4 callers
Function
AzureDeploymentMiddleware
AzureDeploymentMiddleware transforms Azure OpenAI API paths to include the deployment name. Azure requires URLs like: openai/deployments/{deployment-n
internal/plugins/ai/azurecommon/azurecommon.go:54
↓ 4 callers
Method
BuildEndpoint
BuildEndpoint constructs the Azure OpenAI API endpoint URL API version reference: https://learn.microsoft.com/azure/ai-services/openai/reference
internal/plugins/ai/azureaigateway/backend_azure_openai.go:52
↓ 4 callers
Method
Execute
Execute runs an extension with the given operation and value string name: the registered name of the extension operation: the operation to perform val
internal/plugins/template/extension_executor.go:36
↓ 4 callers
Method
Exists
(name string)
internal/plugins/db/api.go:8
↓ 4 callers
Method
FillEnvFileContent
(buffer *bytes.Buffer)
internal/plugins/plugin.go:175
↓ 4 callers
Method
GetApplyVariables
GetApplyVariables main entry point for getting patterns from any source
internal/plugins/db/fsdb/patterns.go:30
↓ 4 callers
Method
GetExtension
(name string)
internal/plugins/template/extension_registry.go:240
↓ 4 callers
Method
GetFileConfig
()
internal/plugins/template/extension_registry.go:66
↓ 4 callers
Function
GetGeminiVoices
GetGeminiVoices returns the current list of supported Gemini TTS voices This list is maintained based on official Google Gemini documentation https://
internal/plugins/ai/gemini/voices.go:21
↓ 4 callers
Method
GetLatestTag
GetLatestTag returns the name of the most recent tag by committer date
cmd/generate_changelog/internal/git/walker.go:46
↓ 4 callers
Method
GetNames
()
internal/plugins/db/api.go:6
↓ 4 callers
Method
GrabMetadataForURL
GrabMetadataForURL retrieves metadata for a Spotify URL (show or episode).
internal/tools/spotify/spotify.go:456
↓ 4 callers
Method
ListModels
ListModels returns the list of models available for this backend
internal/plugins/ai/azureaigateway/azureaigateway.go:38
next →
1–100 of 1,350, ranked by callers