web/README.md
A user-friendly web interface for Fabric built with Svelte, Skeleton UI, and Mdsvex.
Alt: Screenshot of the Fabric web app dashboard showing pattern inputs and outputs.
[!NOTE] Requires Node.js ≥18 and Fabric installed globally (
fabric --versionto check).
From the web/ directory:
Using npm:
npm install
Or using pnpm (recommended for speed):
pnpm install
This will install all dependencies including Svelte, PDF-to-Markdown libraries, and run necessary setup tasks.
Start Fabric's server in a separate terminal:
fabric --serve
(This exposes Fabric's API at http://localhost:8080)
In the web/ directory:
Using npm:
npm run dev
Or using pnpm:
pnpm run dev
Visit http://localhost:5173 (default port).
For Python enthusiasts, this alternative UI excels at data visualization and chaining complex patterns. It supports clipboard ops across platforms (install pyperclip on Windows, xclip on Linux).
pbcopy and pbpaste (built-in)pyperclip library (install with pip install pyperclip)xclip (install with sudo apt-get install xclip or equivalent for your Linux distribution)From web/:
pip install -r requirements.txt #Or: pip install streamlit pandas matplotlib seaborn numpy python-dotenv pyperclip
streamlit run streamlit.py
Access at http://localhost:8501 (default port).
Turn web/src/lib/content/ into an Obsidian vault for note-taking synced with Fabric patterns. It includes pre-configured .obsidian/ and templates/ folders.
web/src/lib/content/web/src/lib/content/posts).[!TIP]
When creating new posts, make sure to include a date (YYYY-MM-DD), description, tags (e.g., #ai #patterns), and aliases for SEO. Only a date is needed to display a note. Embed images
(), link patterns([[pattern-name]]), or code blocks for reusable snippets—all in standard Markdown.
Refer to the Contributing Guide for details on how to improve this content.