whop-dev
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWhop App Development
Whop 应用开发
Build apps that run inside the Whop platform - handling authentication, payments, webhooks, and UI all with best practices.
构建可在Whop平台内运行的应用——遵循最佳实践处理认证、支付、Webhook及UI相关事宜。
What Makes a Good Whop App (Suggestions)
优秀Whop应用的特质(建议)
Guidelines for app success (not requirements, user requests take priority):
| Principle | Description |
|---|---|
| Empower Creators | Give customization so each whop feels unique |
| Drive Discovery | Make the app have some kind of sharing feature or posting potential to allow users to attrach more users |
| Price Sustainably | Make money without gouging creators or customers |
| Keep UX Simple | Core action obvious, minimal clicks |
Details: app-design-principles.md
应用成功的指导原则(非强制要求,用户需求优先):
| 原则 | 说明 |
|---|---|
| 赋能创作者 | 提供自定义功能,让每个Whop应用都独具特色 |
| 促进发现 | 应用需具备分享功能或内容发布潜力,帮助用户吸引更多流量 |
| 可持续定价 | 在盈利的同时,避免过度收费创作者或客户 |
| 简化用户体验 | 核心操作清晰明了,尽量减少点击次数 |
详情: app-design-principles.md
When to Use
适用场景
Empty repo / new project:
- "Build me a Whop app" → Start with app-from-scratch.md
- Guides through discovery, setup, and building from nothing
Existing Whop project:
- Jump directly to specific rules in Quick Reference below
- Adding payments → payments-checkout.md
- Adding auth → auth-verify-token.md
- SDK issues → sdk-setup.md
空仓库 / 新项目:
- 「为我构建一个Whop应用」→ 从app-from-scratch.md开始
- 引导用户完成需求探索、环境搭建及从0到1的应用构建
现有Whop项目:
- 直接跳转到下方快速参考中的具体规则
- 添加支付功能 → payments-checkout.md
- 添加认证功能 → auth-verify-token.md
- SDK相关问题 → sdk-setup.md
Companion Skills (Install First)
配套技能(需先安装)
whop-dev focuses on Whop-specific patterns. For complete app development, install these companion skills:
bash
npx skills add https://github.com/anthropics/skills --skill frontend-design && \
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-best-practices && \
npx skills add https://github.com/supabase/agent-skills --skill supabase-postgres-best-practices && \
npx skills add https://github.com/vercel-labs/agent-skills --skill web-design-guidelines| Skill | Delegates To | When |
|---|---|---|
| UI creation | Building components, pages, visual design |
| Performance | React optimization, data fetching, bundles |
| Database | Queries, schema, indexes, RLS |
| UX review | Accessibility, design auditing |
IMPORTANT: When starting a new project or build-from-scratch flow, install companion skills FIRST before scaffolding. This enables whop-dev to hand off specialized work to expert skills.
See companion-skills.md for detailed handoff patterns.
whop-dev 专注于Whop特有的开发模式。如需完成完整的应用开发,请安装以下配套技能:
bash
npx skills add https://github.com/anthropics/skills --skill frontend-design && \
npx skills add https://github.com/vercel-labs/agent-skills --skill vercel-react-best-practices && \
npx skills add https://github.com/supabase/agent-skills --skill supabase-postgres-best-practices && \
npx skills add https://github.com/vercel-labs/agent-skills --skill web-design-guidelines| 技能 | 委托方向 | 适用场景 |
|---|---|---|
| UI创建 | 组件开发、页面构建、视觉设计 |
| 性能优化 | React优化、数据获取、打包优化 |
| 数据库处理 | 查询、 schema设计、索引、RLS |
| UX评审 | 无障碍设计、设计审计 |
重要提示:在启动新项目或从零开始构建流程前,请先安装配套技能。这样whop-dev才能将专业工作委托给对应的专家技能处理。
查看companion-skills.md获取详细的任务委托模式。
How to Use
使用方法
Starting fresh (empty repo)? → Follow Build From Scratch - guided flow from idea to deployed app.
Existing project? → Jump to Quick Reference for specific features.
从零开始(空仓库)? → 遵循「从零开始构建」流程 - 从创意到部署的引导式开发。
现有项目? → 跳转到「快速参考」获取特定功能的实现指南。
Build From Scratch
从零开始构建
For empty repos only. Go from idea to deployed Whop app:
| Step | Guide | Description |
|---|---|---|
| 0 | companion-skills.md | FIRST - Install companion skills |
| 1 | app-from-scratch.md | Plan your app type and architecture |
| 2a | app-scaffold-b2b.md | B2B: Dashboard-only apps for admins |
| 2b | app-scaffold-b2c.md | B2C: Experience apps for members |
| 3 | app-database.md | Add Supabase → |
| 4 | app-whop-dashboard.md | Configure in Whop Developer Dashboard |
| 5 | app-deployment.md | Deploy to Vercel |
| 6 | app-store-submission.md | Submit to App Store (optional) |
仅适用于空仓库。从创意到部署完成Whop应用开发:
| 步骤 | 指南 | 说明 |
|---|---|---|
| 0 | companion-skills.md | 第一步 - 安装配套技能 |
| 1 | app-from-scratch.md | 规划应用类型与架构 |
| 2a | app-scaffold-b2b.md | B2B:面向管理员的仅仪表盘应用 |
| 2b | app-scaffold-b2c.md | B2C:面向会员的体验类应用 |
| 3 | app-database.md | 添加Supabase → 委托给 |
| 4 | app-whop-dashboard.md | 在Whop开发者控制台中配置应用 |
| 5 | app-deployment.md | 部署到Vercel |
| 6 | app-store-submission.md | 提交到应用商店(可选) |
Quick Reference
快速参考
Authentication & Security (CRITICAL)
认证与安全(至关重要)
| Rule | Description |
|---|---|
| auth-verify-token.md | MUST verify user tokens server-side |
| auth-access-check.md | MUST check access levels before operations |
| security-checklist.md | Security best practices checklist |
| auth-headers.md | Extract tokens from headers |
| auth-oauth.md | OAuth for external apps |
| input-sanitization.md | XSS prevention |
| 规则 | 说明 |
|---|---|
| auth-verify-token.md | 必须在服务端验证用户令牌 |
| auth-access-check.md | 执行操作前必须检查访问权限 |
| security-checklist.md | 安全最佳实践清单 |
| auth-headers.md | 从请求头中提取令牌 |
| auth-oauth.md | 外部应用的OAuth认证 |
| input-sanitization.md | XSS防护 |
SDK Setup (CRITICAL)
SDK配置(至关重要)
| Rule | Description |
|---|---|
| sdk-setup.md | Initialize Whop SDK (required) |
| sdk-iframe.md | Client-side iframe SDK |
| 规则 | 说明 |
|---|---|
| sdk-setup.md | 初始化Whop SDK(必填) |
| sdk-iframe.md | 客户端iframe SDK |
Design Principles (SUGGESTIONS)
设计原则(建议)
| Rule | Description |
|---|---|
| app-design-principles.md | Founder's suggestions for app success (user requests take priority) |
| 规则 | 说明 |
|---|---|
| app-design-principles.md | 创始人提出的应用成功建议(用户需求优先) |
Payments (HIGH)
支付功能(高优先级)
| Rule | Description |
|---|---|
| payments-checkout.md | Create checkout flows |
| payments-webhooks.md | Handle payment webhooks |
| payments-transfers.md | Send payouts to users |
| payments-billing.md | Billing portal & saved methods |
| 规则 | 说明 |
|---|---|
| payments-checkout.md | 创建结账流程 |
| payments-webhooks.md | 处理支付Webhook |
| payments-transfers.md | 向用户发放款项 |
| payments-billing.md | 账单门户及支付方式保存 |
App Views (HIGH)
应用视图(高优先级)
| Rule | Description |
|---|---|
| views-structure.md | Experience, Dashboard, Discover pages |
| views-routing.md | Dynamic routing patterns |
| 规则 | 说明 |
|---|---|
| views-structure.md | 体验页、仪表盘、发现页 |
| views-routing.md | 动态路由模式 |
Members & CRM (HIGH)
会员与CRM(高优先级)
| Rule | Description |
|---|---|
| api-memberships.md | Memberships & user management |
| 规则 | 说明 |
|---|---|
| api-memberships.md | 会员资格与用户管理 |
UI & Design (MEDIUM)
UI与设计(中优先级)
| Rule | Description |
|---|---|
| ui-frosted.md | Frosted UI components |
| ui-dark-mode.md | Dark mode handling |
| ui-tailwind.md | Tailwind CSS setup |
| 规则 | 说明 |
|---|---|
| ui-frosted.md | Frosted UI组件 |
| ui-dark-mode.md | 暗黑模式处理 |
| ui-tailwind.md | Tailwind CSS配置 |
API Patterns (MEDIUM)
API模式(中优先级)
| Rule | Description |
|---|---|
| api-structure.md | API route patterns |
| api-parallel.md | Parallel data fetching |
| 规则 | 说明 |
|---|---|
| api-structure.md | API路由模式 |
| api-parallel.md | 并行数据获取 |
Storage & Files (MEDIUM)
存储与文件(中优先级)
| Rule | Description |
|---|---|
| files-upload.md | Whop native file storage |
| 规则 | 说明 |
|---|---|
| files-upload.md | Whop原生文件存储 |
Engagement (MEDIUM)
用户互动(中优先级)
| Rule | Description |
|---|---|
| notifications.md | Push notifications |
| engagement-forums.md | Forum posts & comments |
| engagement-chat.md | Chat messages |
| 规则 | 说明 |
|---|---|
| notifications.md | 推送通知 |
| engagement-forums.md | 论坛帖子与评论 |
| engagement-chat.md | 聊天消息 |
Development (LOW)
开发工具(低优先级)
| Rule | Description |
|---|---|
| dev-proxy.md | Local development proxy |
| dev-sandbox.md | Sandbox testing |
| 规则 | 说明 |
|---|---|
| dev-proxy.md | 本地开发代理 |
| dev-sandbox.md | 沙箱测试 |
Companion Skills (ECOSYSTEM)
配套技能(生态系统)
| Rule | Description |
|---|---|
| companion-skills.md | Install & delegate to specialized skills |
| 规则 | 说明 |
|---|---|
| companion-skills.md | 安装并委托给专业技能处理 |
App Views
应用视图
Whop apps have three entry points:
| View | Route | Purpose |
|---|---|---|
| Experience | | Customer-facing UI |
| Dashboard | | Admin management |
| Discover | | Public marketing page |
Whop应用有三个入口:
| 视图 | 路由 | 用途 |
|---|---|---|
| Experience | | 面向客户的UI |
| Dashboard | | 管理员管理界面 |
| Discover | | 公开营销页面 |
Tech Stack
技术栈
Required:
- - Server-side API client
@whop/sdk - - React hooks and Frosted UI
@whop/react
Recommended:
- Next.js (App Router)
- TypeScript
- Tailwind CSS + Frosted UI
Flexible:
- Database: Supabase recommended, but any works
- UI: Frosted UI, Shadcn, Radix - your choice
必备工具:
- - 服务端API客户端
@whop/sdk - - React钩子及Frosted UI组件
@whop/react
推荐工具:
- Next.js (App Router)
- TypeScript
- Tailwind CSS + Frosted UI
可选工具:
- 数据库:推荐使用Supabase,也可选用其他数据库
- UI:Frosted UI、Shadcn、Radix - 任选其一
Platforms (Advanced)
平台功能(进阶)
For marketplaces with connected accounts:
针对拥有关联账户的市场:
Resources
资源
- Whop Developer Docs
- API Reference
- Frosted UI Storybook
- MCP Server: (Cursor) or
https://mcp.whop.com/mcp(Claude)https://mcp.whop.com/sse
- Whop Developer Docs
- API Reference
- Frosted UI Storybook
- MCP Server: (Cursor) 或
https://mcp.whop.com/mcp(Claude)https://mcp.whop.com/sse
Handoff Triggers
任务委托触发条件
Delegate to companion skills when encountering these patterns:
| Pattern | Hand Off To |
|---|---|
| "design", "make it look good", "UI", "component" | → |
| "optimize", "performance", "slow", "bundle" | → |
| "database", "query", "schema", "index", "RLS" | → |
| "review UI", "accessibility", "audit" | → |
See companion-skills.md for complete handoff guide.
遇到以下模式时,会委托给配套技能处理:
| 模式 | 委托对象 |
|---|---|
| 「设计」、「让它看起来更好」、「UI」、「组件」 | → |
| 「优化」、「性能」、「缓慢」、「打包」 | → |
| 「数据库」、「查询」、「schema」、「索引」、「RLS」 | → |
| 「UI评审」、「无障碍」、「审计」 | → |
查看companion-skills.md获取完整的任务委托指南。