← スキル一覧に戻る
Backend (
Frontend (

gallery-ops
by canyouseeus
THE LOST+UNFOUNDS - Modern web application
⭐ 0🍴 0📅 2026年1月23日
SKILL.md
name: gallery-ops description: Governs the digital photo gallery, checkout flows, secure asset delivery, and Google Drive integrations.
Gallery Operations & Delivery Standard
This skill defines the mandatory architecture for The Lost+Unfounds digital gallery, specifically regarding the purchase and delivery lifecycle.
1. Purchase Flow Architecture
The checkout process must ALWAYS follow this circular journey:
- Origin: User selects photos in a specific gallery (e.g.,
/gallery/kattitude-tattoo). - Checkout: User hits "Secure Checkout".
- Payload: Must include
librarySlugto identify the origin. - Return URL: Backend MUST append
?library={slug}to the PayPal return URL.
- Payload: Must include
- Payment: User pays via PayPal.
- Capture: User returns to
/payment/success. - Delivery Redirection (CRITICAL):
- The Success Page MUST read the
libraryquery parameter. - It MUST redirect the user BACK to the specific gallery (e.g.,
/gallery/kattitude-tattoo), NOT the generic shop. - Redirect Time: 3 seconds max transition.
- The Success Page MUST read the
2. Asset Delivery Mechanism
Delivery is dual-channel: Instant Access + Email Backup.
A. Instant Access (The "Unlock")
- Upon returning to the gallery, the frontend
PhotoGallery.tsxchecksfetchPurchasedAssetsagainst Supabase. - Visual Changes:
- Watermarks are removed.
- "PROPRIETARY" badge (Green) is applied.
- Download buttons become available.
- Security: Direct downloads use
/api/gallery/streamto pipe content from Google Drive without exposing raw Drive links.
B. Email Backup ("The Vault")
- Trigger: Sent immediately by
local-server.jsupon successful capture. - Subject: "Your Photos Are Ready - THE LOST+UNFOUNDS"
- Content:
- Primary link goes to the Gallery (
/gallery/{slug}). - Resend/Recovery links go to the Download Portal (
/downloads/{order_id}).
- Primary link goes to the Gallery (
3. Code Standards
Backend (local-server.js)
- Return URL: Always construct as:
http://localhost:3000/payment/success?library=${librarySlug} - Email Link: Always check
librarySlugexistence before generating the CTA link.
Frontend (PaymentSuccess.tsx)
- Navigation: Never hardcode
/shop. Always check forsearchParams.get('library')first.const librarySlug = searchParams.get('library'); const redirectPath = librarySlug ? `/gallery/${librarySlug}` : '/shop'; navigate(redirectPath);
4. Google Drive Integration
- Proxying: All images are served via
/api/gallery/stream. - Privacy: Images in Drive must be "Anyone with the link can view".
- CORS: The proxy bypasses standard Drive CORS issues by piping the stream server-side.
スコア
総合スコア
50/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です