LangChat Slides is an intelligent slide generation tool powered by Generative AI. Built by the LangChat Team.
Website Β· Preview Β· Documentation Β· GitHub Β· Report Bug
LangChat Pro is an enterprise-level AIGC (AI Generated Content) platform, a full-stack AI application system based on Spring Boot 3 + LangChain4j + Vue3 + VueFlow.
LangChat Slides is one of the flagship products of LangChat Pro, leveraging the powerful model capabilities of LangChat and the visualization engine of @antv/infographic. Users can simply input natural language descriptions to instantly generate clear, well-designed infographic slides.
LangChat Pro is an enterprise-grade AIGC application development platform commercial edition built on the Java ecosystem, providing enterprises with complete AI large model integration solutions. Built on Spring Boot 3 and Vue 3, it supports rapid development of intelligent knowledge bases, multimodal AI applications, and intelligent workflows, helping enterprises achieve AI-driven digital transformation.
Official Website: http://langchat.cn/
Open Source Edition: https://github.com/tycoding/langchat (Basic features)
Commercial Edition Consultation: Add WeChat LangchainChat (Note: Company Name + [Consultation Content])
- β‘οΈ Real-time Streaming Generation: What you see is what you get - slides render instantly as the AI thinks
- π¨ Intelligent Layout Design: Based on declarative visualization syntax, automatically adapts to the best layout,εε«ηΉηη PPT ζζ½
- π¬ Conversational Editing: Not satisfied? Just tell the AI "change the title to red" or "add a timeline" and see immediate results
- π§© Modular Components: Based on Shadcn UI and Tailwind CSS, featuring a modern, minimal, and premium user experience
- π€ Easy Export: One-click PDF export to easily share your creativity
- Quick Reports: Generate project progress report pages in minutes
- Knowledge Popularization: Transform complex concepts into timelines, lists, or hierarchy diagrams
- Data Presentation: Visual representation of structured data
- Framework: Vue 3 (Composition API) + TypeScript
- Styling: Tailwind CSS v4, shadcn-vue (UI Components)
- State Management: Pinia
- Icons: Lucide Vue Next
- Visualization:
@antv/infographic - Export:
html2canvas+jspdf
- OpenAI SDK: Direct frontend integration with streaming support
- Vercel AI SDK: Helper utilities (optional)
- Build Tool: Vite 7
- Package Manager: pnpm
- Code Quality: TypeScript strict mode, ESLint
langchat-slides/
βββ docs/ # Documentation
β βββ PRODUCT.md # Product introduction
β βββ REQUIREMENTS.md # Requirements & implementation
βββ public/ # Static assets
βββ src/
β βββ api/ # API integration
β β βββ ai.ts # OpenAI API wrapper
β βββ assets/
β β βββ prompts/ # System prompts
β βββ components/
β β βββ chat/ # Chat components
β β βββ slides/ # Slide components
β β βββ layout/ # Layout components
β β βββ ui/ # UI components (shadcn-vue)
β βββ composables/ # Vue composables
β βββ lib/ # Utility functions
β βββ locales/ # i18n translations
β βββ stores/ # Pinia stores
β βββ types/ # TypeScript definitions
βββ Dockerfile # Docker configuration
βββ docker-compose.yml # Docker Compose configuration
βββ package.json
βββ vite.config.ts
- Node.js >= 20.x
- pnpm >= 8.x
- OpenAI API Key
-
Clone the repository
git clone https://github.com/langchat/langchat-slides.git cd langchat-slides -
Install dependencies
pnpm install
-
Configure environment variables
cp .env.example .env # Edit .env and add your OpenAI API key -
Start development server
pnpm dev
Access at
http://localhost:5173 -
Build for production
pnpm build
-
Clone the repository
git clone https://github.com/langchat/langchat-slides.git cd langchat-slides -
Configure environment variables
cp .env.example .env # Edit .env and add your OpenAI API key -
Build the Docker image
docker-compose build
-
Start with Docker Compose
docker-compose up -d
The application will be available at
http://localhost:5173 -
View logs
docker-compose logs -f
-
Stop the service
docker-compose down
-
Build the Docker image
docker build -t langchat-slides . -
Run the container
docker run -d \ --name langchat-slides \ -p 5173:5173 \ -e VITE_OPENAI_API_KEY=your-api-key \ langchat-slides
Create a .env file in the root directory:
# OpenAI Configuration
VITE_OPENAI_API_KEY=sk-your-api-key-here
VITE_OPENAI_MODEL=gpt-4o
# Application Configuration
VITE_APP_LOCALE=en
VITE_APP_THEME=auto-
Describe your needs: Type your slide requirements in natural language
- Example: "Create a timeline showing the history of AI from 1950 to 2024"
-
Real-time generation: Watch as AI generates and renders slides in real-time
-
Iterative refinement: Chat with AI to make adjustments
- "Change the color theme to blue"
- "Add more details about machine learning"
- "Make the timeline horizontal"
-
Export: Click the export button to download as PDF
- Multi-page slides: Generate multiple slides with thumbnail navigation
- Customization: Modify layouts, colors, and content through conversation
- Export options: Save as PDF or image format
- Theme support: Light/Dark modes with multiple color themes
App.vue (Main Layout)
βββ Header
β βββ Logo
β βββ Theme Toggle
β βββ Language Switcher
βββ ResizablePanelGroup
β βββ Chat Area
β β βββ ChatContainer
β β β βββ ChatMessage (User/AI)
β β β βββ ChatInput
β β βββ ExampleGenerator
β βββ Slide Area
β βββ SlidesContainer
β β βββ SlidePreview
β β βββ SlideThumbnail
β βββ SlideToolbar
βββ SettingsDialog
User Input β ChatInput β OpenAI API (Stream)
β
Parse Markdown
β
Extract Infographic Syntax
β
Update Pinia Store
β
Reactive Render in SlidePreview
β
Export (html2canvas β jspdf)
We welcome contributions! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.
- Website: https://www.langchat.cn
- Email: langchat@outlook.com
- Team: LangChat Team
- OpenAI for providing powerful AI models
- AntV for the infographic visualization engine
- Vue.js for the reactive framework
- Shadcn for beautiful UI components
- Tailwind CSS for utility-first styling
Developed with β€οΈ by LangChat Team
