About Bookly
Multi-tenant Next.js booking SaaS with Stripe and i18n.
Based on the architecture and codebase, Bookly is a comprehensive, multi-tenant marketplace SaaS platform for booking services. It is a powerful application comparable to advanced systems like Booksy or Calendly. It goes far beyond a simple calendar, offering a full-fledged business tool complete with recurring subscriptions, real-time chat, and advanced analytics. 1. Tech Stack The application is built on a modern, highly sought-after technology stack: Framework: Next.js (utilizing the modern App Router). Database: MongoDB (with Mongoose modeling). Cache & Performance: Redis (implemented for query caching and API Rate Limiting). Payments: Stripe (fully integrated subscriptions, webhooks, checkout, and customer portal). Real-time Communication: Pusher (used for a built-in, real-time messenger between businesses and clients). File Storage: Cloudinary (handling profile pictures, galleries, and business portfolios). Testing: Vitest environment setup for reliable code coverage. 2. Architecture (Three Independent Apps in One) The platform features three dedicated, heavily authenticated environments: A. Superadmin Panel (SaaS Owner Dashboard) A complete command center to manage the entire platform: Finance: Track Stripe revenue, transaction statistics, and payouts. User & Business Management: Ban accounts, reset passwords, and use the "impersonate" feature to log in as any user for support. Security & Logs: IP blacklisting, system log viewer, session monitoring, and database integrity checks. System Management: Clear Redis cache and toggle Feature Flags on the fly. B. Business Dashboard (For Service Providers) A powerful CRM and management tool for salons, clinics, or freelancers: Advanced Calendar: Custom-built calendar with daily, 3-day, weekly, and monthly views for scheduling and appointment management. Team Management: Create work schedules, assign shifts, and manage employee time-offs. Service & Pricing: Group services by categories, manage dynamic pricing, and assign specific employees to specific services. Client CRM: Track client visit history, contact details, private notes, tags, and a referral system. Marketing & Stats: Track revenue, view business stats, and manage the public portfolio/gallery. C. Client Application (End-User Portal) A sleek interface for users looking to discover and book services: Search & Map Integration: Find businesses by location or category with an interactive map view. Booking Flow: Seamless, multi-step booking process (select service -> choose employee -> pick available date/time -> confirm). Profile Management: Users can view upcoming and past appointments, cancel bookings, and manage their personal data. 3. Standout Features (Premium Add-ons) What separates this boilerplate from standard portfolio projects is the implementation of complex, enterprise-grade business logic: Google Calendar Sync: Highly requested two-way synchronization. Appointments made in Bookly appear in Google Calendar, and vice versa. Live Chat: A fully built-in, real-time messaging system (similar to Facebook Messenger) powered by Pusher. Bank-Level Security: Built-in CSRF protection, email verification, strict API rate limiting (to prevent DDoS), and robust cryptography for sensitive data. Summary: This is a production-ready, full-stack Next.js boilerplate that saves hundreds of hours of development time. It includes payments, calendars, real-time chat, maps, multi-tenant roles, and transactional emails—ready to be localized and scaled.