Alen James
repairo

garage workshop management software

Category

Full stack

Technologies

ReactReact
next jsnext js
node jsnode js
TailwindCSSTailwindCSS
React Native (Expo)React Native (Expo)
ExpressExpress
PostgreSQLPostgreSQL

Year

2025

Live Site

repairo

Introduction

Repairo is a production-ready, multi-tenant garage management SaaS platform I designed and built from scratch — targeting vehicle repair workshops and auto service centres in India (Kerala-first). The platform covers the entire repair lifecycle: a garage owner registers their shop, invites mechanics and staff with granular role-based permissions, creates repair job cards with vehicle photos, tracks progress through Pending → Started → Completed statuses, builds itemized invoices with parts and labour charges, calculates GST (inclusive or exclusive, per-item or per-service), generates professional PDF invoices with Indian numbering (Lakhs/Crores/Paise), and manages a spare parts inventory with stock movement history. On top of that, every registered shop gets listed on a public Workshop Finder page where customers can search by location, service type, and vehicle type. The entire platform runs on a multi-shop architecture — a super-admin can oversee all shops, while each shop's staff sees only their own data. Built with Next.js 16, Node.js/Express 5, and PostgreSQL, it's a lean, powerful, real-world SaaS product.
repairo media 0
repairo media 1
repairo media 2
repairo media 3
repairo media 4
repairo media 5
repairo media 0
repairo media 1
repairo media 2
repairo media 3
repairo media 4
repairo media 5

Execution & Role

What did I do?

I am the sole developer — I designed and built every layer: - System Architecture: Multi-tenant SaaS design with shop-scoped data isolation, role-based access control, and a super-admin layer for platform oversight. - Backend (Node.js + Express 5): Built 13 route modules — auth, repair, billing, invoice, customer, vehicle, inventory, shop, user, role, permission, tax, contact. Implemented middleware for JWT auth, RBAC authorization (slug-based, with additional and excluded permission overrides per user), rate limiting (login: 30/15min, signup: 10/hr, reset: 10/15min), file upload to AWS S3/Cloudflare R2, and PDF generation with PDFKit. - Database (PostgreSQL): Designed and built 15+ relational tables with indexed migrations for repairs, repair_bills, vehicles, customers, users, shops, roles, permissions, role_permissions, inventory_products, inventory_movements, tax_settings, contact submissions, and subscription entries. Used optimistic locking (version columns, request_id deduplication) to prevent double-submission on billing and inventory mutations. - RBAC System: Built a three-layer permission system: (1) role-level permissions via role_permissions table, (2) per-user additional_permissions array (explicitly granted), (3) per-user excluded_permissions array (explicitly denied). Frontend uses an RBACProvider React context that loads effective slugs at login and exposes a can() hook for conditional rendering. - Billing Engine: Built a transactional billing system with inventory reconciliation — when a bill is saved, parts quantities are automatically deducted from inventory stock; if the bill is edited, only the delta is applied. Tax calculation supports inclusive (UK/EU style) and exclusive (India/US style) taxes, scoped to parts-only, service-only, or all items. Totals use fp-safe rounding (eps * 100 / 100). - PDF Invoice Generator: Built with PDFKit — generates a professional, branded invoice with shop logo, vehicle/customer details, itemized parts table, service charge, tax breakup (snapshot at time of billing), total in digits and Indian words (Rupees/Paise with Lakh/Crore notation), payment status badge, and QR code placeholder. Themed in teal/dark palette. - Public Workshop Finder: Built a scored search system — queries filter by country, state, city, location text, and service tags. Results are ranked by relevance score (exact city match = 100pts, partial = 60, state = 40, address = 30, name = 20). Vehicle type and service type filters also supported. - Frontend (Next.js 16): Built a full dashboard with 20+ pages, a public marketing site with SEO/OG/robots/sitemap, and a public workshop finder. Used shadcn/ui + TailwindCSS 4 + Recharts for analytics.

Project Highlights

