explaingit

danielmiessler/fabric

📈 Trending41,759GoAudience · developerComplexity · 2/5ActiveLicenseSetup · moderate

TLDR

A command-line tool that pipes text through AI-powered templates called patterns to summarize, analyze, and transform content without leaving your terminal.

Mindmap

mindmap
  root((fabric))
    What it does
      Pipe text to AI
      Apply reusable patterns
      Chain operations
    Patterns
      Summarize content
      Extract insights
      Write analyses
      Generate posts
    How to use
      Install CLI tool
      Connect AI provider
      Run pattern commands
    Tech stack
      Go CLI
      REST API
      Web UI
    Audience
      Terminal users
      Content creators
      Analysts

Things people build with this

USE CASE 1

Summarize articles and documents by piping text through the summarize pattern in your terminal.

USE CASE 2

Extract key insights and action items from meeting transcripts or video content automatically.

USE CASE 3

Analyze text for security issues, cognitive biases, or other specific criteria using pre-built patterns.

USE CASE 4

Chain multiple patterns together to transform content through sequential AI processing steps.

Tech stack

GoOpenAIAnthropicGoogle GeminiOllamaAzure OpenAI

Getting it running

Difficulty · moderate Time to first run · 30min

Requires API key from OpenAI, Anthropic, Google, or Azure; or local Ollama setup.

Use freely for any purpose including commercial, as long as you keep the copyright notice.

In plain English

Fabric is an open-source command-line framework for integrating AI into everyday tasks through a collection of reusable, composable prompts called "patterns." The project's core argument is that AI does not have a capabilities problem, it has an integration problem. There are plenty of powerful AI models available, but using them effectively in your daily workflow requires constructing the right prompts each time, which most people do not do consistently. Fabric addresses this by providing a crowdsourced library of carefully crafted prompts, each designed for a specific real-world task. Examples include summarizing content, extracting key insights from a YouTube video, writing security analyses, creating essay outlines, identifying cognitive biases in text, or generating social media posts. You pipe content into fabric on the command line, specify which pattern to apply, and receive a focused, high-quality response. Here is how it works: Fabric is a command-line tool written in Go. You install it, connect it to one or more AI providers (it supports OpenAI, Anthropic, Google Gemini, Ollama for local models, Azure OpenAI, and many others), and then run commands like echo "article text" | fabric --pattern summarize. Patterns are plain-text files containing system prompts stored in a local directory. You can use the built-in patterns, modify them, or write your own. Patterns can also be chained together so the output of one feeds into the next. You would use Fabric when you want AI capabilities woven into your terminal workflow, summarizing articles as you read them, processing transcripts, extracting action items from meeting notes, or applying consistent analysis to any piece of text without switching to a chat interface. The stack is Go for the CLI, with a REST API server option and a web UI for non-terminal users.

Copy-paste prompts

Prompt 1
Show me how to install fabric and connect it to my OpenAI account so I can start using patterns from the command line.
Prompt 2
I want to create a custom pattern that extracts TODO items from my meeting notes. What format should the pattern file use?
Prompt 3
How do I pipe a YouTube transcript into fabric to get a summary using the built-in summarize pattern?
Prompt 4
Can I chain two patterns together so the output of one pattern feeds into another pattern automatically?
Prompt 5
What AI providers does fabric support besides OpenAI, and how do I switch between them?
Open on GitHub → Explain another repo

Generated 2026-05-18 · Model: sonnet-4-6 · Verify against the repo before relying on details.