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

duan-slides

v1.0.0

Published

AI演示文稿全流程制作:内容结构化→设计选型→AI插画/HTML构建→PPTX导出

Downloads

125

Readme

duan-slides

AI 演示文稿全流程制作工具:内容结构化 → 设计选型 → AI 插画/HTML 构建 → PPTX 导出。

支持 17 种视觉风格(漫画/极简/数据叙事/国风),可编辑 HTML 与全 AI 视觉两条路径自由选择。

功能

  • html2pptx: 将 HTML 幻灯片转换为 PPTX
  • create-slides: 从图片创建 PPT
  • gen-image: 使用 Gemini AI 生成图片

安装

# 使用 npx 直接运行(无需安装)
npx duan-slides help

# 或全局安装
npm install -g duan-slides

使用方法

1. HTML 转 PPTX

npx duan-slides html2pptx slide-01.html slide-02.html -o output.pptx

2. 图片转 PPT

npx duan-slides create-slides slide-01.png slide-02.png -o output.pptx

3. AI 图片生成

# 设置 API Key
export GEMINI_API_KEY="your-api-key"

# 生成图片
npx duan-slides gen-image --prompt "A beautiful sunset" --filename sunset.png

# 使用参考图生成
npx duan-slides gen-image -i style-sample.png --prompt "Same style, different content" --filename output.png

视觉风格

支持 17 种风格:

  • Snoopy 漫画、Neo-Pop、浮世绘、敦煌壁画
  • xkcd 白板、Neo-Brutalism、Ligne Claire
  • NYT Magazine、Pentagram 编辑、Fathom 数据
  • 苏联构成主义、孔版印刷、像素画
  • 温暖叙事、、学習漫画、Takram 思辨

详见 references/proven-styles-gallery.md

环境要求

  • Node.js >= 18
  • Python >= 3.10
  • uv (推荐) 或 pip

License

MIT