MCPcopy Index your code
hub / github.com/chatgptuk/ldc-shop

github.com/chatgptuk/ldc-shop @v1.4.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.4.1 ↗ · + Follow
1,685 symbols 5,307 edges 431 files 3 documented · 0% updated 33d ago★ 477
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

LDC Shop (Next.js + Workers)

中文说明


A serverless virtual goods shop built with Next.js 16, Cloudflare Workers (OpenNext), D1 Database, and Shadcn UI.

[!IMPORTANT] ⚠️ Vercel edition is no longer maintained. Use the Cloudflare Workers or Docker edition.

The Workers edition is the actively maintained version with all latest features. The Docker edition may lag behind.

🚀 Recommended: Cloudflare Workers or Docker self-hosted

Comparison Cloudflare Workers Docker self-hosted Vercel
Maintenance ✅ Active ✅ Synced ⚠️ Stopped
Free requests 100K/day Unlimited Limited
Database D1 free 5GB SQLite unlimited Postgres quota
Cold start Near zero None Yes
Requirements No server VPS needed No server
Global edge ✅ Worldwide Single node Partial

👉 Full features & Workers deployment guide → _workers_next/README.md

👉 Docker deployment guide → _docker/README.md

📢 Login status (2026-03-04)

Linux DO Connect OAuth login is working again; authorization and login complete normally.

GitHub login remains available as a fallback (see _workers_next/README.md for GitHub OAuth setup). This notice will be updated if anything changes.

✨ Feature overview

The current Workers edition includes (full list in _workers_next/README.md):

  • Stack: Next.js 16 (App Router), Tailwind CSS, TypeScript; edge runtime Cloudflare Workers + D1.
  • Linux DO: OIDC login, EasyPay; optional GitHub login.
  • Storefront: Search and categories, dedicated search page, wishlist and voting, announcements, Markdown descriptions, purchase warnings, product visibility by trust level, hot and discount, ratings and reviews, stock/sold, shared card keys, purchase limits, quantity selection, custom store name, product variants (multi-spec).
  • Orders: Payment callback verification, auto card-key delivery, multi-key display, default recipient email, stock reservation, timeout cancel, order center (with variant labels), pending-order reminder, refund requests and auto-refund, payment QR.
  • Admin: Sales stats, low-stock alerts, product management (visibility and variants), categories, card keys, orders, order cleanup, reviews, export/import, announcements, customers, messages, refund settings, nav settings, store and theme (name, description, logo, favicon, colors, font, footer, noindex), check-in settings, update check.
  • Points: Daily check-in (configurable on/off and reward), point deduction, full payment with points.
  • I18n & theme: English/Chinese, light/dark/system.
  • Notifications: Resend delivery email, Telegram and Bark for new orders/refunds/user messages, in-app inbox and desktop notifications, contact admin, LDC nav (with store count).

🚀 Deployment

For detailed steps and env vars, see _workers_next/README.md.

⭐ Recommended: Cloudflare Workers

High free tier, fast global access, no cold start.

👉 Full deployment guide → _workers_next/README.md

Alternative: Docker self-hosted

For VPS or your own server; local SQLite, no third-party DB.

👉 Docker guide → _docker/README.md

Alternative: Vercel (no longer maintained)

The Vercel edition is no longer maintained; use Workers or Docker for new deployments. For Vercel upstream sync, see .github/workflows/sync.yml and enable Actions write permission.

💡 Custom domain

For the best experience (instant payment status updates), we recommend binding a custom domain (e.g. store.yourdomain.com). Shared domains may be blocked by payment gateways or firewalls.

⚙️ Configuration & local development

Environment variables, OIDC/EPay setup, and local dev steps for the Workers edition are in _workers_next/README.md.

📄 License

MIT

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

Shape

Function 1,536
Interface 135
Method 10
Class 4

Languages

TypeScript100%

Modules by API surface

_workers_next/src/lib/db/queries.ts88 symbols
_docker/src/lib/db/queries.ts82 symbols
_workers_next/src/actions/admin.ts38 symbols
_docker/src/actions/admin.ts35 symbols
src/lib/db/queries.ts34 symbols
_workers_next/src/lib/db/index.ts25 symbols
_workers_next/src/components/admin/settings-content.tsx21 symbols
_docker/src/components/admin/settings-content.tsx18 symbols
src/actions/admin.ts16 symbols
src/components/ui/dropdown-menu.tsx15 symbols
_workers_next/src/components/ui/dropdown-menu.tsx15 symbols
_docker/src/components/ui/dropdown-menu.tsx15 symbols

Datastores touched

ldc_shopDatabase · 1 repos

For agents

$ claude mcp add ldc-shop \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page