Documentation Index
Fetch the complete documentation index at: https://docs.ag-kit.dev/llms.txt
Use this file to discover all available pages before exploring further.
CLI Templates
Pre-built project templates for different use cases.
Available Templates
React Template
Full-stack React application with AG-Kit integration.
ag-kit init my-app --template react
Features:
- React 18 with TypeScript
- Vite build tool
- AG-Kit runtime integration
- Example chat interface
- Hot module replacement
Mini Program Template
WeChat Mini Program with AG-Kit components.
ag-kit init my-miniprogram --template miniprogram
Features:
- WeChat Mini Program structure
- AG-Kit UI components
- TypeScript support
- Example chat page
- WeChat API integration
Node.js Template
Backend API server with AG-Kit adapters.
ag-kit init my-api --template node
Features:
- Express.js server
- AG-Kit adapters
- RESTful API endpoints
- WebSocket support
- Environment configuration
Template Customization
Custom Templates
Create your own project templates:
# Create template directory
mkdir -p ~/.ag-kit/templates/my-template
# Add template files
cp -r my-project/* ~/.ag-kit/templates/my-template/
# Use custom template
ag-kit init my-project --template my-template
Template Structure
template/
├── package.json
├── src/
│ ├── index.js
│ └── components/
├── public/
│ └── index.html
├── .gitignore
└── README.md
Framework Integration
LangGraph Template
ag-kit init my-agent --template react --framework langgraph
LangChain Template
ag-kit init my-agent --template react --framework langchain
Dify Template
ag-kit init my-agent --template react --framework dify