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_URLYour Shopify store URL (e.g., zerobra.myshopify.com)
SHOPIFY_ACCESS_TOKENAdmin API access token with read_products, read_orders scope
LOW_STOCK_THRESHOLDUnits below which stock is considered low (default: 5)
OVERSTOCK_THRESHOLD_DAYSDays of stock above which is considered overstock (default: 90)
DEAD_STOCK_DAYSDays with zero sales to flag as dead stock (default: 180)
SYNC_INTERVAL_HOURSAuto-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.