AI-powered content generator for Xiaohongshu (RedNote), helping you create high-quality posts effortlessly.
- Multi-Model Support: Compatible with DeepSeek, OpenAI, Anthropic, OpenRouter, and Gemini
- One-Click Generation: Simply input a topic to generate Xiaohongshu-style content
- History Tracking: Save and revisit your generated content
- Local Deployment: All data stored locally for privacy protection
- Node.js 18+
- npm or pnpm
- Clone the repository
git clone https://github.com/Layton2617/RedNote-AI.git
cd RedNote-AI- Install dependencies
npm install
# or using pnpm
pnpm install- Configure environment variables
Copy .env.example to .env and add your API keys:
cp .env.example .envEdit the .env file:
# AI API Keys (configure at least one)
DEEPSEEK_API_KEY=your_deepseek_api_key
OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
OPENROUTER_API_KEY=your_openrouter_api_key
GEMINI_API_KEY=your_gemini_api_key
# Server Configuration
PORT=3000
NODE_ENV=development- Start the server
npm run devVisit http://localhost:3000 to use the application.
- Frontend: React + TypeScript + Tailwind CSS + Vite
- Backend: Express + TypeScript
- Database: SQLite (better-sqlite3)
RedNote-AI/
├── client/ # Frontend code
│ ├── src/ # React components
│ └── public/ # Static assets
├── server/ # Backend code
│ ├── routes/ # API routes
│ └── lib/ # Utilities
├── shared/ # Shared types
└── .env.example # Environment variables template
# Build
npm run build
# Start
npm startMIT
AI 驱动的小红书内容生成工具,帮助你轻松创作高质量的小红书笔记。
- 多模型支持: 兼容 DeepSeek、OpenAI、Anthropic、OpenRouter、Gemini
- 一键生成: 输入主题即可自动生成小红书风格内容
- 历史记录: 保存并回顾生成的内容
- 本地部署: 数据存储在本地,保护隐私安全
- Node.js 18+
- npm 或 pnpm
- 克隆仓库
git clone https://github.com/Layton2617/RedNote-AI.git
cd RedNote-AI- 安装依赖
npm install
# 或使用 pnpm
pnpm install- 配置环境变量
复制 .env.example 为 .env 并填入 API 密钥:
cp .env.example .env编辑 .env 文件:
# AI API 密钥 (至少配置一个)
DEEPSEEK_API_KEY=your_deepseek_api_key
OPENAI_API_KEY=your_openai_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key
OPENROUTER_API_KEY=your_openrouter_api_key
GEMINI_API_KEY=your_gemini_api_key
# 服务器配置
PORT=3000
NODE_ENV=development- 启动服务
npm run dev访问 http://localhost:3000 即可使用。
- 前端: React + TypeScript + Tailwind CSS + Vite
- 后端: Express + TypeScript
- 数据库: SQLite (better-sqlite3)
# 构建
npm run build
# 启动
npm startMIT