Loomic

作者 fancyboi999已验证

Open-source AI canvas design agent — alternative to Lovart / CapCut Video Studio / Canva AI. Chat-driven image & video generation on an infinite canvas.

183
Stars
45
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/fancyboi999/Loomic

快速入门

使用 Loomic 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Loomic Logo

Loomic

Open-source alternative to Lovart / CapCut Video Studio / Canva AI
Canvas-based AI creative workspace — no timeline, no templates, just talk.

Loomic

Next.js React TypeScript Tailwind CSS Fastify LangGraph Supabase Excalidraw Turborepo pnpm

Loomic Workspace


💡 Loomic 是什么

CapCut 刚推出了 Video Studio——基于画布的 AI 视频制作空间,Lovart 做的是 AI 设计 Agent,Canva 也在往 AI 方向猛推。这类产品的共同点:闭源、数据不在你手里、定价你说了不算。

Loomic 做的是同一件事,但完全开源。你在无限画布上跟 AI 对话,它直接生成图片、视频,摆好位置,调好样式。不需要时间轴,不需要模板,不需要学 prompt 工程。说"把左边那张换成暖色调",AI 就懂了。

从构思、角色设定、故事板、场景生成、细节打磨到导出——整个创作流程在一个画布上完成。底层是 LangGraph 驱动的 Agent,接了 Google Gemini / Vertex AI / OpenAI / Replicate 十几个模型(包括 Veo 3.1、Kling、Seedance、Sora 等),图片视频都能生。

开源,可以自己部署,数据全在你手里。

Loomic Canvas


✨ Features

🗣️ 对话式画布设计

  • 在无限画布上和 AI 对话,直接生成、编辑、排版
  • 多轮对话迭代,说"把左边那张图换成暖色调"就行
  • Agent 看得懂画布上下文,知道你在说哪个元素

🖼️ 图片生成(15+ 模型)

  • Google Imagen 4 / Gemini Image / Vertex AI
  • OpenAI DALL-E 3 / GPT Image
  • Replicate: Flux Kontext, SDXL, Recraft, Seedream...
  • 填自己的 API Key,按需组合

🎬 视频生成

  • Google Veo 3.1 / 3.0 / 2.0(文生视频、图生视频)
  • Replicate: Kling, Seedance, Wan, Sora, Hailuo...
  • 支持原生音频生成

🎨 无限画布

  • 基于 Excalidraw,自由拖拽、缩放、分层
  • AI 生成的素材直接落在画布上,不用手动导入
  • 导出、截图、分享

🏷️ Brand Kit

  • 设定品牌色、字体、Logo
  • AI 生成时自动遵循品牌规范
  • 集成 Google Fonts

💰 积分 & 付费

  • 内置积分系统,按量计费
  • LemonSqueezy 订阅集成
  • 免费用户每天有基础额度

🧩 可扩展技能系统

  • Markdown 定义 workspace 技能
  • 按项目扩展 Agent 能力

🏗️ Architecture

┌─────────────┐     WebSocket / REST      ┌─────────────────┐
│   Next.js   │ ◄──────────────────────►  │  Fastify API    │
│   Frontend  │                           │  + LangGraph    │
│  (Vercel)   │                           │  Agent (Railway) │
└─────────────┘                           └────────┬────────┘
                                                   │ PGMQ
                                          ┌────────▼────────┐
                                          │    Worker(s)     │
                                          │  Image / Video   │
                                          │  Generation      │
                                          │  (Railway)       │
                                          └────────┬────────┘
                                                   │
                                          ┌────────▼────────┐
                                          │    Supabase      │
                                          │  PostgreSQL      │
                                          │  Auth / Storage  │
                                          └─────────────────┘
ComponentTechRole
FrontendNext.js 15 + React 19 + Tailwind CSS 4Canvas UI, chat panel, workspace
API ServerFastify 5 + LangGraphAgent runtime, WebSocket, REST API
WorkerNode.js poll-based consumerAsync image/video generation jobs
DatabaseSupabase (PostgreSQL)Data, auth, storage, job queue (PGMQ)
CanvasExcalidraw 0.18Infinite canvas rendering
AILangChain + LangGraphAgent orchestration, tool calling
QueuePGMQReliable async job processing

🛠️ Tech Stack

