Token导航 LogoToken导航TokenDH.com
前端设计敏感数据unknown未标认证来源可访问许可证需确认审计未展示

decartdecart 前端

Agent Skill

decart 用于补充前端设计相关能力,适合在 Local Agent 中需要让 Agent 承接前端设计相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

816

周安装

34

下载量

272
Local Agent

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:decart(decart 前端)
来源仓库:https://docs.platform.decart.ai
仓库路径:decart
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

简介

该技能对接 Decart 平台的实时视频转换与图像处理能力。

  • 适用于需要 WebRTC 低延迟特效或批量视频生成的场景。
  • 通过文档站点获取信息,需设置 DECART_API_KEY 环境变量认证。
  • 建议优先查看 JavaScript/Python SDK 示例了解接口调用方式。
  • decart 属于前端设计类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Decart

Decart is an AI video/image platform centered on realtime transformation, with three APIs: Realtime (WebRTC, sub-500ms), Queue (async batch video generation/editing), and Process (sync image generation/editing). SDKs for JavaScript, Python, Android, and Swift. Auth via API key from platform.decart.ai — set DECART_API_KEY env var. Docs: https://docs.platform.decart.ai

When to use

  • Realtime video transformation — camera effects, video conferencing filters, AR/VR overlays, photo booths, live streaming
  • Batch video generation — marketing clips, social content, product demos, and animations from text or images
  • Batch video editing — edit existing videos with text prompts, reference images, or both
  • Video restyling — apply artistic styles to live streams or existing videos
  • Image generation/editing — mockups, thumbnails, creative assets, and image-to-image transformation
  • Avatar animation — virtual presenters, AI customer agents, talking heads animated with audio
  • Character transformation — transform user's live camera feed into characters (anime, fantasy, etc.)
  • Lip sync (Python only) — use the dedicated decart.lipsync.RealtimeLipsyncClient WebSocket client to synchronize lip movements to audio in realtime
  • Motion control — animate objects along precise trajectory paths
  • Framework integration — Vercel AI SDK, TanStack AI, LangChain.js all supported

API selection

You want to...APIMethodBest for
Transform live camera/videoRealtimeclient.realtime.connect()Interactive apps, below 500ms latency
Restyle live video with artistic stylesRealtimeclient.realtime.connect()Live style transfer
Sync lip movements to audio (Python only)RealtimeRealtimeLipsyncClient.connect()Dedicated WebSocket flow: send_audio(), send_video_frame(), get_synced_output()
Animate avatar with audioRealtimeclient.realtime.connect()Virtual presenters, no camera needed
Edit existing videoQueueclient.queue.submitAndPoll()Video transformation, unlimited duration
Restyle existing videoQueueclient.queue.submitAndPoll()Batch style transfer
Control object motion with trajectoryQueueclient.queue.submitAndPoll()Path-based animation
Edit an imageProcessclient.process()Sync results, thumbnails

Model selection

Use caseModelType
Character transform livelucy-2.1Realtime
Artistic style transfer livelucy-restyle-2Realtime
Lip sync (Python only)decart.lipsync.RealtimeLipsyncClientDedicated WebSocket client
Animate portrait with audiolive-avatarRealtime
Video editing (best quality)lucy-2.1Batch
Video restylinglucy-restyle-2Batch
Motion controllucy-motionBatch
Image editinglucy-image-2Process

Quick start patterns

Realtime (connect + transform)

const model = models.realtime("lucy-2.1");
const stream = await navigator.mediaDevices.getUserMedia({
  video: { frameRate: model.fps, width: model.width, height: model.height }
});
const rt = await client.realtime.connect(stream, {
  model,
  onRemoteStream: (s) => { videoEl.srcObject = s; }
});
await rt.set({ prompt: "Transform into anime character", image: refImage, enhance: true });

Queue (video editing)

const result = await client.queue.submitAndPoll({
  model: models.video("lucy-2.1"),
  data: videoFile,
  prompt: "Transform into anime style",
  resolution: "720p",
});

Process (image editing)

const image = await client.process({
  model: models.image("lucy-image-2"),
  data: imageFile,
  prompt: "Change the background to a beach",
  resolution: "720p",
});

Authentication

  • Server-side: Set DECART_API_KEY env var. The SDK picks it up automatically.
  • Client-side: Generate short-lived tokens on your backend via client.tokens.create(), then send token.apiKey to the frontend.
  • Token options: expiresIn (1–3600s, default 60s), allowedModels (restrict model access), constraints (e.g. realtime.maxSessionDuration).
  • NEVER expose permanent API keys in browser or mobile code.

Camera constraints

Always use model.fps, model.width, model.height from the SDK to avoid scaling artifacts.

Boundaries

What agents CAN do

  • Generate integration code for all three APIs (Realtime, Queue, Process)
  • Help select models, configure SDK, set up authentication
  • Write WebRTC realtime streaming code
  • Build framework integrations (Vercel AI SDK, TanStack AI, LangChain.js)
  • Troubleshoot connection, moderation, and billing issues

What agents CANNOT do

  • Create or manage Decart accounts, API keys, or billing
  • Access the Decart dashboard or platform settings
  • Test realtime connections (requires actual WebRTC + camera)
  • Verify credit balance or usage
  • Bypass content moderation policies

Common gotchas

  • NEVER expose permanent API keys in client code. Use client tokens for browser/mobile.
  • ALWAYS use model.fps, model.width, model.height for camera constraints. Mismatched resolution causes latency and artifacts.
  • ALWAYS call disconnect() and stop media tracks when done. Leaving connections open causes memory leaks and billing.
  • Catch errors from set(), setPrompt(), setImage(). Moderation rejections throw here.
  • Listen to connectionChange events. The SDK auto-reconnects, but your UI must reflect the state.
  • Keep enhance: true (default) unless you need exact prompt control.
  • Use submitAndPoll() for queue jobs. Don't manually poll faster than every 2 seconds.
  • Image editing (i2i) only works with Process API, not Queue API. Queue is for video only.
  • Realtime sessions end silently when credits run out. Listen for disconnect events.
  • Lip sync is not available through models.realtime("lipsync") in the main JavaScript, Android, or Swift SDKs. Use Python's decart.lipsync.RealtimeLipsyncClient instead.
  • For Lucy 2 character transform, use clear portrait photos with good lighting.
  • Lucy Edit v1 (lucy-clip) is legacy with a 5-second clip limit. Use lucy-2.1 for new projects (unlimited duration).
  • lucy-2.1 accepts a reference image, a text prompt, or both together for maximum control.

Verification checklist

  • API key stored in environment variable, never hardcoded
  • Client tokens generated on backend for any browser/mobile realtime usage
  • Camera resolution matches model's fps, width, height constraints
  • Error handlers on set(), setPrompt(), setImage() calls
  • connectionChange listener updates UI on disconnect/reconnect
  • disconnect() called and media streams stopped on cleanup
  • enhance: true enabled unless exact prompt control needed
  • Queue API for video editing, Process API for images
  • Moderation errors caught and shown to user gracefully
  • Tested on real device for mobile (simulator lacks WebRTC)

Resources

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Local Agent

88.35%
按下载量换算240

安全审计

暂无安全审计结果可展示。

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills