• Blog
  • Docs
  • Pricing
  • We’re hiring!
Log inSign up
Mastermind

Mastermind

Protyre_SmartServiceScheduler

Public
Like
1
Protyre_SmartServiceScheduler
Home
Code
2
shared
1
README.md
Branches
1
Pull requests
Remixes
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
6/2/2025
Viewing readonly version of main branch: v2
View latest version
README.md

Protyre Smart Service Scheduling Tool

A comprehensive booking and management system for Protyre tyre service centers.

Features

Customer Booking Interface

  • Service type selection (tyre replacement, wheel alignment, brake check)
  • Branch location selection
  • Date and time slot picker
  • Customer and vehicle details form
  • Booking confirmation with SMS/Email notifications

Branch Admin Panel

  • View all bookings by date and time
  • Technician availability management
  • Time slot management (add/block slots)
  • Utilization charts per technician
  • Auto-balance bookings across technicians
  • Daily summary dashboard

Notifications

  • SMS and email confirmations
  • Booking reminders
  • Daily summary reports

Project Structure

├── backend/
│   ├── database/
│   │   ├── migrations.ts    # Database schema
│   │   └── queries.ts       # Database operations
│   ├── routes/
│   │   ├── bookings.ts      # Booking management
│   │   ├── admin.ts         # Admin operations
│   │   └── notifications.ts # SMS/Email handling
│   └── index.ts             # Main API server
├── frontend/
│   ├── components/
│   │   ├── App.tsx          # Main app component
│   │   ├── BookingForm.tsx  # Customer booking interface
│   │   ├── AdminPanel.tsx   # Admin dashboard
│   │   └── Dashboard.tsx    # Summary dashboard
│   ├── index.html           # Main HTML template
│   ├── index.tsx            # Frontend entry point
│   └── style.css            # Custom styles
└── shared/
    └── types.ts             # Shared TypeScript types

Technology Stack

  • Backend: Hono.js API framework
  • Database: SQLite with Val Town's sqlite service
  • Frontend: React with TypeScript
  • Styling: TailwindCSS
  • Notifications: Email via Val Town's email service
  • Charts: Chart.js for utilization visualization

Environment Variables

Set these in your Val Town environment:

  • TWILIO_ACCOUNT_SID - For SMS notifications
  • TWILIO_AUTH_TOKEN - For SMS authentication
  • TWILIO_PHONE_NUMBER - Your Twilio phone number

Getting Started

  1. The backend API runs on the main HTTP endpoint
  2. Access the customer booking interface at /
  3. Access the admin panel at /admin
  4. View the dashboard at /dashboard

API Endpoints

Customer Endpoints

  • GET /api/branches - Get all branch locations
  • GET /api/services - Get available services
  • GET /api/availability - Get available time slots
  • POST /api/bookings - Create new booking

Admin Endpoints

  • GET /api/admin/bookings - Get all bookings
  • GET /api/admin/technicians - Get technician availability
  • POST /api/admin/slots - Manage time slots
  • GET /api/admin/dashboard - Get dashboard data
FeaturesVersion controlCode intelligenceCLIMCP
Use cases
TeamsAI agentsSlackGTM
DocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareers
We’re hiring!
Brandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Open Source Pledge
Terms of usePrivacy policyAbuse contact
© 2026 Val Town, Inc.