Skip to content
Projetos

Sobre

Open-source Higgsfield alternative — AI image generation studio with justified gallery and node-based workflows. Preact + Tailwind + Hono + SQLite.

Design e mídia

Como estes números são medidos

O que você pode fazer

  • Quick Generate — prompt bar with model, aspect ratio, resolution, and batch count selectors
  • Justified gallery — generated images displayed in a pixel-perfect justified layout preserving aspect ratios
  • Image-to-image — drag a generated image or upload a file as source for the next generation
  • Node-based workflows — React Flow editor for building reusable multi-step generation pipelines

Crescimento medido de estrelas

em 24 h
0
em 7 dias
+1
em 15 dias
+5
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original
OpenStudio preview

OpenStudio

Deploy with Clawnify

Part of the Clawnify v1 library: working internal apps you add to your workspace and adapt to your business.

A visual AI image generation studio with a justified gallery and node-based workflow editor. Built with React + Tailwind CSS + Hono. An open-source app template provided by Clawnify.

Features

  • Quick Generate — prompt bar with model, aspect ratio, resolution, and batch count selectors
  • Justified gallery — generated images displayed in a pixel-perfect justified layout preserving aspect ratios
  • Image-to-image — drag a generated image or upload a file as source for the next generation
  • Node-based workflows — React Flow editor for building reusable multi-step generation pipelines
  • Subject lock — save a character or product once (reference images + the details that identify it) and keep it identical across a whole batch, varying only the scene. The instruction sent to the model says "the SAME subject — identical face, hair, build and clothing", which is what reference images alone usually fail to convey
  • Style presets — save a look once (written direction, hex palette, reference images) and reuse it across every workflow, from a Style node on the canvas or the Quick Generate bar. Reference images are sent only to models that accept them; the rest still get the written direction and palette
  • Prompt variables — type / in a prompt node to reference another prompt's content with {{}} syntax, rendered as inline pills
  • Auto-naming — prompt nodes automatically get a descriptive title via Gemini 3.1 Flash Lite on blur
  • Editable titles — double-click any node title to rename it
  • 10+ models — Gemini 3.1 Flash, Gemini 3 Pro, GPT Image 1, FLUX.2 Max, SeedDream 4.5, and more via OpenRouter
  • Live model list — every image model OpenRouter currently offers, fetched at request time rather than hardcoded, so a withdrawn model disappears from the picker instead of failing mid-run
  • Cost visibility — each model is tagged $–$$$$ by relative price, and every generation records what the provider actually billed, with per-run and per-workflow totals
  • Generation history — all generations persisted with prompt, model, cost, and image
  • Node version history — browse every generation a node ever produced across runs, restore any past run's snapshot to the canvas
  • Side-by-side compare — pick any two outputs to compare full-screen, with per-image download and restore
  • Dual-mode UI — human-optimized + AI-agent-optimized (?agent=true)
  • Lightbox — click any image to view full-size
  • Drag-to-reuse — drag generated images into the prompt bar to use as input

Quickstart

git clone https://github.com/clawnify/OpenStudio.git
cd OpenStudio
pnpm install

Create a .dev.vars file with your OpenRouter API key:

OPENROUTER_API_KEY=your-key-here

Start the dev server:

pnpm dev

Open http://localhost:5173 in your browser. The database schema is applied automatically on startup.

Agent Mode

Append ?agent=true to the URL for an agent-friendly UI with always-visible delete buttons and large click targets.

Tech Stack

Layer Technology
Frontend React 19, TypeScript, Tailwind CSS v4, Vite
Node Editor React Flow (@xyflow/react)
Backend Hono API
Database SQLite
Storage Object storage (file uploads)
AI OpenRouter API (chat completions + image generation)

Prerequisites

Architecture

schema.sql    — Canonical database schema (workflows, generations)
src/
  server/
    index.ts    — Hono API with database middleware
    db.ts       — SQLite database adapter
    uploads.ts  — Object storage adapter
  client/
    app.tsx           — Root component with Generate/Workflows tabs
    context.tsx       — React context for workflow state
    hooks/use-workflow.ts — Workflow state management + execution engine
    components/
      quick-generate.tsx  — Generation view with justified gallery
      workflow-canvas.tsx — React Flow canvas wrapper
      sidebar.tsx         — Node palette + workflow list + history
      toolbar.tsx         — Workflow name + save/execute buttons
      nodes/
        node-header.tsx       — Shared editable node header
        prompt-node.tsx       — Text prompt with / variable autocomplete
        generate-node.tsx     — AI image generation node
        image-input-node.tsx  — Reference image upload node
        style-node.tsx        — Applies a saved style preset downstream
        subject-node.tsx      — Locks a saved character/product downstream
        output-node.tsx       — Result display node

Schema & Migrations

schema.sql at the project root is the canonical database schema for fresh deployments. Edit it directly to add tables, columns, or indexes — this is the file maintainers own.

On a fresh deploy, Clawnify applies schema.sql to an empty database once and records a baseline hash in the deployed instance's tracking table. From then on, the deployed instance evolves via auto-generated migration files (Clawnify's app-builder agent authors them when the user asks for schema changes). Existing deployed instances are not retroactively migrated when this file changes — only new deploys pick up the updated baseline.

Inside a deployed instance, schema.sql becomes an auto-regenerated snapshot of the live database — do not hand-edit it there. In this template repo, you do edit it directly.

API Endpoints

Method Endpoint Description
GET /api/workflows List all workflows
POST /api/workflows Create a workflow
GET /api/workflows/:id Get a workflow
PUT /api/workflows/:id Update a workflow
DELETE /api/workflows/:id Delete a workflow
POST /api/generate Generate image via OpenRouter (returns costUsd)
GET /api/models List available image models, with relative price
GET /api/generations/:workflowId List generations for a workflow
POST /api/generations Save a generation record
GET /api/style-presets List presets (style and subject)
POST /api/style-presets Create a style preset
PUT /api/style-presets/:id Update a style preset
DELETE /api/style-presets/:id Delete a style preset
POST /api/suggest-name Auto-suggest a node title via Gemini
POST /api/uploads Upload an image file
GET /api/uploads/:filename Serve an uploaded image

Deploy

npx clawnify deploy

License

MIT

Explore projetos relacionados

Carregando…