# ClipCask — ข้อมูลสำหรับขึ้น Chrome Web Store (Store Listing & Review Kit)

เอกสารฉบับนี้รวบรวมเนื้อหา คำอธิบาย ฟีเจอร์ ภาพตัวอย่างการใช้งาน (`1280×800`), ป้ายโปรโมต (`440×280` และ `1400×560`) และคำชี้แจงสิทธิ์ (Permission Justifications) สำหรับกรอกใน **Chrome Web Store Developer Dashboard** ทั้งภาษาไทยและภาษาอังกฤษ

---

## 1. ไฟล์แพ็กเกจและภาพสำหรับอัปโหลด (Ready-to-Upload Assets)

| รายการ | ที่อยู่ไฟล์ | ขนาด / สเปก |
| :--- | :--- | :--- |
| **Extension ZIP Package** | `npm run pack` (`dist/`) | Manifest V3 (เฉพาะไฟล์รันไทม์ ปลอดไฟล์ทดสอบ) |
| **Store Icon** | `icons/icon-128.png` | `128×128 px` (PNG) |
| **Screenshot 1: คลังข้อความ & ค้นหาด่วน** | `docs/store/screenshots/01-vault-and-search.png` | `1280×800 px` (24-bit PNG) |
| **Screenshot 2: แถบลอย Quick Bar & คีย์ลัดย่อข้อความ** | `docs/store/screenshots/02-quickbar-and-expansion.png` | `1280×800 px` (24-bit PNG) |
| **Screenshot 3: จัดการคุกกี้ & จับภาพหน้าจอ** | `docs/store/screenshots/03-cookie-vault-and-screenshots.png` | `1280×800 px` (24-bit PNG) |
| **Screenshot 4: ความปลอดภัย Passkey & BIP-39 Recovery** | `docs/store/screenshots/04-security-passkey-recovery.png` | `1280×800 px` (24-bit PNG) |
| **Screenshot 5: ซิงค์ข้อมูล Cloud เข้ารหัส & ส่งออก Espanso** | `docs/store/screenshots/05-zero-knowledge-cloud-sync.png` | `1280×800 px` (24-bit PNG) |
| **Small Promo Tile** | `docs/store/screenshots/promo-small-440x280.png` | `440×280 px` (24-bit PNG) |
| **Marquee Promo Tile** | `docs/store/screenshots/promo-marquee-1400x560.png` | `1400×560 px` (24-bit PNG) |

---

## 2. ข้อมูลหน้าร้านค้า — ภาษาไทย (Thai Store Listing)

### ชื่อส่วนขยาย (Title)
```text
ClipCask — คลังคลิปบอร์ดเข้ารหัส & คีย์ลัดข้อความ
```

### คำอธิบายสั้น (Summary — ไม่เกิน 132 ตัวอักษร)
```text
คลังคลิปบอร์ดและคีย์ลัดข้อความส่วนตัว เข้ารหัส AES-256-GCM แบบ Zero-Knowledge พร้อม Passkey, จับภาพหน้าจอ, จัดการคุกกี้ และ Cloud Sync
```

