Automart

A dealership operations platform for managing staff, customers, vehicles, inventory, reporting, and AI-assisted workflows.
Overview
Production Systems / Operations platform
Automart is a full-stack dealership platform for staff operations and customer-facing engagement. It combines a tool-based streaming AI assistant with an advanced SQL report builder, a granular 65-permission authorization model with per-member overrides, resilient Redis caching with circuit-breaker failover, and bilingual English/Arabic RTL support.
Technical stack
6 stack groups
Core Framework
4 instruments in this layerKey features
7 capability groups
Tool-Based Streaming AI Assistant
4 implementation notes- 01
Server-defined tools for staff, inventory, customer, message, notification, web-search, code-execution, and reporting queries via AI SDK 7 with Gemini, Vertex AI, and DeepSeek provider routing.
- 02
Dynamic SQL report builder with validated joins, aggregations, permission checks, and field-level redaction for sensitive data.
- 03
Queries execute through tightly-scoped server tools with sandboxed database access, keeping model output away from direct database execution.
- 04
Streams markdown tokens, live tool outputs, and structured source references with full stop-generation capability.
Architecture notes
5 recorded decisions
- 01
Designed a resilient cache-first architecture utilizing Upstash Redis with 250ms racing timeouts, a 60s circuit breaker, and PostgreSQL fallbacks.
- 02
Engineered a tool-based streaming AI architecture leveraging sandboxed server tools and field-level permission redaction for safe data access.
- 03
Developed a custom hybrid authorization system handling a 65-permission catalog, role defaults, and per-user allow/deny overrides.
- 04
Expanded the Vitest coverage to 662 cases across 168 files covering permissions, routes, caching, table flows, AI tools, and auth behavior.
- 05
Built a unified, high-performance data table engine that drives 9 application views with normalized URL paging and debounced filtering.
Project status
2 status records
Completed Infrastructure & Core Features
5 recorded items- 01
Robust hybrid authorization engine and matrix-view security control panel.
- 02
Tool-based AI conversational companion with sandboxed server-tool database access.
- 03
Resilient circuit-breaking cache architecture protecting stateful session layers.
- 04
Bilingual announcement workflows, CRM customer registries, and VIN-decoding vehicle engines.
- 05
Current Vitest suite tracks 662 tests across 168 test files alongside strict no-emit TypeScript checks.