npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fation-ren/gsap-composition

v1.0.8

Published

Claude Code skill — 从源内容到 GSAP 视频场景的完整管线

Readme

GSAP Composition

从源内容到视频场景的完整管线:源内容 → tts_script.md → HTML + GSAP 动画 → 视频渲染

GSAP 使用官方 GreenSock 库,提供三种渲染方案:连续画布(DOM)、滚动画布(Swipe-Slider)、纯 Canvas 2D(高可靠性长视频首选)。

安装

# 方式 A:npm exec(推荐)
npm exec --package=@fation-ren/gsap-composition -c "gsap-composition"

# 方式 B:npx(部分版本可能报 command not found)
npx @fation-ren/gsap-composition

该命令将 skill 文件安装到 ~/.claude/skills/gsap-composition/

更新

npx @fation-ren/gsap-composition@latest

手动安装

将此目录放入任意 .claude/skills/ 下即可作为 Claude Code 技能使用。

多平台环境安装

参考 news-to-video

依赖:

npm install gsap          # GSAP 动画库(必需)
pip install edge-tts      # TTS 语音生成(可选)
brew install ffmpeg        # 音频/视频处理(可选)
npx hyperframes            # HTML → MP4 渲染(可选,首次自动安装)

快速开始

# demo
使用技能gsap-composition,文案内容 doc/xxx.md 输出视频
# 视频问题直接描述,问题示例
1. 配音比视频落后一个场景,需要重新调整
2. 字幕没有显示
# 1. 环境检查
bash scripts/check-env.sh

# 2. 从源内容生成视频 HTML(由 Claude Code agent 执行)
#    Agent 会按 SKILL.md 工作流:源内容 → tts_script.md → HTML → 视频

# 3. 生成 TTS 音频(可选)
bash scripts/audio-tts.sh <项目目录> 8.0

# 4. 渲染视频(可选)
bash scripts/render.sh <项目目录> <TTS总时长>

目录结构

├── SKILL.md              — 主技能文件
├── scripts/              — 7 个可执行脚本
│   ├── check-env.sh      — 环境检查
│   ├── split-tts.js      — tts_script → txt 拆分
│   ├── audio-tts.sh      — TTS + 锚点表 + BGM
│   ├── parse-vtt.js      — VTT → JSON 字幕
│   ├── subtitle-split.py — 长字幕拆分 + 时序
│   ├── skeleton.js       — HTML 骨架(PRNG + timeline)
│   └── render.sh         — lint → render → 裁切
└── references/           — 8 个参考文档
    ├── tts-script.md     — TTS 脚本格式 + 框架速查
    ├── frameworks.md     — 4 框架页面映射
    ├── patterns.md       — 10 类动画模式 + 完整代码
    ├── audio-guide.md    — 音频生产完整指南
    ├── canvas-render.md  — Canvas 2D 框架 + helpers
    ├── subtitle-guide.md — 字幕拆分 + 时序对齐
    ├── hf-rules.md       — 视频渲染集成约束
    └── workflow-demo.md  — 完整制作流程 Demo

核心规则

  1. 场景时间对齐:HTML 场景时间取自 timing_reference.md 精确值,禁止使用预估时长
  2. TTS 先行:TTS 配音总时长 = 视频总时长,动画匹配音频
  3. Canvas 优先:长视频 (>2min) 或含复杂排版时,Canvas 立即模式比 DOM 更可靠

功能扩展

  1. 该功能和news-to-video技能有部分重叠。都是独立的技能。如果同时安装,直接让Claude Code进行skill检查
帮我检查skills,是否包含冲突和无限制注入导致的上下文滥用

按照指示去调整,SKIP软路由配置。

  1. 该功能只保留了视频生成部分,如果需要添加自媒体口语化,开头,结尾等部分,参考 news-to-video技能

  2. 有其他需求的可以提issues,技能会持续更新