### คำอธิบายฉบับเต็ม (Detailed Description — ภาษาไทย)
```text
ClipCask คือส่วนขยายจัดการคลิปบอร์ด คีย์ลัดย่อข้อความ (Text Expander) จับภาพหน้าจอ และตู้นิรภัยคุกกี้สำหรับเบราว์เซอร์ที่ออกแบบด้วยสถาปัตยกรรม Zero-Knowledge Security ข้อมูลทุกชิ้นของคุณจะถูกเข้ารหัสด้วย AES-256-GCM บนเครื่องของคุณก่อนบันทึกลงฐานข้อมูลเสมอ

หมดปัญหาการพิมพ์ข้อความซ้ำๆ หรือความเสี่ยงจากการใช้โปรแกรมจัดการคลิปบอร์ดทั่วไปที่เก็บข้อความสำคัญแบบไม่เข้ารหัส ClipCask ผสานความเร็วระดับ Keyboard-First เข้ากับความปลอดภัยมาตรฐานการเงิน

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ ความปลอดภัยระดับ Zero-Knowledge (AES-256-GCM)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• เข้ารหัสทุกข้อมูลในเครื่อง: ข้อความ หมวดหมู่ รูปภาพหน้าจอ และสแนปช็อตคุกกี้ถูกเข้ารหัสแยกแต่ละรายการด้วย AES-256-GCM (IV 96 บิตเฉพาะตัว) และแปลงรหัสผ่านด้วย PBKDF2-SHA256 ถึง 600,000 รอบ
• ปลดล็อกด่วนด้วย Hardware Passkey & Biometrics: รองรับการปลดล็อกด้วย Windows Hello, Touch ID หรือ YubiKey (WebAuthn PRF) รวมถึงรหัส PIN 4–8 หลักที่แยก Salt และกุญแจอย่างเป็นอิสระ
• ชุดกู้คืนฉุกเฉิน BIP-39 (12 คำ): สร้างวลีกู้คืนมาตรฐานสากล 12 คำเมื่อสร้างคลังครั้งแรก สามารถดาวน์โหลดเก็บไว้แบบออฟไลน์ (.html / .txt) เพื่อกู้คืนคลังได้แม้ลืมรหัสผ่านหลัก
• เกราะป้องกันข้อมูลอ่อนไหว (Sensitive Data Shield): ตรวจจับและเซ็นเซอร์ (Mask) หรือข้ามการบันทึกรหัส OTP 6 หลัก, เลขบัตรเครดิต (ตรวจด้วย Luhn Algorithm) และ API Keys/Tokens อัตโนมัติ
• แยกโหมดไม่ระบุตัวตนและบัญชีดำโดเมน: บล็อกการเก็บข้อมูลในหน้าต่าง Incognito และช่องรหัสผ่าน (<input type="password">) เสมอ พร้อมตั้งโดเมนยกเว้นได้ (เช่น เว็บธนาคาร)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ คีย์ลัดย่อข้อความ & แถบลอยอัจฉริยะ (Quick Bar)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• แถบลอยในหน้าเว็บ (Floating Quick Bar): ลากคลุมข้อความบนหน้าเว็บหรือกด Alt+V เพื่อบันทึก ปักหมุดเข้าหมวดหมู่ ค้นหา หรือแทรกข้อความลงในช่องกรอกได้ทันทีโดยไม่ต้องสลับหน้าต่าง
• ระบบย่อข้อความอัตโนมัติ (Text Expansion): ตั้งคำย่อ (เช่น ;addr, /sig, !bank) แล้วพิมพ์ในช่องข้อความใดก็ได้จะมีป๊อปอัปแสดงตัวอย่าง กด Space, Tab หรือ Enter เพื่อแทนที่ข้อความเต็มทันที
• ตัวแปรไดนามิก (Dynamic Templates): รองรับตัวแปรอัตโนมัติ {{date}}, {{time}}, {{datetime}}, {{clipboard}} และตัวแปรกำหนดเอง (เช่น {{ลูกค้า}}, {{เลขใบสั่งซื้อ}}) ที่เปิดช่องให้กรอกก่อนวาง
• เครื่องมือแปลงข้อความ & ล้างลิงก์แกะรอย: ลบพารามิเตอร์ติดตามออกจาก URL (utm_*, fbclid, gclid) และแปลงรูปแบบตัวอักษร (camelCase, snake_case, kebab-case, UPPERCASE, Title Case) ได้ในคลิกเดียว
• ค้นหาอัจฉริยะ (Fuzzy & Typo-Tolerant Search): ค้นหาข้อความได้รวดเร็วแม้พิมพ์ตกหล่นหรือสะกดผิด พร้อมจัดอันดับตามความถี่ในการใช้งานและการปักหมุด

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 จับภาพหน้าจอ & 🍪 ตู้นิรภัยคุกกี้ (Developer & Power Tools)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• จับภาพหน้าจอทันใจ (Screen Capture): จับภาพทั้งหน้าจอ (Ctrl+Shift+S) หรือลากกรอบเลือกเฉพาะส่วน (Ctrl+Shift+X) คัดลอกเป็นไฟล์ภาพลงคลิปบอร์ดพร้อมกด Ctrl+V วางในแชตได้ทันที บันทึกไฟล์ PNG ลงเครื่องอัตโนมัติ และเก็บสำเนาเข้ารหัสไว้ในคลัง
• ตู้นิรภัยและตรวจสอบคุกกี้ (Cookie Vault & Verifier): ตรวจสอบคุกกี้ของเว็บไซต์ปัจจุบัน เช็กสถานะความปลอดภัย (Secure, HttpOnly, SameSite, วันหมดอายุ) บันทึกสแนปช็อตคุกกี้เข้ารหัสเก็บไว้ในคลัง เปรียบเทียบความเปลี่ยนแปลง และกู้คืนคุกกี้กลับเข้าเบราว์เซอร์ได้ในคลิกเดียว

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
☁️ ซิงค์ข้ามอุปกรณ์แบบ Zero-Knowledge & ส่งออกหลายรูปแบบ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Cloud Sync เข้ารหัส E2EE: เชื่อมต่อ Codedoon Cloud เพื่อซิงค์ข้อมูลที่เข้ารหัสแล้วข้ามอุปกรณ์แบบ Zero-Knowledge รองรับการตั้งรหัสผ่านซิงค์แยกรายอุปกรณ์และหน้าจัดการข้อขัดแย้ง (Conflict Resolution)
• ส่งออกข้อมูลครบครัน: ส่งออกคีย์ลัดเป็นไฟล์ Espanso YAML (clipcask.yml) เพื่อใช้ย่อข้อความข้ามโปรแกรมทั้งระบบปฏิบัติการ หรือส่งออกเป็น Markdown (.md), CSV (.csv ป้องกัน Formula Injection) และไฟล์สำรองคลังเข้ารหัส (.json)
• รองรับ 2 ภาษาสมบูรณ์: สลับภาษาไทยและภาษาอังกฤษได้ทันทีในคลิกเดียว

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⌨️ คีย์ลัดเริ่มต้น (ปรับแต่งได้ใน chrome://extensions/shortcuts)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Ctrl+Shift+Y : เปิดหน้าต่างหลัก ClipCask
• Alt+V : เปิดแถบลอย ClipCask Quick Bar ณ จุดที่กำลังพิมพ์
• Ctrl+Shift+S : จับภาพหน้าจอปัจจุบัน (Full Screen Capture)
• Ctrl+Shift+X : ลากกรอบจับภาพหน้าจอเฉพาะส่วน (Area / Selection Capture)
```

