
Sellbase
io.github.jlgavel011由 GitHub 帳號 jlgavel011 發布v0.3.3更新於 Oct 25, 2026
Open source commerce in your own Supabase: catalog, checkout, orders and bookings, run by your AI.
概覽
Sellbase 的 MCP 伺服器讓 AI 助理在你自己的 Supabase 上架設並營運開源商店:商品、結帳、訂單和預約。
- 可以做什麼
- 建立與管理商品目錄:商品、規格、集合與庫存,支援 CSV 匯入和附預覽的批次改價。設定結帳:Stripe 付款、運費、稅金、折扣和訂金。處理訂單:狀態、出貨與物流追蹤、退款、取消並回補庫存、手動訂單和付款連結。管理客戶、棄購挽回、銷售指標,以及含可用時段和提醒的服務預約。管理商店設定、員工角色和具作用域的 API 權杖,涉及金流和破壞性操作時會先詢問店主。
- 適用情境
- 當你已在自有 Supabase 專案上運行 Sellbase 商店,並希望由助理完成初始設定或日常營運時使用,例如建立商品、以測試模式串接 Stripe 並跑一筆測試購買,或查看與更新訂單。
- 執行需求
- 透過 npx 在本機執行,需要 Node 20+ 和一個 Supabase 專案(託管或本機 Docker 環境)。需要 SELLBASE_URL 指向商店 API,並在 SELLBASE_API_TOKEN 中提供店主授予對應作用域的代理權杖;託管專案上的店面工具還需要 SUPABASE_ANON_KEY。init 指令也可把該 URL 寫入 .env.sellbase。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 Sellbase,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
README
Sellbase
An open source Shopify alternative you drop into your existing project, run by your AI agent.
Add products, a cart, Stripe checkout and an admin to the Next.js, React or plain HTML site you already have, on the Supabase you already use, with one command: npx sellbase init. Also included: orders, inventory, abandoned carts, discounts, appointments, emails, an API and an MCP server.
Quick start · Features · Docs · Deploy · Contributing · Español
Why Sellbase
- Yours, end to end. Your data lives in your Postgres, your money goes to your Stripe account and your code stays in your repo. There is no platform fee, no lock-in and no Sellbase servers in between. MIT licensed.
- AI-first.
sellbase initwritesCLAUDE.md/AGENTS.md, skills and an MCP server. Tell your agent "set up my store" and it creates products, connects payments and runs a test purchase. Money and destructive actions always ask the owner first, and everything is logged. - Works on any site.
- Next.js and Vite + React: React components.
- Plain HTML, WordPress, Webflow, Vue, Svelte, Astro, Angular:
<sellbase-*>web components (13 KB gzipped) and a static admin.
- An admin that is a pleasure to use. Products with drag and drop photos and variants, inventory, orders with packing slips and refunds, abandoned cart recovery, customers, discounts and settings for every connection. Also:
- a command palette (⌘K) to search and act;
- an AI copilot on Home;
- built for store owners, not developers.
- Safe by default.
- Money stored as integers.
- RLS on every table, with tests.
- Orders only come from verified payment webhooks.
- Idempotent writes.
- Third-party secrets in Supabase Vault.
- Signed outbound webhooks that never reach private networks.
Sellbase or build it yourself?
The usual way to add a store to a Next.js + Supabase app is to write it by hand: a products table, a cart, a Server Action for Stripe Checkout and a webhook route. It works for the first sale. Sellbase is that same stack (your Supabase and your Stripe) with the rest already built and tested.
Unlike engines such as Medusa, Vendure or Saleor, Sellbase needs no separate backend server. It runs on Supabase Edge Functions next to your app, and the storefront components are copied into your repo for you to edit.
Quick start
Requirements: Node 20+ and a Supabase project (or the local stack with Docker).
Then:
- Admin: open
/adminand sign in. Locally, the owner's email and password are in.env.sellbase. - Setup: follow the setup guide on Home.
- Or let your agent do it: open it in the project and say "Configura mi tienda con Sellbase" / "Set up my store with Sellbase". It uses the
sellbaseMCP tools until a test purchase succeeds.
Start from a template
Both are in examples/ with Vercel and Netlify deploy buttons.
With Claude Code
The plugin brings the Sellbase skills and MCP server to every project. /sellbase:setup installs Sellbase, creates your products, connects Stripe in test mode and runs a test purchase. Any other MCP client can use npx sellbase mcp (listed in the MCP registry as io.github.jlgavel011/sellbase).
With any agent (Cursor, Codex, Copilot, Gemini CLI, Windsurf…)
Then ask your agent to "add a store to this project". The add-ecommerce skill installs Sellbase and sets it up.
With shadcn
The storefront components are also a shadcn-compatible registry:
They still need the backend: npx sellbase init --yes. The index is at /r/registry.json.
Going live: deploy guide and live payments with Stripe.
Features
Catalog:
- physical products, digital downloads and services with appointments;
- up to 3 options per product (size, color…) with a variant matrix, compare-at prices and SEO;
- collections, tags and stock per variant;
- CSV import (including Shopify exports) and export;
- bulk price changes with a preview.
Checkout:
- Stripe Checkout (cards, Apple Pay, Google Pay; test and live mode);
- shipping rates, free shipping thresholds and local pickup;
- inclusive or exclusive taxes;
- discount codes and automatic discounts;
- deposits for services;
- a required consent checkbox (e.g. 18+ for alcohol) enforced by the server and stored with the order.
Orders:
- payment and fulfillment statuses;
- shipping with carrier and tracking;
- full or partial refunds;
- cancellations with restock;
- a timeline with comments;
- printable packing slips;
- manual orders (cash, transfer, WhatsApp) and payment links.
Growth:
- abandoned checkouts with one-click or automatic recovery emails that restore the cart;
- customers with their history;
- sales metrics and best sellers.
Services:
- resources with weekly hours and exceptions;
- availability;
- bookings with reminders (24 h and 2 h before) and calendar invites.
Emails (Resend): order confirmation with download links, shipping updates, refunds, cancellations, appointment notices and cart recovery. All of them carry your logo and brand color.
Team and AI:
- staff roles and invitations;
- API tokens with scopes for agents (money and data export scopes are opt-in);
- an activity log;
- signed outbound webhooks with retries for your ERP, spreadsheets or Zapier.
Storefront:
- React components copied into your repo (edit freely);
- headless hooks;
- web components for any site;
- SEO helpers (JSON-LD, sitemap);
- order lookup and download pages;
- accessible markup (checked with axe).
How it works
- One API contract. Every route is declared once with Zod in
@sellbase/core. The Hono server validates with it, the OpenAPI spec and the typed SDK come from it, and the MCP tools reuse it. - Snapshots. Orders keep a copy of prices, titles and addresses, so later catalog changes never alter past orders.
- The outbox. Business events are written in the same transaction as the change; jobs deliver emails and webhooks from it.
Documentation
- Getting started (español)
- Add an ecommerce store to a Next.js app with Supabase (en español)
- Deploy to production
- Customize the admin
- Live payments with Stripe (español)
- API reference, plus
llms.txtandllms-full.txtfor agents - Specification and architecture decisions
- Changelog
Development
See CONTRIBUTING.md. Security issues: SECURITY.md.
Status
Sellbase is 0.3, young but complete. The full flow is covered by CI on every commit:
- pgTAP;
- API integration;
- Playwright end to end;
- a clean-install acceptance test with a real agent over MCP.
Next on the roadmap:
- an installation guide per hosting provider;
- more payment providers (Mercado Pago, OXXO via Stripe);
- shipping label integrations;
- invoicing (CFDI).
En español
Sellbase es un kit de comercio open source que se instala dentro de tu proyecto (tu repo y tu Supabase) y que tu agente de IA puede configurar y operar.
Qué incluye:
- catálogo con fotos y variantes;
- checkout con Stripe;
- pedidos, inventario y carritos abandonados;
- descuentos, citas y correos;
- un admin completo en
/admin; - una API y un servidor MCP.
Funciona en Next.js, Vite + React y en cualquier sitio (HTML puro, WordPress, Webflow…) con componentes web.
Después entra a /admin (en local, el usuario y la contraseña quedan en .env.sellbase) o dile a tu agente: "Configura mi tienda con Sellbase".
Guías: primeros pasos, cobrar de verdad con Stripe y despliegue.
License
來源:README.md,提交 aad0c2d
工具
0版本歷史
1- v0.3.3最新Sep 29, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分