Features & Solutions

1. REPAIR JOB CARD MANAGEMENT - Create repair job cards with: vehicle number, owner name, phone, WhatsApp number, vehicle type, brand, model, KM reading, service type (Repair / Servicing / Inspection / Modification / Other) - Upload up to 10 vehicle photos per repair (stored on AWS S3/R2) - Log customer complaints as a structured JSON array - Set priority level and expected completion date - Track repair status: Pending -> Started -> Completed - Assign an attending worker to each repair - View repair with full history: shop name, submitted-by name, bill ID, and payment status - Search by vehicle number or owner name; filter by status, service type, vehicle type, worker, and date range - Soft delete with deleted_at timestamp (no data is permanently lost) - Dashboard stats: total repairs, pending count, total revenue, recent 3 repairs, average completion time (hours), worker active job counts 2. SMART BILLING & INVOICING - Build itemized bills with parts (name, quantity, unit cost) and labour/service charge - Link bill items to inventory products for automatic stock deduction - Tax engine: configure per-shop tax rules (GST, VAT, Sales Tax, HST, etc.) - Inclusive tax (already in price — UK/EU style) or exclusive (added on top — India/US) - Apply tax to: all items, parts only, or service only - Multiple tax rules per bill (e.g., CGST 9% + SGST 9% both exclusive) - Tax snapshot stored on each bill — historical bills never shift if tax rates change - Bill totals: parts subtotal, service charge, per-tax amounts, grand total - Floating-point safe rounding (eps correction, 2 decimal precision) - Payment status: Unpaid / Partial / Paid — updateable separately after saving - Optimistic concurrency lock: inventory_revision prevents double-deduction if two users edit the same bill simultaneously (returns 409 conflict) - Up to 500 line items per bill 3. PROFESSIONAL PDF INVOICE GENERATION - Generated server-side with PDFKit, uploaded to S3/R2, URL returned for download - Branded with shop logo, shop address, contact details - Sections: vehicle & customer info, repair details, itemized parts table, service charge row, tax breakup per rule (rate, applies-to, inclusive/exclusive, calculated amount) - Grand total in digits and Indian words: e.g. "Fifteen Thousand Eight Hundred Rupees and Fifty Paise" - Supports Indian number system: Crore, Lakh, Thousand notation - Payment status badge (Paid in green / Unpaid in amber) - Multi-currency symbol support (INR, USD, EUR, GBP, AED) - Themed teal/dark color palette with clean table layout 4. INVENTORY MANAGEMENT (SPARE PARTS) - Manage spare parts stock per shop: SKU, name, category, unit (piece/litre/kg/set/etc.), storage location, cost price, selling price, stock quantity, reorder level - Product images (uploaded to S3/R2) - Stock movement log: every stock change is recorded with kind (opening, receipt, adjustment, repair_issue, repair_return), quantity delta, balance after, reason, actor, and linked repair ID - Automatic stock deduction when a bill is saved with inventory-linked items - Automatic stock return when a bill is edited (delta reconciliation): only the difference between old and new quantities is applied - Anti-duplicate protection: request_id unique constraint on movements prevents replayed requests from doubling stock changes - Filter inventory by shop (super-admin can see cross-shop) - Low-stock detection via reorder_level comparison - View full movement history per product 5. VEHICLE & CUSTOMER MANAGEMENT - Customer records: name, phone, linked vehicles - Vehicle records: vehicle number, brand, model name, type (car/bike/truck/etc.), owner link, vehicle image - Lookup vehicle by number plate (pre-fill repair form instantly) - Customer detail page: full repair history for that customer's vehicles - Vehicle detail page with repair timeline 6. ROLE-BASED ACCESS CONTROL (RBAC) - Fully custom RBAC system with permission slugs (e.g., view:repairs, create:repair, edit:repair, delete:repair, view:invoices, manage:inventory, view:users, create:users, manage:settings, view:shops, create:shops, etc.) - Three-layer effective permission logic: 1. Role-level: permissions assigned to the user's role via role_permissions table 2. Additional override: user-specific permissions explicitly granted (additive) 3. Exclusion override: user-specific permissions explicitly denied (takes highest priority) - Frontend RBACProvider context fetches effective slugs at login and exposes can(slug) hook - All dashboard pages conditionally render actions (create, edit, delete buttons) based on can() - Backend authorize() middleware checks effective permissions for every protected route - authorizeOrSelf() for user profile endpoints (users can always edit their own profile) - Super-admin role bypasses all shop-scoping and sees all data platform-wide 7. MULTI-SHOP ARCHITECTURE - Each shop is an independent tenant with its own: users, repairs, vehicles, customers, inventory, bills, tax settings, and currency - Super-admin can see and manage all shops, all repairs, all users across the platform - Shop-scoped users only see their own shop's data — enforced server-side on every query - Public shop listing: shops can opt-in to be discoverable on the public Workshop Finder - Each shop has: name, logo (S3), address, city, state, country, location description, phone, services offered, vehicle types served, and opening hours per day 8. PUBLIC WORKSHOP FINDER - Public-facing search page (/workshops) — no login required - Scored relevance search: exact city match (100pts) > city partial (60) > state (40) > location text (30) > address (30) > shop name (20) - Filter by country, state, city, vehicle type, and service type - Predefined service tags: General Servicing, Oil Change, Brake Repair, Engine Diagnostics, Tire Replacement & Balancing, Wheel Alignment, AC Service & Repair, Battery & Electrical, Denting & Painting, Car Wash & Detailing, Transmission Repair - Shows: shop name, location, phone, services, vehicle types, opening hours for today - No authentication required — fully SEO-indexed public page 9. AUTHENTICATION & SECURITY - Shop registration: owner registers shop + account in one step - JWT auth with session versioning (session invalidated on password reset) - Password reset via email (Nodemailer) with time-limited secure token - Rate limiting on all auth endpoints (express-rate-limit): login 30/15min, signup 10/hr, reset 10/15min - Phone number validation with libphonenumber-js (international format check) - Session check endpoint for persistent login on page refresh - bcryptjs password hashing 10. MULTI-CURRENCY & TAX SETTINGS - Per-shop currency selection from full list of country currencies - Currency symbol displayed throughout dashboard (bills, stats, inventory prices) - Tax settings per shop: create named tax rules (GST 18%, VAT 20%, CGST 9%, etc.) - inclusive/exclusive toggle and scope (all/parts/service) per tax rule - Tax settings panel in settings → taxes 11. USER MANAGEMENT - Shop owners can create, edit, and delete team members (mechanics, receptionists, managers) - Assign roles and configure additional/excluded permissions per user - Profile image upload per user (S3/R2) - Check phone number availability before creating - User detail view with full info - Super-admin can manage all users across all shops 12. DASHBOARD & ANALYTICS - Dashboard cards: total repairs, pending repairs, total revenue, average completion time - Recent repairs table (last 3) with quick-access status and shop name - Worker load overview: active jobs per staff member - Invoices page: all billed repairs with payment status filter - Recharts integration for future analytics expansions 13. SETTINGS - Shop profile: name, logo, address, city, state, country, phone, services, vehicle types, opening hours, public visibility toggle - Currency: select shop currency from global list - Taxes: create/edit/delete tax rules - Profile: personal account settings - Subscription: plan management (stub for future billing) 14. MOBILE APP (EXPO) - React Native (Expo) companion app (repairo-app in repo) for on-the-go access - Built for Android (EAS build pipeline) - Staff can log repairs, view job cards, and update statuses from the workshop floor

CALL ME NOW

I'm looking for a challenging new position that will help me squeeze out the best of my creative juices!

If you like the sound of a web designer, developer and graphic designer rolled into one whacky human, then I'm your man. Don't hesitate to contact me - I'm eager to hear from you.

More where that
came from...

View All Works