Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for e-commerce architecture (Shopify Storefront, Medusa.js, Saleor), product catalogs, cart/checkout UX, and order management / Panduan ahli arsitektur e-commerce (Shopify, Medusa.js, Saleor), katalog produk, UX keranjang/checkout, dan manajemen pesanan.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
설치 방법 보기설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.
<a name="english"></a>
Production guide for high-converting e-commerce architectures, headless storefronts (Medusa.js v2, Shopify Storefront API, Saleor), inventory atomicity, and multi-rail payment integrations (DOKU Checkout, SNAP BI, Stripe). Covers atomic stock reservations to prevent race-condition overselling during flash sales, cart session state machines, structured schema markup (Product, Offer, BreadcrumbList), and localized checkout workflows.
Prevents overselling during high-concurrency flash sales using row-level pessimistic locking (FOR UPDATE):
// src/services/inventory.service.ts
import { db } from '@/lib/db';
import { sql } from 'drizzle-orm';
export interface ReserveStockResult {
success: boolean;
orderId?: string;
errorMessage?: string;
}
export async function reserveProductStockAtomic(
productId: string,
requestedQuantity: number,
orderId: string
): Promise<ReserveStockResult> {
return await db.transaction(async (tx) => {
// 1. Lock the inventory row strictly for update
const [product] = await tx.execute(sql`
SELECT id, stock_quantity, price_cents, is_active
FROM products
WHERE id = ${productId}
FOR UPDATE
`);
if (!product || !product.is_active) {
return { success: false, errorMessage: 'Product is unavailable.' };
}
if (product.stock_quantity < requestedQuantity) {
return { success: false, errorMessage: 'Insufficient stock remaining.' };
}
// 2. Decrement available inventory atomically
await tx.execute(sql`
UPDATE products
SET stock_quantity = stock_quantity - ${requestedQuantity},
updated_at = NOW()
WHERE id = ${productId}
`);
// 3. Create provisional stock reservation record (15-minute TTL)
await tx.execute(sql`
INSERT INTO stock_reservations (order_id, product_id, quantity, expires_at)
VALUES (${orderId}, ${productId}, ${requestedQuantity}, NOW() + INTERVAL '15 minutes')
`);
return { success: true, orderId };
});
}
// src/workflows/create-order-workflow.ts
import { createWorkflow, WorkflowResponse, StepResponse, createStep } from '@medusajs/framework/workflows-sdk';
const reserveInventoryStep = createStep(
'reserve-inventory-step',
async ({ orderId, items }: { orderId: string; items: any[] }, { container }) => {
// Execute atomic reservation
return new StepResponse({ status: 'reserved', orderId }, { orderId, items });
},
async (compensatingData, { container }) => {
// Compensation logic if downstream payment fails: roll back reserved stock
console.log(`[Compensation] Releasing reserved stock for order ${compensatingData.orderId}`);
}
);
export const placeAtomicOrderWorkflow = createWorkflow(
'place-atomic-order',
function (input: { orderId: string; items: any[]; paymentDetails: any }) {
const reservation = reserveInventoryStep(input);
return new WorkflowResponse(reservation);
}
);
// src/components/seo/ProductSchema.tsx
export function ProductSchema({ product }: { product: any }) {
const schema = {
'@context': 'https://schema.org',
'@type': 'Product',
name: product.title,
image: product.thumbnailUrl,
description: product.description,
sku: product.sku,
offers: {
'@type': 'Offer',
price: (product.priceCents / 100).toFixed(2),
priceCurrency: 'IDR',
availability: product.inStock ? 'https://schema.org/InStock' : 'https://schema.org/OutOfStock',
url: `https://vibesstore.internal/products/${product.handle}`,
},
};
return <script type="application/ld+json" dangerouslySetInnerHTML={{ __html: JSON.stringify(schema) }} />;
}
doku-payment-gateway: Manages DOKU Checkout modals, QRIS generation, and SNAP BI webhooks.search-engine-expert: Implements full-text and faceted search for catalogs.nextjs-app-router-expert: Fast Server Components for product detail pages with instant SSR.seo: Validates JSON-LD schema markup and Core Web Vitals compliance.<a name="bahasa-indonesia"></a>
Panduan produksi untuk arsitektur e-commerce tingkat lanjut, headless storefront (Medusa.js v2, Shopify Storefront API, Saleor), atomisitas inventaris, dan integrasi pembayaran multi-jalur (DOKU Checkout, SNAP BI, Stripe). Mencakup reservasi stok atomik untuk mencegah overselling saat flash sale, mesin state keranjang belanja, markup skema terstruktur (Product, Offer), dan alur checkout terlokalisasi.
// src/lib/payments/doku-checkout.ts
export async function createDokuPaymentLink(order: { id: string; amount: number; customer: any }) {
const response = await fetch('https://api.doku.com/checkout/v1/payment', {
method: 'POST',
headers: {
'Client-Id': process.env.DOKU_CLIENT_ID!,
'Request-Id': order.id,
'Request-Timestamp': new Date().toISOString(),
'Signature': generateDokuHmacSignature(order),
'Content-Type': 'application/json',
},
body: JSON.stringify({
order: {
invoice_number: order.id,
amount: order.amount,
currency: 'IDR',
},
customer: {
name: order.customer.name,
email: order.customer.email,
},
}),
});
return await response.json();
}
SELECT ... FOR UPDATE di dalam transaksi database saat mengurangi stok agar dua pengguna tidak dapat membeli unit barang terakhir secara bersamaan.Product dan Offer agar informasi harga dan ketersediaan stok muncul langsung di hasil pencarian Google.doku-payment-gateway: Menangani otentikasi webhook SNAP BI dan verifikasi pembayaran.search-engine-expert: Menyediakan fitur pencarian faset (filter merk, kategori, harga).nextjs-app-router-expert: Menyajikan halaman produk dengan waktu muat ultra-cepat melalui streaming SSR.seo: Mengoptimalkan indeks pencarian dan struktur metadata produk.아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.
로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.
아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for autonomous Machine-to-Machine (M2M) agent settlement, dual-rail fiat & stablecoin micro-clearing, dynamic budget envelopes, and cryptographic agent invoicing / Panduan ahli settlement otonom antar-agen (M2M), kliring mikro dual-rail fiat & stablecoin, pagu anggaran dinamis, dan penagihan agen kriptografis.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.
Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.
한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.