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
↓ 4 callers
Function
setHSTS
setHSTS sets the Strict-Transport-Security header. Each validation 400 sends it, the same as the chat BindJSON 400 path.
internal/server/storage.go:22
↓ 4 callers
Function
supportsImageGeneration
(model string)
internal/plugins/ai/openai/openai_image.go:30
↓ 4 callers
Function
writeFileAtomic
writeFileAtomic writes content to a temporary file in the same directory and then renames it to path. A reader thus never sees a partial file. The fil
internal/plugins/db/fsdb/db.go:180
↓ 4 callers
Function
writeModelsCache
writeModelsCache skips an empty list, so a transient empty response does not stay cached for the full TTL.
internal/plugins/ai/openai/models_cache.go:72
↓ 3 callers
Function
APIKeyMiddleware
APIKeyMiddleware validates API key for protected endpoints. Swagger documentation endpoints (/swagger/*) are exempt from authentication to allow users
internal/server/auth.go:121
↓ 3 callers
Function
BuildEnvVariable
(name string)
internal/plugins/plugin.go:364
↓ 3 callers
Method
DisplayValue
DisplayValue returns the value as it may be shown to the user.
internal/plugins/plugin.go:174
↓ 3 callers
Method
Exists
(name string)
internal/plugins/db/fsdb/storage.go:116
↓ 3 callers
Function
ExtractText
ExtractText extracts just the text parts from a Gemini response. Thought summaries (parts with Thought set, returned when --thinking asks for them) ar
internal/plugins/ai/geminicommon/geminicommon.go:60
↓ 3 callers
Method
FetchPlaylistVideos
FetchPlaylistVideos fetches all videos from a YouTube playlist.
internal/tools/youtube/youtube.go:623
↓ 3 callers
Method
FilterByVendor
FilterByVendor returns a new VendorsModels containing only the specified vendor's models. Vendor matching is case-insensitive (e.g., "OpenAI", "openai
internal/plugins/ai/models.go:23
↓ 3 callers
Method
FindGroupsByItem
(item I)
internal/util/groups_items.go:153
↓ 3 callers
Method
FindGroupsByItemFirst
(item I)
internal/util/groups_items.go:138
↓ 3 callers
Method
Get
(name string)
internal/plugins/db/fsdb/sessions.go:73
↓ 3 callers
Method
GetEpisodeMetadata
GetEpisodeMetadata retrieves metadata for a Spotify episode.
internal/tools/spotify/spotify.go:271
↓ 3 callers
Method
GetExtension
(name string)
internal/plugins/template/extension_registry.go:184
↓ 3 callers
Method
GetGroupAndItemByItemNumber
(number int)
internal/util/groups_items.go:71
↓ 3 callers
Method
GetNames
GetNames overrides StorageEntity.GetNames to include custom patterns directory
internal/plugins/db/fsdb/patterns.go:222
↓ 3 callers
Function
GetProviderByName
GetProviderByName returns the provider configuration for a given name with O(1) lookup
internal/plugins/ai/openai_compatible/providers_config.go:523
↓ 3 callers
Method
GetSetupDescription
()
internal/plugins/plugin.go:21
↓ 3 callers
Method
GetShowMetadata
GetShowMetadata retrieves metadata for a Spotify show (podcast).
internal/tools/spotify/spotify.go:222
↓ 3 callers
Method
GetVideoOrPlaylistId
(url string)
internal/tools/youtube/youtube.go:108
↓ 3 callers
Method
GrabMetadata
(videoId string)
internal/tools/youtube/youtube.go:803
↓ 3 callers
Method
GrabTranscript
GrabTranscript retrieves the transcript for the specified video ID using yt-dlp and the arguments in the YtDlpArgs field. The language parameter speci
internal/tools/youtube/youtube.go:153
↓ 3 callers
Method
IsAvailable
()
internal/tools/notifications/notifications.go:15
↓ 3 callers
Method
IsChatRequest
()
internal/cli/flags.go:522
↓ 3 callers
Method
IsConfigured
IsConfigured returns true if a custom patterns directory has been set
internal/tools/custom_patterns/custom_patterns.go:59
↓ 3 callers
Method
IsEnvFileExists
()
internal/plugins/db/fsdb/db.go:100
↓ 3 callers
Function
IsLoopbackHost
IsLoopbackHost tells if host is "localhost", a subdomain of "localhost" or a loopback IP address. The host has no port and no IPv6 brackets.
internal/util/httpclient.go:116
↓ 3 callers
Method
IsValid
()
internal/plugins/plugin.go:181
↓ 3 callers
Method
NeedsRawMode
(modelName string)
internal/plugins/ai/ollama/ollama.go:385
↓ 3 callers
Function
NewClient
NewClient creates a new OpenAI-compatible client for the specified provider
internal/plugins/ai/openai_compatible/providers_config.go:56
↓ 3 callers
Function
NewConfigHandler
(r *gin.Engine, db *fsdb.Db)
internal/server/configuration.go:20
↓ 3 callers
Function
NewExtensionExecutor
NewExtensionExecutor creates a new executor instance It requires a registry to verify extensions
internal/plugins/template/extension_executor.go:25
↓ 3 callers
Function
NewGroupsItemsSelector
(selectionLabel string, getItemLabel func(I) string)
internal/util/groups_items.go:12
↓ 3 callers
Function
NewPatternsLoader
(patterns *fsdb.PatternsEntity)
internal/tools/patterns_loader.go:22
↓ 3 callers
Function
NewPluginRegistry
(db *fsdb.Db)
internal/core/plugin_registry.go:58
↓ 3 callers
Function
NewSetupQuestion
(question string)
internal/plugins/plugin.go:312
↓ 3 callers
Function
NewYouTubeHandler
(r *gin.Engine, registry *core.PluginRegistry)
internal/server/youtube.go:30
↓ 3 callers
Method
OnAnswerWithReset
(answer string, isReset bool)
internal/plugins/plugin.go:266
↓ 3 callers
Function
OutputTokenCount
OutputTokenCount returns the tokens the model generated: the visible answer plus the thinking tokens, which Gemini reports separately but bills as out
internal/plugins/ai/geminicommon/geminicommon.go:82
↓ 3 callers
Function
ParseDeployments
ParseDeployments splits a comma-separated deployment string into a slice, trimming whitespace and discarding empty entries.
internal/plugins/ai/azurecommon/azurecommon.go:12
↓ 3 callers
Method
PopulateDB
PopulateDB downloads patterns from the internet and populates the patterns folder
internal/tools/patterns_loader.go:87
↓ 3 callers
Method
ProcessExtension
ProcessExtension handles template processing for extension directives
internal/plugins/template/extension_manager.go:132
↓ 3 callers
Method
RemoveExtension
RemoveExtension handles the rmextension flag action
internal/plugins/template/extension_manager.go:123
↓ 3 callers
Method
SaveCommit
(commit *git.Commit, version string)
cmd/generate_changelog/internal/cache/cache.go:133
↓ 3 callers
Method
SaveCommitPRMappings
SaveCommitPRMappings saves SHA→PR mappings for all commits in PRs
cmd/generate_changelog/internal/cache/cache.go:406
↓ 3 callers
Method
SaveVersion
(v *git.Version)
cmd/generate_changelog/internal/cache/cache.go:114
↓ 3 callers
Function
ScanDirectory
ScanDirectory scans a directory and returns a JSON representation of its structure
cmd/code2context/code.go:35
↓ 3 callers
Method
Search
Search returns the Google results for query as markdown, one section per result. Google no longer honours a result count, so one call returns one page
internal/tools/searchapi/searchapi.go:59
↓ 3 callers
Method
Search
Search returns source URLs and excerpts as Markdown. Anonymous searches use the server's default Fast mode. Explicit credentials are never retried ano
internal/tools/parallel/parallel.go:57
↓ 3 callers
Method
Send
Send sends a notification using the configured provider
internal/tools/notifications/notifications.go:45
↓ 3 callers
Method
SetEnableXSearch
SetEnableXSearch toggles whether an additional xAI "x_search" tool entry is appended when Search is enabled. Non-xAI providers should leave this false
internal/plugins/ai/openai/openai.go:101
↓ 3 callers
Method
SetLastProcessedTag
(tag string)
cmd/generate_changelog/internal/cache/cache.go:106
↓ 3 callers
Function
StripThinkBlocks
StripThinkBlocks removes each start tag, end tag, and the text between them from input. It also removes the whitespace after the end tag, so the outpu
internal/domain/think.go:16
↓ 3 callers
Method
Unwrap
()
internal/plugins/ai/codex/errors.go:24
↓ 3 callers
Method
WithEnvLock
(fn func() error)
internal/plugins/db/fsdb/db.go:126
↓ 3 callers
Method
addAuthHeader
addAuthHeader adds the authorization header to a request.
internal/plugins/ai/copilot/copilot.go:390
↓ 3 callers
Function
allowTestServer
allowTestServer lets loadImageBytes connect to the loopback address of server. The check stays on for all other addresses.
internal/plugins/ai/ollama/ollama_test.go:41
↓ 3 callers
Function
applyTemplate
applyTemplate does the work for ApplyTemplate, ApplyTemplateNoSystemPlugins and ApplyTemplateInput.
internal/plugins/template/template.go:103
↓ 3 callers
Function
assertEnvMode
(t *testing.T, path string)
internal/plugins/db/fsdb/db_test.go:194
↓ 3 callers
Method
buildGeminiConfig
(opts *domain.ChatOptions)
internal/plugins/ai/vertexai/vertexai.go:277
↓ 3 callers
Method
buildPRWithCommits
(ctx context.Context, ghPR *github.PullRequest)
cmd/generate_changelog/internal/github/client.go:154
↓ 3 callers
Function
buildVendorsMap
buildVendorsMap groups the model names by vendor name for the response. A vendor with no models gets an empty slice, not a nil slice, because a nil sl
internal/server/models.go:47
↓ 3 callers
Function
captureOutput
(f func())
internal/plugins/plugin_test.go:276
↓ 3 callers
Function
captureStdout
captureStdout runs fn and returns the text that fn writes to stdout.
internal/core/chatter_test.go:809
↓ 3 callers
Function
cleanCORSOrigins
cleanCORSOrigins trims each origin, removes a trailing "/" and removes empty entries. A browser sends the Origin header with no "/". It refuses "*" wh
internal/server/cors.go:18
↓ 3 callers
Method
configure
()
internal/plugins/ai/openai/openai.go:144
↓ 3 callers
Method
constructRequest
(msgs []*chat.ChatCompletionMessage, opts *domain.ChatOptions)
internal/plugins/ai/dryrun/dryrun.go:63
↓ 3 callers
Function
convertMessageCommon
(msg chat.ChatCompletionMessage)
internal/plugins/ai/openai/message_conversion.go:13
↓ 3 callers
Function
copyFile
(src, dst string)
internal/tools/githelper/githelper.go:178
↓ 3 callers
Function
delete
(name: string)
web/src/lib/api/base.ts:74
↓ 3 callers
Method
ensureIncomingDir
()
cmd/generate_changelog/internal/changelog/processing.go:377
↓ 3 callers
Method
errorFromHTTPResponse
(statusCode int, body []byte)
internal/plugins/ai/codex/errors.go:28
↓ 3 callers
Method
extractText
(resp *responses.Response)
internal/plugins/ai/openai/openai.go:443
↓ 3 callers
Method
fetchSinglePR
(ctx context.Context, prNumber int)
cmd/generate_changelog/internal/github/client.go:226
↓ 3 callers
Function
filePerm
(t *testing.T, path string)
internal/plugins/db/fsdb/storage_test.go:58
↓ 3 callers
Function
getFabricBaseUrl
()
web/src/lib/config/environment.ts:12
↓ 3 callers
Function
getPreferredLocale
getPreferredLocale returns explicitLang when it is not empty. Otherwise it returns the result of detectSystemLocale.
internal/i18n/locale.go:67
↓ 3 callers
Function
getStrategyDir
getStrategyDir returns the path to the strategies directory
internal/plugins/strategy/strategy.go:180
↓ 3 callers
Function
getString
(s *string)
cmd/generate_changelog/internal/github/client.go:235
↓ 3 callers
Function
handleChatProcessing
(currentFlags *Flags, registry *core.PluginRegistry, messageTools string)
internal/cli/chat.go:20
↓ 3 callers
Function
handleSetupAndServerCommands
handleSetupAndServerCommands runs the setup and server commands. It returns handled = true when a command ran and the caller must exit.
internal/cli/setup_server.go:18
↓ 3 callers
Function
hostOnly
hostOnly removes the port from a Host value or from an address. It accepts an IPv6 literal such as "[::1]:8080". If the value has no port, hostOnly re
internal/server/loopback_guard.go:18
↓ 3 callers
Method
insertVersionAtTop
insertVersionAtTop writes the entry below the "# Changelog" header and creates the file when absent.
cmd/generate_changelog/internal/changelog/processing.go:441
↓ 3 callers
Function
isGeminiModel
(modelName string)
internal/plugins/ai/vertexai/models.go:174
↓ 3 callers
Function
isValidAWSRegion
isValidAWSRegion checks only the length of the region name, 5 to 30 characters.
internal/plugins/ai/bedrock/bedrock.go:345
↓ 3 callers
Function
limitedRouter
(now *time.Time)
internal/server/auth_limit_test.go:13
↓ 3 callers
Function
modelsCacheFile
modelsCacheFile builds the cache path from the provider name and a hash of the URL. A provider that changes its endpoint then reads a new file, not a
internal/plugins/ai/openai/models_cache.go:39
↓ 3 callers
Function
mustSymlink
mustSymlink makes a symlink. If symlinks are not available, for example on Windows without the privilege, it skips the test.
internal/plugins/db/fsdb/storage_test.go:225
↓ 3 callers
Function
newAuthFailureLimiter
()
internal/server/auth.go:50
↓ 3 callers
Function
newTestClient
newTestClient returns a client whose requests go to a test server that sends body.
internal/plugins/ai/gemini/gemini_stream_test.go:21
↓ 3 callers
Function
newTestServer
(t *testing.T, handler http.HandlerFunc)
internal/tools/searchapi/searchapi_test.go:11
↓ 3 callers
Function
newTextServer
newTextServer starts a test server on a loopback address. The server answers each request with body as text/plain.
internal/plugins/template/fetch_test.go:16
↓ 3 callers
Function
parseFFmpegFrameTimes
(logOutput string)
internal/tools/youtube/youtube.go:478
↓ 3 callers
Function
postConfig
(r *gin.Engine, body string)
internal/server/configuration_test.go:28
↓ 3 callers
Function
publicError
publicError returns the text of err that the server sends to a client or writes to its log. The text of a provider error can repeat private content, f
internal/server/provider_error.go:20
↓ 3 callers
Function
recordFirstStreamError
recordFirstStreamError sends err to errChan when the channel has space. It discards later errors.
internal/core/chatter.go:41
↓ 3 callers
Method
registerVendor
(plugin plugins.Plugin)
internal/core/plugin_registry.go:452
↓ 3 callers
Function
rejectUnsafePatternName
rejectUnsafePatternName answers a 400 when name is a file-path-like pattern name or does not obey storage-name validation. An empty name passes, becau
internal/server/patterns.go:24
← previous
next →
201–300 of 1,885, ranked by callers