LayerTechnology
MonorepoTurborepo + pnpm
FrontendNext.js 15 (App Router), React 19, Tailwind CSS 4
CanvasExcalidraw
BackendNode.js, Fastify 5, TypeScript
AI FrameworkLangChain 1.2, LangGraph 1.2
LLM ProvidersOpenAI, Google Gemini, Google Vertex AI
Image GenerationImagen, DALL-E, Replicate (13+ models)
Video GenerationGoogle Veo 3.x, Replicate (Kling, Sora, Seedance, etc.), Metaso MiniMax H3
DatabasePostgreSQL (Supabase)
AuthSupabase Auth (Magic Link + OAuth)
StorageSupabase Storage (S3-compatible)
QueuePGMQ (PostgreSQL native)
PaymentsLemonSqueezy
LintingBiome
TestingVitest

🚀 Getting Started

Prerequisites

  • Node.js >= 20
  • pnpm >= 10 (npm install -g pnpm)
  • Supabase CLI (brew install supabase/tap/supabase)
  • A Supabase project (free tier works)
  • At least one AI API key (Google or OpenAI)

1. Clone & Install

git clone https://github.com/fancyboi999/Loomic.git
cd Loomic
pnpm install

2. Set Up Supabase

Create a Supabase project at supabase.com, then apply migrations:

supabase link --project-ref YOUR_PROJECT_REF
supabase db push

This creates all required tables, RLS policies, storage buckets, and the PGMQ job queue.

3. Configure Environment

cp .env.example .env.local

Edit .env.local with your credentials:

# ── Required: Supabase ──────────────────────────────────────
SUPABASE_URL=https://your-project.supabase.co
SUPABASE_ANON_KEY=your-anon-key
SUPABASE_SERVICE_ROLE_KEY=your-service-role-key
SUPABASE_DB_URL=postgresql://postgres:pw@db.your-project.supabase.co:5432/postgres
SUPABASE_PROJECT_ID=your-project-ref
NEXT_PUBLIC_SUPABASE_URL=https://your-project.supabase.co
NEXT_PUBLIC_SUPABASE_ANON_KEY=your-anon-key

# ── Required: At least one AI provider ──────────────────────
LOOMIC_AGENT_MODEL=google:gemini-2.5-flash     # or openai:gpt-4o
GOOGLE_API_KEY=your-google-api-key             # for Gemini + Imagen + Veo
# OPENAI_API_KEY=your-openai-key               # alternative: OpenAI provider

# ── Optional: More generation providers ─────────────────────
# REPLICATE_API_TOKEN=                          # 13+ image/video models
# METASO_API_KEY=                               # MiniMax H3 video
# METASO_API_BASE=https://metaso.cn/api/minimax/
# GOOGLE_VERTEX_PROJECT=                        # Vertex AI (service account)
# GOOGLE_VERTEX_LOCATION=global                 # global for image/LLM
# GOOGLE_VERTEX_VIDEO_LOCATION=us-central1      # us-central1 for video
# GOOGLE_APPLICATION_CREDENTIALS=               # path to SA JSON

Note: See Environment Variables Reference for the full list.

4. Seed Test Accounts (optional)

自部署后,跑一下种子脚本就能直接体验各套餐功能,不需要接支付:

pnpm seed

脚本会在你自己的 Supabase 中创建 4 个测试账号:

EmailPasswordPlanCredits
free@test.loomic.comopensourceloomicFree50
starter@test.loomic.comopensourceloomicStarter1,200
pro@test.loomic.comopensourceloomicPro5,000
ultra@test.loomic.comopensourceloomicUltra15,000

These accounts are created in YOUR Supabase instance.

5. Start Development

pnpm dev

This starts all services simultaneously:

ServiceURLDescription
Webhttp://localhost:3000Next.js frontend
API Serverhttp://localhost:3001Fastify API + WebSocket
WorkerBackground job processor

Open http://localhost:3000 and start creating!


☁️ Deployment

Frontend → Vercel

# Connect your repo to Vercel, then set:
# Build Command:   pnpm --filter @loomic/shared build && pnpm --filter @loomic/web build
# Output Directory: apps/web/out
# Environment Variables: NEXT_PUBLIC_SUPABASE_URL, NEXT_PUBLIC_SUPABASE_ANON_KEY, NEXT_PUBLIC_SERVER_BASE_URL

Backend → Railway

The backend runs as two services from a single Docker image, differentiated by SERVICE_MODE:

