|
| 1 | +# Publishing the shoplit extension to the Chrome Web Store |
| 2 | + |
| 3 | +Everything you upload is in this folder. The packaged file is |
| 4 | +`shoplit-extension-v<version>.zip` (rebuild with `npm run build` then re-zip — |
| 5 | +see bottom). Below is the exact copy to paste into the Developer Dashboard. |
| 6 | + |
| 7 | +## 0. One-time setup |
| 8 | +1. Go to **https://chrome.google.com/webstore/devconsole**. |
| 9 | +2. Sign in with the Google account you want to own the listing. |
| 10 | +3. Pay the **one-time $5 registration fee** and complete the account/identity |
| 11 | + verification (Chrome requires a verified publisher). |
| 12 | + |
| 13 | +## 1. Create the item |
| 14 | +1. Dashboard → **Add new item** → upload `shoplit-extension-v0.1.0.zip`. |
| 15 | +2. It parses the manifest; fill in the listing fields below. |
| 16 | + |
| 17 | +## 2. Store listing (copy/paste) |
| 18 | + |
| 19 | +**Name:** `shoplit — add to cart` |
| 20 | + |
| 21 | +**Summary (≤132 chars):** |
| 22 | +`Add products to your shoplit cart in one click from Amazon, Myntra, Nykaa, Flipkart & AJIO — right from the product page.` |
| 23 | + |
| 24 | +**Description:** |
| 25 | +``` |
| 26 | +shoplit lets creators build a shoppable, link-in-bio cart of products they love |
| 27 | +and share it with a short link. This extension is the fastest way to fill it. |
| 28 | +
|
| 29 | +On any product page at Amazon, Myntra, Nykaa, Flipkart or AJIO, click "Add to |
| 30 | +shoplit" (it appears under the product title) or the toolbar icon. shoplit reads |
| 31 | +the product — title, image, price, link — and you pick which cart to drop it in. |
| 32 | +Done. You can also paste your own affiliate or short link for the product. |
| 33 | +
|
| 34 | +• One-click add from the product page |
| 35 | +• Works across the major Indian shopping sites |
| 36 | +• Edit the title, price, image or link before saving |
| 37 | +• Connects securely to your shoplit account |
| 38 | +
|
| 39 | +Free, like the rest of shoplit. Sign up at https://shoplit.in |
| 40 | +``` |
| 41 | + |
| 42 | +**Category:** Shopping |
| 43 | +**Language:** English |
| 44 | + |
| 45 | +## 3. Privacy tab (required) |
| 46 | + |
| 47 | +**Single purpose:** |
| 48 | +`Add a product from a supported retailer's page to the user's shoplit cart.` |
| 49 | + |
| 50 | +**Permission justifications:** |
| 51 | +- **activeTab** — Read the product on the page the user is currently viewing, only when they click the extension. |
| 52 | +- **scripting** — Extract the product details (title, image, price, link) from the active product page when invoked. |
| 53 | +- **storage** — Store the user's shoplit connection token locally so they stay signed in. |
| 54 | +- **host permission — retailer sites** (amazon, myntra, nykaa, flipkart, ajio) — Show the "Add to shoplit" button and read the product on supported shopping sites. |
| 55 | +- **host permission — shoplit.in** — Call the shoplit API to list the user's carts and add the product. |
| 56 | +- **Remote code:** No — all code is bundled in the package. |
| 57 | + |
| 58 | +**Data usage** (check these): collects *Authentication information* (the connection token) and *User activity* (the product the user chooses to add). Certify: not sold to third parties, not used for unrelated purposes, not used for creditworthiness/lending. |
| 59 | + |
| 60 | +**Privacy policy URL:** `https://shoplit.in/legal/extension-privacy` |
| 61 | + |
| 62 | +## 4. Graphics |
| 63 | +- **Store icon (128×128):** auto-pulled from the package (`icons/128.png`). ✅ |
| 64 | +- **Screenshots (required, 1280×800 or 640×400, 1–5):** capture on a real product page: |
| 65 | + 1. A product page with the **"+ Add to shoplit"** button under the title. |
| 66 | + 2. The **add panel** open (cart picker + product). |
| 67 | + 3. The product showing up on your **shoplit cart** (`shoplit.in/c/...`). |
| 68 | +- **Small promo tile (440×280):** optional. |
| 69 | + |
| 70 | +## 5. Submit |
| 71 | +- **Visibility:** Public (or Unlisted if you want to share only by link first). |
| 72 | +- Click **Submit for review.** Review typically takes a few hours to a few days. |
| 73 | + |
| 74 | +## 6. After it's approved |
| 75 | +1. Copy the **published extension ID** from the dashboard. |
| 76 | +2. On the server, set it so the connect handoff is automatic for everyone: |
| 77 | + ``` |
| 78 | + ssh … 'cd shoplit && sed -i "s/^EXTENSION_ID=.*/EXTENSION_ID=<published-id>/" deploy/.env' |
| 79 | + ./deploy/redeploy.sh shoplit-web |
| 80 | + ``` |
| 81 | +3. Add an "Install the extension" link on the dashboard pointing to the store URL. |
| 82 | + |
| 83 | +## Rebuild + repackage |
| 84 | +``` |
| 85 | +cd extension |
| 86 | +npm run build |
| 87 | +( cd dist && zip -rq ../shoplit-extension-v$(node -p "require('./manifest.json').version").zip . ) |
| 88 | +``` |
| 89 | +Bump `version` in `manifest.json` for each new store upload (Chrome rejects re-uploads with the same version). |
0 commit comments