# fabric | Daniel Miessler 🛡️ | Knowledge Base | Instagit

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.

GitHub Stars: 39.4k

Repository: https://github.com/danielmiessler/fabric

---

## Articles

### [How Fabric's REST API Handles Ollama Compatibility: A Complete Technical Guide](/danielmiessler/fabric/how-does-fabric-s-rest-api-handle-ollama-compatibility)

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.

- Tags: how-to-guide
- Published: 2026-02-28

### [Fabric Pattern Loader Code: Path and Implementation in the Fabric Repository](/danielmiessler/fabric/what-is-the-path-to-the-fabric-pattern-loader-code)

Locate 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.

- Tags: how-to-guide
- Published: 2026-02-28

### [Does Fabric Support Streaming AI Responses? A Complete Technical Guide](/danielmiessler/fabric/does-fabric-support-streaming-ai-responses)

Yes Fabric supports streaming AI responses natively using server-sent events SSE. Learn how to enable the Stream flag and route incremental chunks.

- Tags: how-to-guide
- Published: 2026-02-28

### [How to Integrate Fabric's REST API into Your Application](/danielmiessler/fabric/how-can-i-integrate-fabric-s-rest-api-into-my-application)

Seamlessly 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.

- Tags: how-to-guide
- Published: 2026-02-28

### [What Is the `internal/plugins/ai` Directory in Fabric? The AI Vendor Abstraction Layer Explained](/danielmiessler/fabric/what-is-the-purpose-of-the-internal-plugins-ai-directory-in-fabric)

Discover 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.

- Tags: internals
- Published: 2026-02-28

### [How Fabric Handles Different AI Provider APIs: A Deep Dive into the Vendor Architecture](/danielmiessler/fabric/how-does-fabric-handle-different-ai-provider-apis)

Fabric unifies AI provider APIs like OpenAI, Anthropic, Gemini, and Azure with a single vendor interface. Discover its pluggable architecture for seamless integration.

- Tags: architecture
- Published: 2026-02-28

### [How to Inject Variables into Fabric Patterns: Complete Technical Guide](/danielmiessler/fabric/can-i-inject-variables-into-fabric-patterns)

Learn to inject variables into Fabric patterns using a reactive JSON store. Dynamically merge user values into templates at runtime for flexible designs.

- Tags: how-to-guide
- Published: 2026-02-28

### [How to List Available Patterns in Fabric: CLI Guide and Source Code Walkthrough](/danielmiessler/fabric/how-do-i-list-available-patterns-in-fabric)

Easily list available Fabric patterns using the CLI command fabric --listpatterns or fabric -l. Explore the source code and find patterns in ~/.config/fabric/patterns.

- Tags: how-to-guide
- Published: 2026-02-28

### [How to Use Fabric from the Command Line: The Complete Guide](/danielmiessler/fabric/how-can-i-use-fabric-from-the-command-line)

Master 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.

- Tags: how-to-guide
- Published: 2026-02-28

### [How to Set Up Custom Patterns in Fabric: Complete Configuration Guide](/danielmiessler/fabric/how-do-i-set-up-custom-patterns-in-fabric)

Learn to set up custom patterns in Fabric easily. Use the `fabric --setup` command to create your private, update-safe prompts that override defaults.

- Tags: how-to-guide
- Published: 2026-02-28

### [Where Are Fabric's Built‑in Patterns Stored? A Deep Dive into the Source Code](/danielmiessler/fabric/where-are-fabric-s-built-in-patterns-stored)

Discover 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.

- Tags: deep-dive
- Published: 2026-02-28

### [How Fabric's Pattern System Works: From Disk Storage to Runtime Templating](/danielmiessler/fabric/how-does-fabric-s-pattern-system-work)

Discover 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.

- Tags: internals
- Published: 2026-02-28

### [What Helper Applications Are Included With Fabric? A Complete Guide to the CLI Tools](/danielmiessler/fabric/what-helper-applications-are-included-with-fabric)

Discover the helper applications included with Fabric: to_pdf, code2context, and generate_changelog. Enhance your document conversion, codebase analysis, and changelog generation with these powerful CLI tools.

