# NanoCart
> NanoCart (https://nanocart.io) is an e-commerce platform for small stores: an
> embeddable cart + checkout widget for any website, and hosted storefronts at
> {store}.nanocart.io. Flat monthly pricing, 0% NanoCart transaction fees. Payments run
> through the merchant's own Stripe and/or PayPal accounts.
Key facts for AI agents:
- Widget embed: ``
(the attribute is data-store-id; the Store ID is public).
- Buttons: data-nanocart-buy / data-nanocart-add (add first variant + open cart drawer),
data-nanocart-product (detail modal WITH variant selector).
- Theming: CSS variables --nc-* on the #nanocart-widget host.
- Admin API: base https://api.nanocart.io, header `x-api-key: sc_live_...` (SECRET —
server-side only). All prices in integer cents.
- Official AI coding-agent skill: https://cdn.nanocart.io/ai/nanocart-skill.zip
- Official MCP server (live store tools): npx nanocart-mcp, or hosted at
https://mcp.nanocart.io/mcp?store=STORE_ID with Authorization: Bearer
- Dashboard: https://portal.nanocart.io · API reference: https://nanocart.io/docs
---
# ===== Nanocart Overview =====
(https://docs.nanocart.io/#getting-started-intro)
# nanocart — Support Knowledge Base Overview
## What Is nanocart?
nanocart is a lightweight SaaS e-commerce platform designed for small businesses, indie sellers, and developers who want to add a fully functional shopping cart to an existing website without rebuilding their site or switching platforms. It works as a thin cart layer that sits on top of any existing site or as a fully hosted storefront — your store, your Stripe account, your customers.
**Key links:**
- Admin panel: https://nanocart.io/admin
- API: https://api.nanocart.io
- Demo store: https://nanocart.io/demo (Cheeky Surf Shop)
- Support: hello@nanocart.io
---
## Two Ways to Use nanocart
### 1. Widget Embed (Add a Cart to Any Existing Site)
The widget embed is nanocart's core use case. Drop a single `
```
**Important:** `data-store-id` must exactly match the storeId in your admin panel — it is lowercase, alphanumeric, and may contain hyphens (e.g., `cheeky-surf-shop`). A mismatch will prevent the widget from loading your products.
Place before `
` to avoid blocking page render. Placing in `
` also works but adds a small render-blocking penalty.
---
## Button Data Attributes
Three `data-` attributes turn any HTML element — `