Public showcase repository of SmartWidget: embeddable AI chat widget + browser admin panel + CRM-ready backend.
This edition is prepared for portfolio/review purposes:
- safe for public GitHub
- no production secrets
- mock-friendly integration mode
- clean quickstart for local demo
By default SHOWCASE_SANDBOX=1, so chat works without real provider keys.
backend/FastAPI backendbackend/static/widget.jsembeddable widget scriptbackend/static/admin.htmladmin panel UIbackend/.env.examplesafe environment templatebackend/scripts/smoke and operational scripts
- production
.env - real database and runtime logs
- private customer configurations
- proprietary internal deployment details
cd backend
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
cp .env.example .env
uvicorn main:app --host 0.0.0.0 --port 8002Open:
- Widget demo:
http://localhost:8002/static/demo.html - Admin panel:
http://localhost:8002/static/admin.html
<script
defer
src="https://YOUR-DOMAIN/static/widget.js"
data-backend="https://YOUR-DOMAIN"
data-title="Smart Assistant"
data-subtitle="Online now"
data-welcome="Здравствуйте! Чем могу помочь?"
></script>POST /chatchat exchangePOST /leadlead capturePOST /callbackcallback requestGET /catalogcatalog itemsGET /healthhealthcheckGET /api/widget-configruntime widget config
See docs/ARCHITECTURE.md.
- Demo script:
docs/DEMO_PLAYBOOK.md - Review checklist:
docs/REVIEW_CHECKLIST.md - Feature matrix:
docs/FEATURE_MATRIX.md - Screenshot guide:
docs/SCREENSHOT_GUIDE.md - Embed examples:
docs/EMBED_EXAMPLES.md
- Workflow:
.github/workflows/showcase-ci.yml - Checks:
- Python syntax/compile for core backend modules
- Local app boot
- Health/static/config HTTP checks
- Smoke script execution
- On-prem guide:
docs/DEPLOY_ONPREM.md - Cloud guide:
docs/DEPLOY_CLOUD.md - Operations runbook:
docs/OPERATIONS_RUNBOOK.md
This repository is distributed under a proprietary showcase license.
See LICENSE.
Additional usage terms: NOTICE, docs/SHOWCASE_TERMS.md.