Claudable:基于 Next.js 框架的网站生成器

2025年09月15日 23:29:45
12002
nextjs 网站生成 CLI Claude Claudable Code AI
Claudable opactorai/Claudable

把你用自然语言描述的应用想法,直接变成可以运行的网站代码。Claudable 背后依赖强大的 AI 编程助手,主要是 Claude Code,也支持 Cursor CLI 来理解你的需求并生成代码。你不需要懂复杂的 API 设置、数据库配置或者部署流程:用简单的语言告诉 Claudable 你想要什么应用。

项目大小 210.62 KB
涉及语言 TypeScript 54.63% Python 42.68% JavaScript 1.65% CSS 0.89% HTML 0.13% Shell 0.03%
许可协议 LICENSE
仓库同步说明
  • • 同步需要仓库写入权限以创建目标仓库
  • • 使用平台账号授权登录后将同步到您平台下的个人仓库

Claudable

Claudable

Connect CLI Agent • Build what you want • Deploy instantly

Powered by OPACTOR

Join Discord Community OPACTOR Website Follow Aaron

What is Claudable?

Claudable is a powerful Next.js-based web app builder that combines Claude Code’s (Cursor CLI also supported!) advanced AI agent capabilities with Lovable’s simple and intuitive app building experience. Just describe your app idea - “I want a task management app with dark mode” - and watch as Claudable instantly generates the code and shows you a live preview of your working app. You can deploy your app to Vercel and integrate database with Supabase for free.

This open-source project empowers you to build and deploy professional web applications easily for free.

How to start? Simply login to Claude Code (or Cursor CLI), start Claudable, and describe what you want to build. That’s it. There is no additional subscription cost for app builder.

Features

Claudable Demo
  • Powerful Agent Performance: Leverage the full power of Claude Code and Cursor CLI Agent capabilities with native MCP support
  • Natural Language to Code: Simply describe what you want to build, and Claudable generates production-ready Next.js code
  • Instant Preview: See your changes immediately with hot-reload as AI builds your app
  • Zero Setup, Instant Launch: No complex sandboxes, no API key, no database headaches - just start building immediately
  • Beautiful UI: Generate beautiful UI with Tailwind CSS and shadcn/ui
  • Deploy to Vercel: Push your app live with a single click, no configuration needed
  • GitHub Integration: Automatic version control and continuous deployment setup
  • Supabase Database: Connect production PostgreSQL with authentication ready to use
  • Automated Error Detection: Detect errors in your app and fix them automatically

Demo Examples

Codex CLI Example

Codex CLI Demo

Qwen Code Example

Qwen Code Demo

Supported AI Coding Agents

Claudable supports multiple AI coding agents, giving you the flexibility to choose the best tool for your needs:

  • Claude Code - Anthropic’s advanced AI coding agent
  • Codex CLI - OpenAI’s lightweight coding agent
  • Cursor CLI - Powerful multi-model AI agent
  • Gemini CLI - Google’s open-source AI agent
  • Qwen Code - Alibaba’s open-source coding CLI

Claude Code (Recommended)

Claude Code - Anthropic’s advanced AI coding agent with Claude Opus 4.1

  • Features: Deep codebase awareness, MCP support, Unix philosophy, direct terminal integration
  • Context: Native 256K tokens
  • Pricing: Included with ChatGPT Plus/Pro/Team/Edu/Enterprise plans
  • Installation:
    1
    2
    npm install -g @anthropic-ai/claude-code
    claude  # then > /login

Codex CLI

Codex CLI - OpenAI’s lightweight coding agent with GPT-5 support

  • Features: High reasoning capabilities, local execution, multiple operating modes (interactive, auto-edit, full-auto)
  • Context: Varies by model
  • Pricing: Included with ChatGPT Plus/Pro/Business/Edu/Enterprise plans
  • Installation:
    1
    2
    npm install -g @openai/codex
    codex  # login with ChatGPT account

Cursor CLI

Cursor CLI - Powerful AI agent with access to cutting-edge models

  • Features: Multi-model support (Anthropic, OpenAI, Gemini), MCP integration, AGENTS.md support
  • Context: Model dependent
  • Pricing: Free tier available, Pro plans for advanced features
  • Installation:
    1
    2
    curl https://cursor.com/install -fsS | bash
    cursor-agent login

Gemini CLI

Gemini CLI - Google’s open-source AI agent with Gemini 2.5 Pro

  • Features: 1M token context window, Google Search grounding, MCP support, extensible architecture
  • Context: 1M tokens (with free tier: 60 req/min, 1000 req/day)
  • Pricing: Free with Google account, paid tiers for higher limits
  • Installation:
    1
    2
    npm install -g @google/gemini-cli
    gemini  # follow authentication flow

Qwen Code