---

## 3. ข้อมูลหน้าร้านค้า — ภาษาอังกฤษ (English Store Listing)

### Title
```text
ClipCask — Encrypted Clipboard Vault & Text Expander
```

### Summary (≤ 132 characters)
```text
Zero-knowledge AES-256-GCM clipboard vault, text expander, screenshot capture & cookie manager with Passkey unlock and private sync.
```

### Detailed Description (English)
```text
ClipCask is a local-first, zero-knowledge encrypted clipboard vault, text expansion engine, screen capture tool, and cookie snapshot manager for Chromium browsers. Every snippet, template, screenshot, cookie snapshot, and category is encrypted on your device with AES-256-GCM before it ever touches disk.

Stop retyping repetitive responses or trusting plaintext clipboard managers with sensitive data. ClipCask pairs keyboard-first velocity with uncompromising client-side cryptography.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
🛡️ Zero-Knowledge Cryptography & Hardware Unlock
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Client-Side AES-256-GCM & PBKDF2: Every record is individually encrypted using AES-256-GCM with unique 96-bit IVs, per-record AAD binding, and 600,000-iteration PBKDF2-SHA256 key derivation.
• Hardware Passkey & Biometrics: Unlock your vault instantly using WebAuthn PRF (Windows Hello, Touch ID, YubiKey) or a dedicated 4–8 digit numeric PIN with isolated cryptographic salting.
• BIP-39 Emergency Recovery Kit: Generates a standard 12-word recovery phrase during setup with offline printable HTML and TXT recovery kits, ensuring you can always recover your vault without a central server.
• Sensitive Data Shield: Automatically detects and masks or skips 6-digit OTPs, Luhn-validated credit card numbers, and secret API keys/tokens (GitHub PATs, OpenAI/Stripe/AWS keys).
• Incognito & Password Isolation: Strictly ignores password inputs (<input type="password">), blocks background capture in Incognito windows, and supports custom excluded domain blacklists.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
⚡ Floating Quick Bar & Instant Text Expansion
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• In-Page Floating Quick Bar: Select text on any webpage or press Alt+V to save, pin to categories, search your vault, or insert snippets straight into the active input field without leaving the page.
• Inline Text Expansion: Assign short triggers (e.g., ;addr, /sig, !meet) to any snippet. Type the trigger in any input or editor and press Space, Tab, or Enter to expand it in place.
• Dynamic Placeholders & Custom Variables: Embed {{date}}, {{time}}, {{datetime}}, {{clipboard}}, or custom placeholders like {{client_name}} that prompt for values right before insertion.
• Text Transformers & URL Sanitizer: Strip tracking parameters (utm_*, fbclid, gclid, msclkid) from links and transform text case (camelCase, snake_case, kebab-case, UPPERCASE, Title Case) in one click.
• Fuzzy & Typo-Tolerant Search: Instant subsequence and Levenshtein typo-tolerant search ranked by match relevance, pinned priority, usage frequency, and recency.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
📸 Screen Capture & 🍪 Encrypted Cookie Vault
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• Multi-Surface Screen Capture: Capture the full visible tab (Ctrl+Shift+S) or drag-select a custom region (Ctrl+Shift+X). Automatically copies the PNG image to your clipboard, saves to your local Screenshots folder, and stores an encrypted copy in your vault history.
• Cookie Vault & Security Verifier: Inspect active site cookies, audit security flags (Secure, HttpOnly, SameSite, expiration countdown), save encrypted cookie snapshots into your vault, diff stored snapshots against live browser cookies, and restore cookies in one click.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
☁️ Zero-Knowledge Cloud Sync & Universal Exports
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
• End-to-End Encrypted Cloud Sync: Optionally connect Codedoon Cloud to synchronize encrypted vault backups across devices with separate sync passphrase support and visual conflict resolution.
• Cross-Platform Exports: Export shortcuts directly to Espanso YAML (clipcask.yml) for OS-wide text expansion, or export pinned items to Markdown (.md), CSV (with formula-injection protection), and encrypted JSON backups.
• Bilingual UI: Instant runtime switching between English and Thai.
```

