π¦ ClawHub
Horse Sticker Maker
by @jiafar
Create and deploy a festive Chinese New Year (Year of the Horse 2026) animated GIF sticker maker web app. Use when the user wants to generate custom horse-th...
TERMINAL
clawhub install horse-sticker-makerπ About This Skill
name: horse-sticker-maker description: Create and deploy a festive Chinese New Year (Year of the Horse 2026) animated GIF sticker maker web app. Use when the user wants to generate custom horse-themed blessing stickers, deploy a sticker generator H5 page, or create WeChat-compatible animated GIF stickers with gold horse animation on red background. Supports custom text input, 6-frame gold horse galloping animation, Canvas-based client-side GIF rendering via gif.js, and Vercel deployment.
Horse Sticker Maker
Generate a web app that creates custom animated GIF stickers for Chinese New Year (Year of the Horse 2026).
What It Does
Quick Start
1. Copy the template project:
cp -r /assets/horse-blessing-template ./horse-blessing
cd horse-blessing
npm install
2. Run locally:
npm run dev
# Open http://localhost:3000/sticker
3. Deploy to Vercel:
vercel --prod --yes
Project Structure
horse-blessing/
βββ app/
β βββ page.tsx # Main page (AI-generated blessing with poem)
β βββ sticker/page.tsx # Sticker maker (Canvas GIF generator)
β βββ api/generate/ # AI poem + image generation API
β βββ api/sticker/ # Sticker API
β βββ layout.tsx # Root layout (red theme)
βββ public/
β βββ horse-frame-[1-6].png # 6-frame transparent gold horse
β βββ horse-transparent.png # Static horse fallback
β βββ gif.worker.js # gif.js web worker
βββ package.json
βββ tailwind.config.ts
Key Technical Details
GIF Generation (Client-Side)
gif.js loaded via CDN (Script from next/script)Image elements, drawn via drawImageHorse Frame Assets
public/horse-frame-[1-6].pngsharpCustomization Points
'η«ι©¬ε θͺ' in sticker/page.tsxconst size = 240 (keep β€240 for WeChat)const frames = 18public/horse-frame-*.pngWeChat Sticker Compatibility
Dependencies
{
"next": "^14.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"sharp": "latest",
"gif-encoder-2": "^1.0.5",
"html2canvas-pro": "^1.6.7"
}
External CDN: gif.js@0.2.0 (loaded at runtime for client-side GIF encoding)
π‘ Examples
1. Copy the template project:
cp -r /assets/horse-blessing-template ./horse-blessing
cd horse-blessing
npm install
2. Run locally:
npm run dev
# Open http://localhost:3000/sticker
3. Deploy to Vercel:
vercel --prod --yes