Qwen Code - Alibaba’s open-source CLI for Qwen3-Coder models

  • Features: 256K-1M token context, multiple model sizes (0.5B to 480B), Apache 2.0 license
  • Context: 256K native, 1M with extrapolation
  • Pricing: Completely free and open-source
  • Installation:
    1
    2
    npm install -g @qwen-code/qwen-code@latest
    qwen --version

Technology Stack

Database & Deployment:

  • Supabase: Connect production-ready PostgreSQL database directly to your project.
  • Vercel: Publish your work immediately with one-click deployment

There is no additional subscription cost and built just for YOU.

Prerequisites

Before you begin, ensure you have the following installed:

  • Node.js 18+
  • Python 3.10+
  • Claude Code or Cursor CLI (already logged in)
  • Git

Quick Start

Get Claudable running on your local machine in minutes:

1
2
3
4
5
6
7
8
9
# Clone the repository
git clone https://github.com/opactorai/Claudable.git
cd Claudable
 
# Install all dependencies (Node.js and Python)
npm install
 
# Start development servers
npm run dev

Your application will be available at:

Note: Ports are automatically detected. If the default ports are in use, the next available ports will be assigned.

Setup

Manual Setup

You can also manually setup the project.

1
2
3
4
5
6
7
8
9
# Frontend setup
cd apps/web
npm install
 
# Backend setup
cd ../api
python3 -m venv .venv
source .venv/bin/activate  # On Windows: .venv\Scripts\activate
pip install -r requirements.txt

The npm install command automatically handles the complete setup:

  1. Port Configuration: Detects available ports and creates .env files
  2. Node.js Dependencies: Installs packages including workspace dependencies
  3. Python Environment: Creates virtual environment in apps/api/.venv
  4. Python Dependencies: Installs packages using uv (if available) or pip
  5. Database Setup: SQLite database auto-creates at data/cc.db on first run

Additional Commands

1
2
3
4
5
6
7
8
9
10
11
12
npm run db:backup   # Create a backup of your SQLite database
                    # Use when: Before major changes or deployments
                    # Creates: data/backups/cc_backup_[timestamp].db
 
npm run db:reset    # Reset database to initial state
                    # Use when: Need fresh start or corrupted data
                    # Warning: This will delete all your data!
 
npm run clean       # Remove all dependencies and virtual environments
                    # Use when: Dependencies conflict or need fresh install
                    # Removes: node_modules/, apps/api/.venv/, package-lock.json
                    # After running: npm install to reinstall everything

Usage

Getting Started with Development

  1. Connect Claude Code: Link your Claude Code CLI to enable AI assistance
  2. Describe Your Project: Use natural language to describe what you want to build
  3. AI Generation: Watch as the AI generates your project structure and code
  4. Live Preview: See changes instantly with hot reload functionality
  5. Deploy: Push to production with Vercel integration

API Development

Access the interactive API documentation at http://localhost:8080/docs to explore available endpoints and test API functionality.

Database Operations

Claudable uses SQLite for local development and can be configured for PostgreSQL in production. The database automatically initializes on first run.

Troubleshooting

Port Already in Use

The application automatically finds available ports. Check the .env file to see which ports were assigned.

Installation Failures

1
2
3
# Clean all dependencies and retry
npm run clean
npm install

Permission Errors (macOS/Linux)

If you encounter permission errors:

1
2
3
4
cd apps/api
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Claude Code Permission Issues (Windows/WSL)

If you encounter the error: Error output dangerously skip permissions cannot be used which is root sudo privileges for security reasons

Solution:

  1. Do not run Claude Code with sudo or as root user
  2. Ensure proper file ownership in WSL:
    1
    2
    3
    4
    5
    # Check current user
    whoami
     
    # Change ownership of project directory to current user
    sudo chown -R $(whoami):$(whoami) ~/Claudable
  3. If using WSL, make sure you’re running Claude Code from your user account, not root
  4. Verify Claude Code installation permissions:
    1
    2
    # Reinstall Claude Code without sudo
    npm install -g @anthropic-ai/claude-code --unsafe-perm=false

Integration Guide

GitHub

Get Token: GitHub Personal Access Tokens → Generate new token (classic) → Select repo scope

Connect: Settings → Service Integrations → GitHub → Enter token → Create or connect repository

Vercel

Get Token: Vercel Account Settings → Create Token

Connect: Settings → Service Integrations → Vercel → Enter token → Create new project for deployment

Supabase

Get Credentials: Supabase Dashboard → Your Project → Settings → API

  • Project URL: https://xxxxx.supabase.co
  • Anon Key: Public key for client-side
  • Service Role Key: Secret key for server-side

License

MIT License.

Upcoming Features

