尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
Chat with an AI to design a t-shirt, then buy it — the shirt is printed and shipped by a print-on-demand provider. Live at prntd.org.
Next.js 16 · TypeScript · Turso/Drizzle · 440 Vitest tests (incl. real-DB money-path integration) · Playwright e2e in CI against live preview deploys · in production with real paid orders檢視完整 README ↗Describe a t-shirt design in plain words, see it rendered, refine it, then buy it on a shirt that is printed and shipped by a print-on-demand provider. Designs a user publishes appear in a public Shop. Live at prntd.org.
Next.js 16, TypeScript, Turso/Drizzle, Vitest (including real-database money-path tests), Playwright e2e in CI. In production with paid orders.
/studio). Claude (claude-sonnet-4-6) turns the casual message and the conversation so far into a typed DesignSpec brief, either a new design or an edit of an existing image.generate-transparent renders a new design; /v1/edit with a transparent background renders an edit of the image the composer is anchored to. The request returns once a job row exists. The work continues in the background, and the Studio polls job status. Each user has a daily quota (also counted per IP) and at most three jobs in flight./d/[imageId]), public for published images and an owner view for private ones. Its buy panel takes garment, size, colour and an optional back design, with Printful mockups rendered on demand. Choices are kept in the URL. No price is shown until garment and size are picked./checkout with hosted Checkout as the fallback if embedded is not configured. A buyer can also add lines to a cart (/cart) and check out together./orders./shop). Published images are immutable snapshots. Admins can hide them (/admin/published).Visitors can use the Studio as a guest, without an account. Guests are anonymous Better-Auth users with generation quotas per identity and per IP. Checkout and publishing need a real account, and a guest's designs and cart move to the account on sign-in or sign-up.
Next.js 16 (App Router, Server Actions) on Vercel, functions pinned to pdx1
│
├─ Turso (libSQL) + Drizzle ORM, versioned migrations in drizzle/
├─ Better-Auth: email/password + anonymous guest sessions
├─ Anthropic API: Claude Sonnet 4.6 builds the design brief and names orders and published designs
├─ Ideogram API: v4 generate-transparent and /v1/edit
├─ Cloudflare R2: generated images and cached mockups
├─ Printful API: mockups, cost estimates, order submission, status webhooks
├─ Stripe: embedded and hosted Checkout, webhooks, promo codes, admin refunds
└─ Resend: transactional email
Server Actions handle mutations; each page directory has a sibling actions.ts. API routes under src/app/api/ are for Better-Auth, the Stripe and Printful webhooks (api/webhooks/), two crons (api/cron/retry-fulfillment, api/cron/sweep-generations) and a health check. The product catalog, pricing and promotions are config in TypeScript (src/lib/blanks.ts, pricing.ts, promotion.ts); adding a garment is a new entry in blanks.ts.
schema.ts (src/lib/__tests__/test-db.ts), so a schema/query mismatch fails the suite instead of hiding behind mocks.sale, stripe_fee, cogs, refund, refund_cogs_reversal), unique per order and type, with cost of goods taken from Printful's invoice rather than estimated.UPDATE … WHERE status = … and caps use guarded INSERT … SELECT … WHERE count < cap. The webhook claim and its ledger rows land in one db.batch.npm run db:generate must report no schema changes). On PRs, Playwright runs against a local compiled build and an ephemeral Turso branch copied from the preview database. A nightly job runs real Stripe test-mode checkouts and a Printful contract check; a post-deploy job checks markers on prntd.org.npm install
cp .env.example .env.local # fill in values (see below)
npm run db:push # sync schema to the dev database
npm run dev
npm run lint
npm run typecheck
npm test # Vitest, one run
npm run test:watch
npm run build
npm run e2e # Playwright against a local compiled build
npm run e2e:stripe # real Stripe test-mode checkouts (see docs/stripe-e2e.md)
npm run db:generate # new migration from schema.ts changes
npm run db:migrate
npm run db:seed
npm run db:studio
.env.local must point at the dev database, not production. With 1Password access, .env.tpl generates it instead; its header has the three steps (inject to a temporary file, review key names with scripts/diff-env.ts, move into place). db:push, db:migrate and db:seed refuse any other target unless confirmed.
Environment variable names (values are not in the repo):
DATABASE_URL, DATABASE_AUTH_TOKEN, IDEOGRAM_API_KEY, ANTHROPIC_API_KEY, R2_ACCOUNT_ID, R2_ACCESS_KEY_ID, R2_SECRET_ACCESS_KEY, R2_BUCKET_NAME, NEXT_PUBLIC_R2_PUBLIC_URL, STRIPE_SECRET_KEY, STRIPE_WEBHOOK_SECRET, NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY, PRINTFUL_API_KEY, BETTER_AUTH_SECRET, RESEND_API_KEY, NEXT_PUBLIC_APP_URL, ADMIN_EMAIL, OWNER_EMAIL, CRON_SECRET, NEXT_PUBLIC_FEEDBACK_PROJECT_ID
Feature flags: GUEST_FUNNEL_ENABLED, CART_ENABLED, MULTI_PLACEMENT_ENABLED, EMBEDDED_CHECKOUT_ENABLED. PRINTFUL_DRY_RUN=true skips real order submission, and PRINTFUL_AUTO_CONFIRM defaults on. Generation, upload and checkout quotas have per-user and per-IP daily cap variables (for example USER_GEN_DAILY_CAP, USER_CHECKOUT_DAILY_CAP). REPLICATE_API_TOKEN is used only by ops scripts in scripts/.
More detail is in docs/ (design-system.md, products.md, stripe-e2e.md) and CLAUDE.md.
Live at prntd.org and taking paid orders, fulfilled through Printful, including back prints and multi-item carts. Working: the Studio for guests and account holders, the image detail page buy panel, the cart, embedded checkout, order history, the Shop, and admin pages for orders (with ledger timeline and refunds), published-image moderation, usage and captured errors.