fabric
Fabric is an open-source framework for augmenting humans using AI. It provides a modular system for solving specific problems using a crowdsourced set of AI prompts that can be used anywhere.
Discover how Fabric's REST API achieves full Ollama compatibility with three endpoints when using the --serveOllama flag. Understand request translation, response streaming, and the specific APIs involved.
Fabric Pattern Loader Code: Path and Implementation in the Fabric RepositoryLocate Fabric pattern loader code at internal/tools/patterns_loader.go in the danielmiessler/fabric repo. Discover its implementation for parsing, validating, and registering pattern definitions.
Does Fabric Support Streaming AI Responses? A Complete Technical GuideYes Fabric supports streaming AI responses natively using server-sent events SSE. Learn how to enable the Stream flag and route incremental chunks.
How to Integrate Fabric's REST API into Your ApplicationSeamlessly integrate Fabric's REST API into your app. Launch the HTTP server with fabric --serve and access OpenAPI endpoints at localhost:8080. Secure with X-API-Key for robust integration.
What Is the `internal/plugins/ai` Directory in Fabric? The AI Vendor Abstraction Layer ExplainedDiscover the purpose of the internal plugins ai directory in Fabric. Learn how this AI vendor abstraction layer unifies communication with multiple AI providers using a single Vendor interface.
How Fabric Handles Different AI Provider APIs: A Deep Dive into the Vendor ArchitectureFabric unifies AI provider APIs like OpenAI, Anthropic, Gemini, and Azure with a single vendor interface. Discover its pluggable architecture for seamless integration.
How to Inject Variables into Fabric Patterns: Complete Technical GuideLearn to inject variables into Fabric patterns using a reactive JSON store. Dynamically merge user values into templates at runtime for flexible designs.
How to List Available Patterns in Fabric: CLI Guide and Source Code WalkthroughEasily list available Fabric patterns using the CLI command fabric --listpatterns or fabric -l. Explore the source code and find patterns in ~/.config/fabric/patterns.
How to Use Fabric from the Command Line: The Complete GuideMaster the Fabric CLI. Execute AI-powered prompts directly from your terminal with this comprehensive guide. Learn command-line usage and unlock Fabric's full potential.
How to Set Up Custom Patterns in Fabric: Complete Configuration GuideLearn to set up custom patterns in Fabric easily. Use the `fabric --setup` command to create your private, update-safe prompts that override defaults.
Where Are Fabric's Built‑in Patterns Stored? A Deep Dive into the Source CodeDiscover where Fabric's built-in patterns are stored in the source code. A deep dive into the data patterns directory and its system md files reveals all.
How Fabric's Pattern System Works: From Disk Storage to Runtime TemplatingDiscover how Fabric's pattern system utilizes a three-layer architecture to manage AI prompt templates, from disk storage to runtime expansion for secure and efficient prompt engineering.
Have a question about this repo?
These articles cover the highlights, but your codebase questions are specific. Give your agent direct access to the source. Share this with your agent to get started:
curl -s "https://instagit.com/install.md" Maintain an open-source project? Get it listed too →