
Slidev
CLI用 Markdown 写幻灯片,内置代码高亮、LaTeX 公式与 Mermaid 图,slidev export 可导出 PDF、PPTX 或 PNG。导出前需在项目中安装 playwright-chromium。
Presentation slides for developers 🧑💻👩💻👨💻
|
Made possible by my Sponsor Program 💖 |
Features
- 📝 Markdown-based - focus on content and use your favorite editor
- 🧑💻 Developer Friendly - built-in code highlighting, live coding, etc.
- 🎨 Themable - theme can be shared and used with npm packages
- 🌈 Stylish - on-demand utilities via UnoCSS.
- 🤹 Interactive - embedding Vue components seamlessly
- 🎙 Presenter Mode - use another window, or even your phone to control your slides
- 🎨 Drawing - draw and annotate on your slides
- 🧮 LaTeX - built-in LaTeX math equations support
- 📰 Diagrams - creates diagrams using textual descriptions with Mermaid
- 🌟 Icons - access to icons from any icon set directly
- 💻 Editor - integrated editor, or the VSCode extension
- 🎥 Recording - built-in recording and camera view
- 📤 Portable - export into PDF, PNGs, or PPTX
- ⚡️ Fast - instant reloading powered by Vite
- 🛠 Hackable - using Vite plugins, Vue components, or any npm packages
Getting Started
Try it Online ⚡️
Init Project Locally
Install Node.js >= 22.12.0 and run the following command:
npm init slidev
Documentation: English | 中文文档 | Français | Español | Русский | Português-BR
Discord: chat.sli.dev
For a full example, you can check the demo folder, which is also the source file for my previous talk.
Tech Stack
- Vite - An extremely fast frontend tooling
- Vue 3 powered Markdown - Focus on the content while having the power of HTML and Vue components whenever needed
- UnoCSS - On-demand utility-first CSS engine, style your slides at ease
- Shiki, Monaco Editor - First-class code snippets support with live coding capability
- RecordRTC - Built-in recording and camera view
- VueUse family -
@vueuse/core,@vueuse/motion, etc. - Iconify - Icon sets collection.
- Drauu - Drawing and annotations support
- KaTeX - LaTeX math rendering.
- Mermaid - Textual Diagrams.
Sponsors
This project is made possible by all the sponsors supporting my work:
License
MIT License © 2021 Anthony Fu
相關資源

Hugo
CLI用 Go 编写的静态站点生成器,把 Markdown 内容在数秒内构建成文档站、博客或落地页,自带本地预览服务器以及图片、CSS 与 JS 处理管线。
gohugoio/hugo90.1k
mdBook
CLI把一组 Markdown 章节编译成带目录、全文搜索和主题切换的在线书籍,适合写作者连载手册、老师整理讲义和课程教材;agent 可直接改章节文件再构建预览。Rust 官方团队维护,可下载预编译程序,或装好 Rust 工具链后用 cargo 安装。
rust-lang/mdBook22.2k
VitePress
SkillVitePress 静态站点生成器的参考:配置、命令行、文件路由、Markdown 扩展与在 Markdown 中使用 Vue 组件、构建期数据加载、动态路由、默认主题配置与自定义主题、多语言、SSR 兼容,以及部署到 GitHub Pages、Netlify、Vercel 等。基于 VitePress 2 alpha,由 Anthony Fu 从官方文档生成。
antfu/skills6k
Pandoc
CLI通用文档格式转换器,在 Markdown、Word、HTML、LaTeX、EPUB 等几十种格式之间互转,支持模板、引文与 Lua 过滤器。默认借助 LaTeX 生成 PDF,需另行安装。
jgm/pandoc46.6k
anydoc
CLIFirecrawl 出品,在本地把 Word、PPT、Excel、PDF、EPUB、RTF 等文档毫秒级转成干净的 Markdown,保留标题、表格、脚注与公式,方便 agent 读合同、讲义、报表等附件。需安装 Node.js;扫描件可选用 Firecrawl 云端 OCR(会上传整份文件)。
firecrawl/anydoc22.9k
Vale
CLI按风格指南检查文档用语的写作 linter:可套用 Microsoft、Google 等现成规则包或自写 YAML 规则,解析 Markdown、AsciiDoc 等格式后再检查,完全离线,可接入编辑器与 CI。
vale-cli/vale6.3k