Installation
Install the Core Package
Section titled “Install the Core Package”npm install @teamflojo/floimgOr with your preferred package manager:
pnpm add @teamflojo/floimgyarn add @teamflojo/floimgAdd Plugins
Section titled “Add Plugins”floimg uses a plugin architecture. Install only the generators you need:
# Charts via Chart.jsnpm install @teamflojo/floimg-quickchart
# Mermaid diagramsnpm install @teamflojo/floimg-mermaid
# QR codesnpm install @teamflojo/floimg-qr
# D3 visualizationsnpm install @teamflojo/floimg-d3
# Screenshots via Playwrightnpm install @teamflojo/floimg-screenshotVerify Installation
Section titled “Verify Installation”Create a simple test file:
import createClient from '@teamflojo/floimg';import qr from '@teamflojo/floimg-qr';
const floimg = createClient();floimg.registerGenerator(qr());
const qrCode = await floimg.generate({ generator: 'qr', params: { text: 'https://floimg.com' }});
await floimg.save(qrCode, './test-qr.png');console.log('QR code saved to test-qr.png');Run it:
npx tsx test.tsYou should see a QR code saved to test-qr.png.
Next Steps
Section titled “Next Steps”- Quick Start - Build your first workflow
- Core Concepts - Understand how floimg works
- Plugins - Explore available generators