These features are in development and will be opened soon.

  • New CLI Agents - Trust us, you’re going to LOVE this!
  • Checkpoints for Chat - Save and restore conversation/codebase states
  • Advanced MCP Integration - Native integration with MCP
  • Enhanced Agent System - Subagents, AGENTS.md integration
  • Website Cloning - You can start a project from a reference URL.
  • Various bug fixes and community PR merges

We’re working hard to deliver the features you’ve been asking for. Stay tuned!

Star History

Star History Chart


                

                

免责声明 © 2026 - 虚宝阁

本站部分源码来源于网络,版权归属原开发者,用户仅获得使用权。依据《计算机软件保护条例》第十六条,禁止:

  • 逆向工程破解技术保护措施
  • 未经许可的分发行为
  • 去除源码中的原始版权标识

※ 本站源码仅用于学习和研究,禁止用于商业用途。如有侵权, 请及时联系我们进行处理。

侵权举报请提供: 侵权页面URL | 权属证明模板

响应时效:收到完整材料后48小时内处理

相关推荐

Stable Diffusion AI绘画界的 扛把子

Stable Diffusion AI绘画界的 扛把子

提到AI画图,没人能绕开Stable Diffusion!由Stability AI开源,支持文本生成图像、图像修复、风格迁移,关键是完全免费商用(非商用更没问题),普通电脑装个WebUI就能玩到飞起。

41831 2025-09-13
n8n: AI自动化工作流工具

n8n: AI自动化工作流工具

基于节点的自动化工作流工具,能帮助用户轻松创建和管理复杂的自动化流程,无需编写大量代码。并且内置了AI能力,支持 400+ 应用和服务!

146989 2025-09-26
LLaMA-Meta家的平民大模型

LLaMA-Meta家的平民大模型

这是Meta(脸书母公司)开源的大语言模型家族,从70亿参数到700亿参数应有尽有,主打一个“轻量能跑、开源免费”。普通人下载后,在消费级显卡上就能微调,不用再眼巴巴看着大厂模型流口水~

58804 2025-09-13
Whisper-OpenAI的语音魔术师

Whisper-OpenAI的语音魔术师

OpenAI开源的语音识别模型,能把语音转文字、文字转语音,还支持99种语言!关键是准确率超高,连带口音的中文、英文都能轻松识别,简直是会议记录、视频字幕的救星。

89153 2025-09-13
Seelen-UI: 高度可定制的 Windows 桌面美化工具

Seelen-UI: 高度可定制的 Windows 桌面美化工具

一款免费开源的 Windows 桌面增强工具,专注于高度自定义和效率提升。它采用 Rust 语言开发,结合 Tauri 框架与 Web 技术,支持窗口平铺管理、应用启动器、Dock、任务栏、动态壁纸、插件扩展等功能。

13691 2025-10-04
presenton AI PPT 生成器

presenton AI PPT 生成器

一个免费的、能完全在你自己电脑上运行的 AI PPT 生成工具。和那些必须联网、依赖服务商云服务的工具不同,Presenton 的核心优势在于本地优先和开放可控。 你的数据你做主, 所有生成演示文稿的过程都在你的电脑上完成。这意味着你的内容创意、上传的文件等敏感信息,无需上传到第三方云端服务器,隐私更有保障。自由选择AI模型,它不绑定任何一家 AI 服务商。你可以灵活选择。

2412 2025-09-14
YOLOv8-目标检测界的闪电侠

YOLOv8-目标检测界的闪电侠

YOLO系列的最新版,主打“又快又准”的目标检测。能瞬间识别图片/视频里的人、车、动物、物体,在普通显卡上就能实时处理视频流,工业级场景都在用它。

47034 2025-09-13
fastapi: Python web api 框架

fastapi: Python web api 框架

一个基于 Python 3.6+ 版本的异步 WEB 应用框架,使用 Python 类型注解构建 web API 。主要特点有: 高性能:与 Node JS 和 Go 相当。 编码快:将开发功能的速度提高 2~3 倍。 Bug少:减少大约 40% 的由开发人员导致的错误。 直观:强大的编辑器支持,可智能感知和补全代码。 简单:易于学习和使用,减少文档阅读时间。 简短:尽量减少代码重复。 健壮:获得可用于生产的代码,具有自动交互文档。 基于标准:基于 OpenAPI 和 JSON Schema 。

90539 2025-09-16
scira: AI 驱动搜索引擎

scira: AI 驱动搜索引擎

极简的 AI 驱动搜索引擎,支持引用来源

10827 2025-10-20
langchainjs: 用语言模型构建模块化AI应用

langchainjs: 用语言模型构建模块化AI应用

帮助你用大型语言模型(如 GPT)构建模块化智能应用。 想做 AI 代理?做会读 PDF 的问答机器人?轻松搞定。 简直是生成式 AI 的乐高积木。

15824 2025-10-01

仓库下载

gitee

GitHub 下载代理

文件信息

文件名
文件大小
文件类型
代理耗时