---

## 4. ข้อมูลสำหรับแท็บ Privacy Practices ใน Chrome Web Store Dashboard

### Single Purpose Description (คำอธิบายวัตถุประสงค์หลัก)
- **English:**
  > ClipCask provides a client-side encrypted personal productivity vault for managing clipboard snippets, expanding text shortcuts, capturing webpage screenshots, and saving encrypted cookie snapshots locally in the browser.
- **ภาษาไทย:**
  > ClipCask คือเครื่องมือจัดการคลังคลิปบอร์ดส่วนตัวที่เข้ารหัสในเครื่อง สำหรับจัดเก็บข้อความ คีย์ลัดย่อข้อความ จับภาพหน้าจอ และจัดการสแนปช็อตคุกกี้ด้วยความปลอดภัยแบบ Zero-Knowledge

### Permission Justifications (คำชี้แจงเหตุผลในการขอสิทธิ์แต่ละรายการ — คัดลอกไปวางในช่องกรอกได้เลย)

1. **`storage`**
   > Used to hold the ephemeral unwrapped session key in volatile `chrome.storage.session` while the vault is unlocked (automatically cleared on lock or browser exit) and to store AES-256-GCM encrypted cloud sync credentials in `chrome.storage.local`.

2. **`alarms`**
   > Used in the Manifest V3 background service worker to schedule periodic checks for idle auto-lock (`autokeep-idle`), automatic clipboard clearing (`autokeep-clipboard-clear`), history retention policy cleanup (`autokeep-retention`), and optional user-enabled periodic encrypted sync (`autokeep-sync`).

