BC
BigCommerce Data Analyst Mock-first Cloudflare Sandbox SDK demo

Commerce analytics code interpreter

Ask store questions. Generate Python. Preview trusted answers.

A polished first demo for a merchant-facing data analyst that turns BigCommerce questions into pandas analysis, matplotlib charts, and R2-backed artifacts through the Cloudflare Sandbox SDK path.

Dataset cards

Select a built-in mock dataset or stage a local CSV. The current version does not upload bytes to a backend; it previews the intended interaction safely in-browser.

Upload merchant CSV

Optional mock input. Select a file to update the staged dataset label.

Analyst workspace

Natural language examples update the generated Python notebook and deterministic mock result so the demo feels functional before live Sandbox integration.

Ask a commerce question

Use a suggested query or write your own. The mock planner keeps the output deterministic for demos.

Architecture notes

The demo is mock-first, but the seams map directly to a production Cloudflare Sandbox SDK code interpreter flow.

Worker UI + API

Serves the analyst surface, validates requests, creates analysis sessions, and proxies status/results to the browser.

R2 datasets

Stores uploaded CSVs, generated notebooks, chart PNGs, and execution logs with signed URLs for result retrieval.

Sandbox SDK

Creates isolated code interpreter sessions, writes files, installs Python dependencies, and executes generated commands.

pandas + matplotlib

Runs dataframe transforms, aggregations, forecasting helpers, and chart rendering without executing code inside the Worker.