# ClipStack for Notion — Full Technical Reference ClipStack for Notion (`https://clipstack.meluon.fun`, Chrome Web Store ID `eeafmgnckfcjalifbcnodiganhdkfcpe`: `https://chromewebstore.google.com/detail/eeafmgnckfcjalifbcnodiganhdkfcpe`) is a Chrome Manifest V3 extension and companion licensing/demo API built by Meluon (`meluon.jason@gmail.com`). ## Why ClipStack Exists Existing Notion web clippers suffer from two recurring failure modes: 1. **Official Notion Web Clipper**: Drops authentication sessions, fails silently offline, and cannot populate Notion database properties beyond Title and URL. 2. **Form-Based Clippers (e.g., Save to Notion)**: Require manually wiring and maintaining custom form templates for every database, proxy user content through third-party servers, and fail uploads when networks stall. ClipStack solves both problems with deterministic local-first engineering: - **Write-Ahead Offline Queue**: Every clip writes its full Notion properties and block children to `chrome.storage.local` (`clipstack_queue`) before attempting an API call. Network failures, `5xx`, and `429 Rate Limited` (honoring `Retry-After`) transition to `retrying` with exponential backoff scheduled via `chrome.alarms`. Expired tokens (`401`) transition to `auth_required` without deleting the clip. Users can click **Retry All** or **Export JSON Backup** anytime. - **Zero-Config Schema Auto-Mapper**: Queries `GET /v1/databases/:id` and inspects all column types (`title`, `url`, `rich_text`, `select`, `multi_select`, `date`, `number`, `checkbox`, `email`, `phone_number`). Automatically maps canonical URL, title, author/channel/handle, published date, reading time, tags/keywords, and JSON-LD product price/currency while preferring exact case-insensitive matches against existing `select`/`multi_select` options. - **Notion Block Chunking**: Converts `
`/`
` DOM (`h1`–`h3`, `p`, `ul`/`ol`, `pre>code`, `blockquote`, `img`) into Notion Block API objects, splitting `rich_text` at `<= 2000` characters and appending children in `<= 100`-block batches via `POST /v1/pages` and `PATCH /v1/blocks/:id/children`. - **Optional BYOK AI Auto-Fill**: Users may optionally configure their own OpenAI, Anthropic, or Google Gemini API key locally in `chrome.storage.local`. Requests are sent directly from Chrome to the user's chosen AI provider and gracefully fall back to deterministic mapping when absent. ## Pricing & Licensing - **Free Starter**: $0 — 50 clips/month, offline retry queue, schema auto-mapper. - **ClipStack Pro (Monthly)**: $5/month — unlimited clips, smart X/YouTube/Product/Article extraction, BYOK AI auto-fill, up to 3 Chrome profiles (`https://pay.meluon.fun/?p=clipstack-pro`). - **ClipStack Lifetime Pro**: $39 one-time — everything in Pro forever for v1.x, up to 3 Chrome profiles (`https://pay.meluon.fun/?p=clipstack-lifetime`). - **Refunds**: 14-day full refund via Paddle. Refunds, chargebacks, or subscription cancellations immediately revoke the `cs_live_...` license key. ## Security & Privacy - Extension uses minimal MV3 permissions (`activeTab`, `storage`, `alarms`, `scripting`, `notifications`) and minimal `host_permissions` (`api.notion.com`, `clipstack.meluon.fun`, `api.openai.com`, `api.anthropic.com`, `generativelanguage.googleapis.com`). - Clip content and Notion tokens never pass through Meluon servers. - License keys (`cs_live_<32hex>`) are stored hashed with SHA-256 and revealed once via AES-256-GCM burn-after-reading envelopes (`Cache-Control: no-store, private`, `Referrer-Policy: no-referrer`, CORS restricted to `https://clipstack.meluon.fun`).