- Tags: how-to-guide
- Published: 2026-02-28

### [How to Create and Use Custom Patterns in Fabric: A Complete Guide](/danielmiessler/fabric/how-can-i-use-custom-patterns-in-fabric)

Learn to create and use custom patterns in Fabric for reusable prompt packages. Discover how custom patterns override built-in ones for enhanced flexibility. Get this complete guide now.

- Tags: how-to-guide
- Published: 2026-02-28

### [What Prompt Strategies Does Fabric Support? A Complete Guide to LLM Reasoning Templates](/danielmiessler/fabric/what-prompt-strategies-does-fabric-support)

Discover Fabric's advanced prompt strategies including Chain-of-Thought and Tree-of-Thought. This guide explores LLM reasoning templates for better AI output.

- Tags: deep-dive
- Published: 2026-02-28

### [How Fabric Patterns Are Organized: Directory Structure, Loading, and Customization](/danielmiessler/fabric/how-are-fabric-patterns-organized)

Learn how Fabric Patterns are organized in directories loading and customization explained. Discover the power of systemmd and usermd files for LLM roles and templates.

- Tags: internals
- Published: 2026-02-28

### [What Are Patterns in Fabric? A Technical Guide to AI Prompt Automation](/danielmiessler/fabric/what-are-patterns-in-fabric)

Discover Patterns in Fabric AI a technical guide to reusable prompt specifications. Automate AI interactions easily with these file-based structures.

- Tags: technical-guide
- Published: 2026-02-28

### [Fabric REST API: Complete Guide to HTTP Interface and Endpoints](/danielmiessler/fabric/does-fabric-have-a-rest-api)

Explore the Fabric REST API for HTTP interface and endpoints. Access chat completions, pattern management, and YouTube transcriptions. Secure your API with keys. Learn more now.

- Tags: api-reference
- Published: 2026-02-28

### [Which AI Providers Does Fabric Support? Complete Vendor List and Integration Guide](/danielmiessler/fabric/which-ai-providers-does-fabric-support)

Discover which AI providers Fabric supports. Explore over 26 AI services including native plugins and OpenAI-compatible options with our comprehensive integration guide.

- Tags: api-reference
- Published: 2026-02-28

### [How Is the Fabric CLI Implemented? A Deep Dive Into the Go Architecture](/danielmiessler/fabric/how-is-the-fabric-cli-implemented)

Discover how the Fabric CLI is implemented with a deep dive into its Go architecture. Learn how this three-layer wrapper handles command dispatch and user I/O.

- Tags: deep-dive
- Published: 2026-02-28

### [Where Is the Main Entry Point for the Fabric CLI? A Deep Dive into Fabric's Go Architecture](/danielmiessler/fabric/where-is-the-main-entry-point-for-the-fabric-cli)

Discover the main entry point for the Fabric CLI at cmd/fabric/main.go. Explore how it routes commands and parses flags in this Go architecture deep dive.

- Tags: deep-dive
- Published: 2026-02-28

### [What Programming Language Is Fabric Written In? Inside Fabric's Go and TypeScript Stack](/danielmiessler/fabric/what-programming-language-is-fabric-written-in)

Discover Fabric's core programming language. Learn about its Go backend and TypeScript frontend for a powerful web interface.

- Tags: deep-dive
- Published: 2026-02-28

### [How Fabric Solves the AI Integration Problem: A Plugin-Based Architecture Guide](/danielmiessler/fabric/how-does-fabric-solve-the-ai-integration-problem)

Learn how Fabric integrates AI by abstracting LLM vendor APIs into a unified interface that simplifies authentication and model discovery. Discover the plugin-based architecture.

- Tags: architecture
- Published: 2026-02-28

### [What Is the Fabric AI Framework? A Developer's Guide to the Open-Source Go CLI](/danielmiessler/fabric/what-is-the-fabric-ai-framework)

Discover the Fabric AI framework an open-source Go CLI and REST API. Treat AI prompts as reusable Patterns and integrate with OpenAI Anthropic and Ollama seamlessly.

- Tags: getting-started
- Published: 2026-02-28

