React component library that exposes the ImageToolsWorkspace UI for embedding inside other apps. The Vite app in this repo is only a demo shell around the exported component.
Prerequisites: volta, pnpm.
- Install dependencies:
pnpm install - Run the dev demo:
pnpm dev - Build the npm package:
pnpm build:lib - Build the demo bundle (optional):
pnpm build:demo
pnpm add bloom-ai-image-toolsimport { ImageToolsWorkspace } from "bloom-ai-image-tools";
function Example() {
return <ImageToolsWorkspace persistence={...} envApiKey={...} />;
}See App.tsx for a concrete integration example.
Art-style preview thumbnails rely on bundlers that support
import.meta.glob(Vite/Rollup). Other bundlers fall back to text-only style selection.
We use Changesets for semver management. Typical workflow:
- Create a changeset describing your change:
pnpm changeset - Merge the generated PR. The
ReleaseGitHub Action will bump versions and publish to npm. - Manual publishing (rare):
pnpm release
Ensure NPM_TOKEN is configured in the repo secrets for the workflow to succeed.
- E2E (Playwright): set
BLOOM_OPENROUTER_KEY_FOR_PLAYWRIGHT_TESTSto your OpenRouter API key, then runpnpm e2e.