https://scaffold-agent-homepage.leeduckgo.com/
A configurable scaffold for building AI Agent homepages with a built-in chat interface.
This project provides a ready-to-use template for deploying your own AI Agent Homepage. It includes an agent profile page, a free-tier chatbot powered by Deep Chat, a premium-tier section, and a Deno backend server.
- ⚙️ README-driven Configuration — All app parameters live in a single Markdown file
- 🤖 AI Agent Profile — Display agent information, avatar, and description
- 🆓 Free Tier — Built-in chatbot access for all users
- 💰 Premium Tier — Paid / advanced content section
- 🎨 Modern UI — Built with Next.js, Tailwind CSS, and shadcn/ui
All runtime parameters for the frontend app are defined in the Configuration section of main/README.md.
To customise your Agent Homepage, simply edit the values in
main/README.md— the app reads them automatically at build / runtime. No code changes required.如需自定义你的 Agent 主页,只需编辑
main/README.md中 Configuration 部分的 value 值,程序会自动读取,无需修改任何代码。
See main/README.md → Configuration for the full parameter list.
scaffold-agent-homepage/
├── main/ # Next.js frontend application
│ ├── app/ # Next.js app router pages
│ ├── components/ # React components
│ ├── lib/ # Utilities (README config loader, etc.)
│ ├── hooks/ # Custom React hooks
│ ├── public/ # Static assets (avatar, icons)
│ └── README.md # ⭐ Frontend configuration file
│
├── deno-server/ # Deno backend server
│ ├── main.tsx # Server entry point
│ ├── apidoc.md # API documentation
│ └── README.md # Server documentation
│
└── LICENSE # Apache 2.0 License
- Node.js 18+ and npm
- Deno 1.37+ (for backend server)
cd deno-server
# Set environment variables
export DASHSCOPE_API_KEY="sk-your-key"
export PORT=4003 # Optional, defaults to 4003
# Run the server
deno run --allow-net --allow-read --allow-env main.tsxSee deno-server/README.md for detailed server documentation.
cd main
# Install dependencies
npm install
# Start development server
npm run devThe frontend will start on http://localhost:3000.
- Framework: Next.js 15 with App Router
- UI: Tailwind CSS + shadcn/ui components
- Chat: Deep Chat (web component)
- Config: Parsed at runtime from
main/README.md
- Runtime: Deno
- Framework: Oak
- CORS: oakCors with full cross-origin support
- Push code to GitHub
- Import project in Vercel
- Deploy automatically
- Push code to GitHub
- Create project on Deno Deploy
- Set environment variables
- Deploy from
deno-server/main.tsx
- Frontend Config: main/README.md
- API Documentation: deno-server/apidoc.md
- Server README: deno-server/README.md
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the Apache License 2.0 — see the LICENSE file for details.
Created by leeduckgo@NonceGeek
Built with ❤️ using Next.js, Deno, and Deep Chat