Open Source • MIT License

Cannabis Admin Dashboard

A production-ready, enterprise-grade admin dashboard for cannabis dispensary management featuring multi-tenant isolation, real-time updates, HIPAA-compliant audit logging, and advanced analytics.

View on GitHub Documentation

Core Features

Everything you need to run a compliant, efficient cannabis dispensary

Multi-Tenant Architecture

Complete data isolation per dispensary with Row-Level Security policies. Each tenant's data is cryptographically separated.

Real-Time Updates

WebSocket-powered live dashboard metrics, inventory alerts, and compliance notifications via Supabase Realtime.

HIPAA Compliance

Complete audit trail logging, PII hashing, configurable retention policies, and encrypted data at rest.

Advanced Analytics

Pre-aggregated materialized views for instant analytics queries. RFM customer segmentation, sales patterns, and forecasting.

8 Dashboard Layouts

Choose from simple or detailed views. From "Cash Register" for budtenders to "Owner's Summary" for executives.

Type-Safe

End-to-end TypeScript with auto-generated Supabase types. Catch errors at compile time, not runtime.

Dashboard Layouts

Users can switch layouts anytime via Configuration settings

Simple Layouts

  • The Big Three 3 large gradient cards — Revenue, Sales, Best Seller
  • Health Check Traffic light status indicators (green/yellow/red)
  • Cash Register Budtender-focused register-style display
  • Owner's Summary Plain English narrative briefing for executives

Detailed Layouts

  • Metric Strips Compact horizontal rows with inline charts
  • Data Tables Tables with sparkline trends and sorting
  • Sidebar Layout Sidebar metrics with main content area
  • Tabbed Panels Category tabs with metric bar navigation

Role-Based Access Control

5-tier permission hierarchy with granular access control

Patient Budtender Manager Owner Admin

Database Schema

PostgreSQL with Row-Level Security and Materialized Views

Core Tables

  • dispensaries Organization/tenant data
  • users Profiles with roles
  • products Cannabis catalog
  • customers PII-protected records
  • transactions Sales transactions
  • inventory_snapshots Historical tracking
  • compliance_flags Violations & warnings
  • audit_logs HIPAA-compliant trail

Materialized Views

  • mv_daily_sales_summary Daily aggregates
  • mv_product_performance Rankings
  • mv_customer_segments RFM analysis
  • mv_inventory_value By category
  • mv_hourly_sales_patterns Staffing
  • mv_staff_performance Sales metrics
  • mv_compliance_dashboard Flag summary

Edge Functions

  • generate-report PDF generation
  • sync-metrc State compliance
  • sync-pos POS integration
  • calculate-analytics Heavy compute
  • refresh-views MV refresh cron

Third-Party Integrations

Connect your existing systems

Metrc (State Compliance)
Square POS
Clover POS
Webhook System

Tech Stack

Modern, scalable, and serverless

React 19 Frontend
TypeScript Language
Supabase Backend
Vite Build Tool
Chakra UI Components
PostgreSQL Database
Recharts Charts
Zustand State

Roadmap

Planned features and enhancements