Emblem
BOOKCINESPACE™ ENTERPRISE
Operations Manual & Architecture Bible • v3.3.0
Index & TOC Raw Markdown (.md)

BOOKCINESPACE™

Private Screens • Epic Celebrations • Enterprise SaaS

THE DEFINITIVE PLATFORM BIBLE & OPERATIONS HANDBOOK

The comprehensive end-to-end technical architecture, multi-portal operational manual, financial escrow specifications, statutory legal framework, and venue playbooks for India's premier private cinema lounge network.

SYSTEM ARCHITECTURE
Cloudflare Workers • D1 SQLite • R2 Vault
LEGAL JURISDICTION
IT Act 2000 (Sec 10A) • Stamp Act Art 5(c)
STATUTORY TAXATION
CGST SAC 998314 • SAC 998559 (T+1 Escrow)
STANDARDS COMPLIANCE
DPDP Act 2023 • Tier-1 Gold Certified

Master Table of Contents & Index

PART I: THE ENTERPRISE SYSTEM ARCHITECTURE & TOPOLOGY
PART II: THE CUSTOMER BOOKING MARKETPLACE (www.bookcinespace.in)
PART III: THE HOST PARTNER PORTAL (partner.bookcinespace.in)
PART IV: THE MASTER ADMIN CONTROL CENTER (partner.bookcinespace.in/admin.html)
PART V: FINANCIAL MATHEMATICS, TAXATION & REVENUE RECONCILIATION
PART VI: STATUTORY LEGAL, REGULATORY & PRIVACY COMPLIANCE
PART VII: VENUE HARDWARE INTEGRATION & OPERATIONS SOP
PART VIII: PRODUCTION RUNBOOKS, TROUBLESHOOTING & DISASTER RECOVERY
Part I of IX

The Enterprise System Architecture & Topology

Chapter 1: Cloudflare Edge-Native Infrastructure

BookCineSpace operates entirely on Cloudflare's serverless edge network across 300+ points of presence (PoPs) globally, ensuring that customer requests from Mumbai, Chennai, Bengaluru, Delhi, or tier-2 Indian cities are processed within <30ms latency.

Edge Performance Principle: Unlike monolithic Node.js containers that experience cold start delays, Cloudflare V8 isolates start in under 5ms and consume less than 5MB of base memory per worker.
Infrastructure Layer Cloudflare Native Technology Operational SLA / Performance Target
Edge Routing & Compute Cloudflare Workers (V8 Isolates) <30ms edge latency, 0ms cold starts
Relational Database Cloudflare D1 (Distributed SQLite) Sub-5ms read latency, ACID-compliant writes
Media & Asset Vault Cloudflare R2 Object Storage Zero egress fees, high-speed CDN streaming
Edge Distributed Caching In-Worker Memory Cache (60s TTL) Instant response for public cinema catalog

Chapter 2: Progressive Web App & Mobile Native Architecture

The platform features an enterprise Progressive Web App (PWA) controlled by public/sw.js (v12 cache). Static app shells, fonts, brand logos, and stylesheets are cached locally, allowing customers and hosts to launch the platform like a native mobile application directly from their home screens.

