MyGarage: Mobile & Self-Hosted Cloud Platform for Vehicle Management
Product Challenge
Vehicle maintenance and personal fleet tracking often relies on fragmented apps or third-party SaaS tools with opaque subscriptions and public cloud storage lacking rigorous privacy and data sovereignty guarantees.
What the Solution Solves
Full-featured mobile and cloud platform for managing vehicle logs, operating expenses, fuel efficiency, and insurance policies:
- Native Cross-Platform Frontend: Flutter-engineered mobile application for iOS and Android, directly consuming self-hosted Supabase endpoints.
- Self-Hosted Supabase Infrastructure: Dedicated deployment on an ARM64 server using containers, ensuring complete data ownership and zero external database vendor lock-in.
- Decoupled Serverless Layer: 10 Deno Edge Functions handling payment webhooks (Stripe and RevenueCat) and maintenance notifications.
Production Risks & Failures Prevented
- Prevents Cross-Tenant Data Leaks: 28 SQL migrations enforcing strict Row-Level Security (RLS) policies across 100% of PostgreSQL tables, ensuring users can never query records outside their own account.
- Prevents Duplicate Billing Events: Idempotent financial webhook handlers with cryptographic signature validation across Stripe and RevenueCat.
- Prevents SaaS Infrastructure Inflation: Fully self-hosted stack running on dedicated hardware with predictable fixed operational costs.
Engineering Notes & Systems Design
Technical trade-offs, performance benchmarks, and lessons learned building mission-critical software.
Laya on CPU, No GPU: What I Measured on Three Machines Before Putting It in Production
38ms was with a GPU. On CPU, 94 to 848ms depending on the machine. Real benchmarks, the thread trap, ONNX vs PyTorch, and how the deployment ended up on a VPS.
Hexagonal Architecture and DDD in Laravel: Decoupling Domain from Eloquent with DTOs and Repositories
How to architect complex enterprise applications in Laravel without letting Eloquent pollute business rules: Ports and Adapters, immutable PHP 8.2 Value Objects, and strict layer boundaries.
PHP at Planetary Scale: Slack, Meta, Strict Typing with PHPStan, and Fibers Concurrency (Part 4)
Why tech giants like Slack, Wikipedia, and Meta continue investing in PHP: the operational economics of stateless workloads in Kubernetes, maximum static analysis, and cooperative concurrency with Fibers.