API Service:

SERVICE_MODE=api
LOOMIC_SERVER_PORT=3001

Worker Service:

SERVICE_MODE=worker
WORKER_ID=railway-w1

Both services share the same environment variables (Supabase, AI keys, etc.).

The Dockerfile at apps/server/Dockerfile handles the multi-stage build.

Database → Supabase

# Apply all migrations
supabase db push

# Generate TypeScript types (after schema changes)
supabase gen types typescript --linked > packages/shared/src/supabase-types.ts

⚡ Worker Scaling

Each worker polls PGMQ and processes jobs concurrently. PGMQ guarantees exactly-once delivery.

# Local: start multiple workers
pnpm --filter @loomic/server dev:workers:2   # 2 workers (6 concurrent jobs)
pnpm --filter @loomic/server dev:workers:3   # 3 workers (9 concurrent jobs)
VariableDefaultDescription
WORKER_CONCURRENCY3Jobs per worker instance
WORKER_IMAGE_CONCURRENCY3Image generation slots
WORKER_VIDEO_CONCURRENCY2Video generation slots
WORKER_POLL_INTERVAL_MS2000Queue poll interval (ms)
WORKER_IDrandomWorker instance identifier

On Railway, scale by adding more worker service replicas.


📂 Project Structure

Loomic/
├── apps/
│   ├── web/                    # Next.js 15 frontend
│   │   ├── src/
│   │   │   ├── app/            #   App Router pages (workspace, canvas, auth, pricing)
│   │   │   ├── components/     #   React components (canvas, chat, credits, auth)
│   │   │   ├── hooks/          #   Custom React hooks
│   │   │   └── lib/            #   Client utilities & API helpers
│   │   └── public/             #   Static assets
│   │
│   └── server/                 # Fastify API + Worker
│       ├── src/
│       │   ├── agent/          #   LangGraph agent, tools, prompts
│       │   ├── generation/     #   Image & video generation providers
│       │   │   └── providers/  #     Google, OpenAI, Replicate, Vertex AI, Volces
│       │   ├── features/       #   Domain services
│       │   │   ├── credits/    #     Credit system & tier guard
│       │   │   ├── payments/   #     LemonSqueezy integration
│       │   │   ├── jobs/       #     PGMQ job queue & executors
│       │   │   ├── canvas/     #     Canvas CRUD
│       │   │   ├── chat/       #     Chat threads & messages
│       │   │   └── brand-kit/  #     Brand kit management
│       │   ├── http/           #   REST route handlers
│       │   ├── ws/             #   WebSocket handlers
│       │   ├── config/         #   Environment config loader
│       │   └── queue/          #   PGMQ client
│       └── Dockerfile          #   Multi-stage Docker build
│
├── packages/
│   ├── shared/                 # Shared types, contracts, credit config
│   ├── config/                 # Shared configuration
│   └── ui/                     # Shared UI components
│
├── skills/                     # Extensible workspace skills
│   ├── canvas-design/          #   Canvas design guidance
│   └── json-image-prompt/      #   Image prompt templates
│
├── supabase/
│   └── migrations/             # Database migrations (18 files)
│
├── .env.example                # Environment template
├── turbo.json                  # Turborepo config
├── pnpm-workspace.yaml         # pnpm workspace definition
└── package.json                # Root scripts

🔐 Environment Variables Reference

Required

VariableDescription
SUPABASE_URLSupabase project URL
SUPABASE_ANON_KEYSupabase anonymous key
SUPABASE_SERVICE_ROLE_KEYSupabase service role key (server-only)
SUPABASE_DB_URLPostgreSQL connection string (for PGMQ)
SUPABASE_PROJECT_IDSupabase project reference ID
NEXT_PUBLIC_SUPABASE_URLSupabase URL (exposed to frontend)
NEXT_PUBLIC_SUPABASE_ANON_KEYSupabase anon key (exposed to frontend)

AI Providers (at least one required)

