Settings

Configure your inventory intelligence system

Data Sync

Sync pulls all products, variants, orders, and inventory data from your Shopify store. It calculates daily sales, generates alerts, and updates forecasts.

Configuration

These settings are configured via environment variables in .env.local

SHOPIFY_STORE_URL

Your Shopify store URL (e.g., zerobra.myshopify.com)

SHOPIFY_ACCESS_TOKEN

Admin API access token with read_products, read_orders scope

LOW_STOCK_THRESHOLD

Units below which stock is considered low (default: 5)

OVERSTOCK_THRESHOLD_DAYS

Days of stock above which is considered overstock (default: 90)

DEAD_STOCK_DAYS

Days with zero sales to flag as dead stock (default: 180)

SYNC_INTERVAL_HOURS

Auto-sync interval in hours (default: 6)

Database

Data is stored in a local SQLite database at data/inventory.db. This includes product snapshots, order history, daily sales aggregates, alerts, and event logs. The database is automatically created on first sync.