3. **`clipboardRead`**
   > Used solely when the user explicitly triggers the "ClipCask: Save Clipboard" keyboard command (`save_clipboard`) to read the current plaintext clipboard via the extension's offscreen document and encrypt it into the user's local vault.

4. **`clipboardWrite`**
   > Used to copy user-selected snippets, transformed text, expanded templates, or captured screenshot images to the system clipboard, and to overwrite the clipboard with an empty string when the user's auto-clear clipboard timer expires.

5. **`contextMenus`**
   > Used to register the "ClipCask" right-click context menu items allowing users to save selected text, pin selections to categories, open the paste quick bar, or capture a full/partial webpage screenshot.

6. **`offscreen`**
   > Required by Manifest V3 service workers to briefly instantiate `src/offscreen.html` for DOM-dependent clipboard read/write/clear operations and HTML5 Canvas image cropping during partial screenshot capture.

7. **`downloads`**
   > Used to save user-initiated vault exports (encrypted `.json` backups, `.md`, `.csv`, Espanso `.yml`, and BIP-39 Emergency Recovery Kits) as well as captured PNG screenshots (`Screenshots/ClipCask_*.png`) to the user's local Downloads directory.

8. **`activeTab`**
   > Used when the user triggers a screen capture (`chrome.tabs.captureVisibleTab`) or opens the Cookie Vault / Quick Bar on the currently active tab.

9. **`cookies`**
   > Powers the user-initiated Cookie Vault & Verifier feature in the popup, allowing developers and power users to inspect cookies for the active site, verify security attributes (`Secure`, `HttpOnly`, `SameSite`), encrypt cookie snapshots into their local AES-256-GCM vault, and restore saved cookie snapshots back to the browser on demand. Cookies are never collected or transmitted in the background.

10. **`scripting`**
    > Used to ensure `src/actions.js` is dynamically injected when the user explicitly starts area selection capture or opens the Quick Bar on an existing already-open tab before content scripts ran.

11. **`host_permissions` (`<all_urls>`)**
    > Required so the in-page Floating Quick Bar (`src/quick.html`), inline text shortcut expansion (`src/actions.js`), optional copy event auto-capture (`src/capture.js`), area screen capture overlay, and optional encrypted sync endpoints can operate across the websites the user visits.

### การติ๊กหัวข้อในหน้า Privacy Practices
- **Are you using remote code?** → เลือก **No, I am not using remote code** (โค้ดทั้งหมดอยู่ในแพ็กเกจ 100%)
- **Data Usage (What user data do you plan to collect from users now or in the future?)** → **ไม่ต้องติ๊กเก็บข้อมูลใดๆ** (เพราะส่วนขยายทำงานแบบ Local-First / Zero-Knowledge ไม่มีการส่งข้อมูลผู้ใช้ไปยังเซิร์ฟเวอร์ของนักพัฒนา)
- **Certifications** → ติ๊กยืนยันครบทั้ง 3 ข้อว่าไม่ขายข้อมูลและไม่ใช้ข้อมูลเพื่อโฆษณาหรือประเมินสินเชื่อ