Dual App Manifests: public/manifest.json powers the Customer Marketplace with a dark luxury gold theme (#0d0614), while public/manifest-partner.json powers the high-density Host Partner Portal.

Chapter 3: Security Architecture & Cryptographic Defenses

Security is implemented across multiple defensive rings:

Chapter 4: Complete Relational Database Schema Catalog

The persistence tier is built on Cloudflare D1. Below is the statutory specification of the core tables:

Table Name Primary Key Foreign Keys Operational Purpose
merchants id (TEXT) None Cinema host business entities, legal names, bank details, platform fees
theaters id (TEXT) merchant_id -> merchants.id Screen suites, seating capacity, base pricing, 4K specs, photos
bookings id (TEXT) theater_id -> theaters.id Master reservation ledger, customer info, 4-digit PINs, escrow status
tickets id (TEXT) None Omnichannel support grievances for hosts and customers
ticket_messages id (TEXT) ticket_id -> tickets.id Threaded conversation messages with internal staff note flags
host_agreements id (TEXT) merchant_id -> merchants.id IT Act 2000 digital eSign contracts, Aadhaar hashes, digital e-stamps

Chapter 5: Master REST API Route Directory

Method Endpoint Authentication Description
GET /api/public/theaters Public Returns live verified screening lounges with city filtering
POST /api/public/create-order Public Creates Razorpay order and holds 10-minute slot lock
POST /api/merchant/login Public Host authentication using verified Phone + PIN
GET /api/merchant/dashboard Host (JWT) Host financial escrow, active reservations, and screen status
POST /api/admin/certify-theater Admin (JWT) Awards Tier-1 Gold Certification to auditorium
GET /api/admin/tickets Admin (JWT) Universal support desk queue with status and type filters
Part II of IX

The Customer Booking Marketplace (www.bookcinespace.in)

Chapter 6: Consumer Discovery & Edge Geo-Location

Cloudflare Edge analyzes inbound client IP headers (cf.city) to detect the user's nearest metropolitan hub (e.g. Chennai, Bengaluru, Coimbatore). The consumer marketplace dynamically highlights certified private theaters, distance estimates, and average guest review scores.

Chapter 7: Showtime Selection & Collision Lock Matrix

The platform standardizes screening times into four 3-hour entertainment blocks:

Slot Designation Showtime Window Turnaround Cleaning Buffer Typical Occasion
Morning Matinee 10:00 AM - 01:00 PM 01:00 PM - 02:00 PM Student groups, gamers, corporate presentations
Noon Screening 02:00 PM - 05:00 PM 05:00 PM - 06:00 PM Family movie matinees, children's birthdays
Twilight Premier 06:00 PM - 09:00 PM 09:00 PM - 10:00 PM Prime romantic dates, anniversaries, proposals
Midnight Chill 10:00 PM - 01:00 AM 01:00 AM - Close Cinephile marathons, late night friend parties

Chapter 8: Dynamic Guest Capacity & Surcharge Engine

The base slot price covers up to the auditorium's base_capacity (typically 4 persons). Any guest count exceeding base capacity is automatically charged an extra guest fee (typically ₹400/person), subject to the maximum fire and seating limits of the lounge.

BaseSlotTotal = BaseRent + ExtraGuestSurcharge + OccasionCharge + AddonsTotal
ExtraGuestSurcharge = max(0, TotalGuests - BaseCapacity) * ExtraGuestFee

Chapter 12: Cryptographic Keyless Access & Digital VIP Pass

Upon successful payment verification, the system generates a cryptographically random 4-digit PIN. This PIN is valid exclusively for the 3-hour screening window. The customer's mobile VIP pass displays the PIN, lounge navigation coordinates, and a host-scannable QR code.

Zero Physical Keys: Lounge reception staff do not need to manage physical keys or wait at room doors. Guests punch the 4-digit PIN into the digital door lock for instant automated admission.
Part III of IX

The Host Partner Portal (partner.bookcinespace.in)

Chapter 16: Host Economics & The 0% Standee Revolution

Traditional private theater operators suffer from high aggregator fees (15% to 25%) and customer no-shows. BookCineSpace transforms host profitability:

Chapter 18: Statutory Legal Onboarding & Aadhaar OTP eSign

Under Section 10A of the Information Technology Act, 2000, every host signs a legally binding Master Services Agreement via cryptographic Aadhaar OTP. The platform hashes the Aadhaar number with SHA-256 for zero-knowledge privacy compliance, issues an Article 5(c) Digital e-Stamp ID, and stores the electronic audit dossier.

Chapter 19: Screen Slot Management & The 1-Click Blocker

Hosts can block any slot in real-time (for offline walk-ins, projector calibration, or private maintenance). The slot is instantly removed from the marketplace catalog without requiring phone calls or administrative support.

Chapter 22: Host Financial Escrow & T+1 Bank Settlements

Financial Component Standard Marketplace Booking 0% Standee QR Booking
Gross Slot Revenue ₹4,549.00 ₹4,549.00
Customer Convenience Fee (6%) ₹272.94 ₹272.94
Platform Commission Rate 4.0% (-₹181.96) 0.0% (₹0.00 Waived!)
GST on Platform Commission (18%) -₹32.75 ₹0.00 (Waived!)
Payment Gateway Processing Fee (2.36%) -₹113.80 -₹113.80
Net Host Bank Settlement (T+1) ₹4,220.49 ₹4,435.20 (+₹214.71 Extra Profit)
Part IV of IX

The Master Admin Control Center (admin.html)

Chapter 27: Admin Security & Dual-Token Persistence

Master Admin access is guarded by a PBKDF2/SHA-256 hashed security PIN. Upon authentication, tokens are written to both sessionStorage and localStorage, ensuring that administrative operations remain active across multi-tab triage workflows.

Chapter 29: Quality Certification & Welcome Kit Dispatch

Administrators review submitted theater specifications, acoustics, and photos. Clicking "Certify Screen" triggers:

  1. Issuance of unique Tier-1 Certification Grade (e.g. CS-CERT-2026-CHE001).
  2. Counter-signing of the digital host agreement with corporate legal seal.
  3. Automated dispatch of printable Welcome Kit (A4 Certificate, A5 Desk Standee, and 0% QR visiting cards).

Chapter 34: Dual-Sided Support Ticketing Desk

The support engine (src/routes/ticket.routes.ts) processes both host onboarding inquiries and customer grievances. Administrators can reply directly via the flat-DOM modal, attach internal staff notes, and transition statuses across OPEN, IN_PROGRESS, RESOLVED, and CLOSED.

Part V of IX

Financial Mathematics, Taxation & Escrow Governance

Chapter 36: Escrow Architecture & State Machine

Customer funds are held in statutory escrow until 12 hours post-screening. If no dispute is filed, the settlement engine marks the booking SETTLED and triggers automated T+1 NEFT disbursals. If a dispute is lodged, funds are quarantined in DISPUTED status until admin arbitration concludes.

Chapter 39: Monthly GST Tax Invoices (SAC 998314) & ITC SOP

On the 1st of every month, consolidated GST invoices are generated for all platform commissions deducted. Host partners use these invoices to claim 100% Input Tax Credit (ITC) under Section 16 of the CGST Act, 2017.

Part VI of IX

Statutory Legal, Regulatory & Privacy Compliance

Chapter 41: Legal Validity under the IT Act, 2000

Under Section 10A of the Information Technology Act, 2000, electronic contracts formed via digital platforms hold full legal validity. Section 65B electronic evidence certificates accompany all digital contracts, making them immediately admissible in Indian courts.

Chapter 44: DPDP Act 2023 & Zero-Knowledge Aadhaar Privacy

Under the Digital Personal Data Protection Act, 2023, the platform strictly avoids storing 12-digit plain-text Aadhaar numbers. All identity verification challenges utilize one-way SHA-256 privacy hashing, retaining only masked last-4 digits for record keeping.

Part VII of IX

Venue Hardware Integration & Operations SOP

Chapter 45: Smart Keypad Lock Integration

Venues utilize digital smart locks (TTlock, Tuya Zigbee, or offline algorithmic locks). Locks are programmed to activate the customer's 4-digit PIN 10 minutes prior to showtime and revoke access when the slot terminates.

Chapter 47: The 60-Minute Turnaround Protocol

Staff execute a strict 60-minute turnaround between 3-hour screenings: 15 minutes of sanitization, 15 minutes of UVC air purification and AC cooling, 15 minutes of celebration decor setup, and 15 minutes of AV calibration and snack staging.

Part VIII of IX

Production Runbooks, Troubleshooting & Disaster Recovery

Chapter 49: The HTML DOM Modal Nesting Bug & Prevention

Root Cause Analysis: In monolithic admin HTML templates, unclosed <div> tags in preceding modals cause following modals to be nested inside hidden parents (display: none), rendering them invisible on screen.

Prevention Protocol: All modals must exist as direct top-level overlays at [depth 1] under <body>, and JavaScript openers must pair classList.remove('hidden') with explicit style.display = 'flex'.

Chapter 50: PWA Service Worker Cache Invalidation SOP

Whenever JavaScript or CSS assets are updated, the developer must increment CACHE_NAME in public/sw.js (e.g. to bookcinespace-pwa-v12) and append query version parameters (admin.js?v=2.9.2) to ensure client browsers evict stale cached app shells.

Official Document Verification: BookCineSpace™ Enterprise Platform Group • Version 3.3.0

Certified Production Distribution • For technical inquiries contact partner@bookcinespace.in