VariableDescription
LOOMIC_AGENT_MODELAgent LLM model (e.g., google:gemini-2.5-flash)
GOOGLE_API_KEYGoogle AI API key (Gemini + Imagen + Veo)
OPENAI_API_KEYOpenAI API key (GPT + DALL-E)
OPENAI_API_BASECustom OpenAI-compatible endpoint
REPLICATE_API_TOKENReplicate API token (13+ models)
METASO_API_KEYMetaso API key (MiniMax H3 video)
METASO_API_BASEOptional Metaso H3 V2 base URL (default: https://metaso.cn/api/minimax/)

Google Vertex AI (optional)

VariableDescription
GOOGLE_APPLICATION_CREDENTIALSPath to service account JSON
GOOGLE_VERTEX_PROJECTGCP project ID
GOOGLE_VERTEX_LOCATIONRegion for image/LLM (global)
GOOGLE_VERTEX_VIDEO_LOCATIONRegion for video (us-central1)

Payments (optional)

VariableDescription
LEMONSQUEEZY_API_KEYLemonSqueezy API key
LEMONSQUEEZY_STORE_IDLemonSqueezy store ID
LEMONSQUEEZY_WEBHOOK_SECRETWebhook HMAC secret
LEMONSQUEEZY_VARIANT_*_MONTHLYPlan variant IDs (monthly)
LEMONSQUEEZY_VARIANT_*_YEARLYPlan variant IDs (yearly)

Server & Worker

VariableDefaultDescription
LOOMIC_SERVER_PORT3001API server port
LOOMIC_WEB_ORIGINhttp://localhost:3000Frontend origin (CORS)
LOOMIC_AGENT_BACKEND_MODEstateAgent persistence (state or filesystem)
LOOMIC_SKILLS_ROOT../../skillsPath to skills directory
WORKER_CONCURRENCY3Jobs per worker
WORKER_IMAGE_CONCURRENCY3Image generation slots
WORKER_VIDEO_CONCURRENCY2Video generation slots
GOOGLE_FONTS_API_KEYGoogle Fonts API (brand kit)

🤖 Supported Models

Image Generation

ProviderModels
Google (API Key)Imagen 4, Gemini 2.5 Flash Image, Gemini 3 Pro Image
Google (Vertex AI)Gemini 3 Pro Image, Gemini 3.1 Flash Image, Gemini 2.5 Flash Image
OpenAIDALL-E 3, GPT Image 1.5
ReplicateFlux Kontext Pro/Max, SDXL, Recraft V3, Seedream, and more

Video Generation

ProviderModels
Google (API Key)Veo 3.1, Veo 3.1 Fast, Veo 3.1 Lite, Veo 3.0, Veo 2.0
Google (Vertex AI)Veo 3.1, Veo 3.1 Fast, Veo 3.1 Lite, Veo 3.0, Veo 2.0
ReplicateKling V3, Seedance 1.5, Wan 2.6, Sora 2, Hailuo 2.3, and more
MetasoMiniMax H3(文生视频、首帧/首尾帧,4–15 秒,768P/2K)

Metaso H3 的项目积分按生成秒数统一计算:768P 为 10.2 积分/秒,2K 为 17 积分/秒;最终扣分向上取整。人民币价格仅作为前端参考区间展示,不参与积分余额扣减。

LLM (Agent)

ProviderModels
GoogleGemini 2.5 Flash, Gemini 2.5 Pro, Gemini 3 Flash
OpenAIGPT-4o, GPT-4o-mini, or any OpenAI-compatible endpoint

🤝 Contributing

Contributions welcome!

  1. Fork the repo
  2. Create a feature branch (git checkout -b feat/amazing-feature)
  3. Commit your changes
  4. Push to the branch (git push origin feat/amazing-feature)
  5. Open a Pull Request

📄 License

MIT


Built with ☕ and curiosity.

常见问题

What is Loomic?

Loomic is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by fancyboi999. Open-source AI canvas design agent — alternative to Lovart / CapCut Video Studio / Canva AI. Chat-driven image & video generation on an infinite canvas. It has 183 GitHub stars.

Is Loomic safe to use?

Yes. Loomic passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install Loomic?

Clone the repository with "git clone https://github.com/fancyboi999/Loomic" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is Loomic written in?

Loomic is primarily written in TypeScript. It is open-source under fancyboi999 on GitHub, so you can review or fork the full source.

Are there alternatives to Loomic?

Yes. SkillsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh Loomic against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情

claude-code

by anthropics

Claude Code is an agentic coding tool that lives in your terminal, understands your codebase, and helps you code faster by executing routine tasks, explaining complex code, and handling git workflows - all through natural language commands.

120,03119,897Shell
AI 智能体
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情