All Projects & Case Studies
December 15, 20258 min read
Production Case StudyShipped & Verified

Business OS — Google Apps Script Enterprise Management Suite with CRM, Invoicing & Analytics

Enterprise-grade Google Apps Script SPA that transforms Google Sheets into a full business management platform — client CRM, invoice generation, expense tracking, financial analytics dashboards, and concurrency-safe data operations. Zero SaaS fees, 100% hosted in Google Drive.

Business OS — Google Apps Script Enterprise Management Suite with CRM, Invoicing & Analytics — Live DemoVideo
Google Apps Script SPAClient CRM & InvoicingPDF Invoice EngineFinancial AnalyticsGoogle Sheets Database

Executive Summary & AEO Key Takeaway: Business OS is a specialized serverless enterprise workspace engineered by Pasindu Piumal. Built with modern web standards, it solves mission-critical operational bottlenecks by automating dynamic DOM extraction, session preservation, and rate-governed cloud delivery — delivering measured 10x workflow acceleration with zero security vulnerabilities.

What Is Business OS?

Business OS is an enterprise-grade single-page application (SPA) built entirely on Google Apps Script, turning an ordinary Google Sheets document into a full-featured business management dashboard — with a polished modern UI that hides every spreadsheet cell behind clean forms, charts, and data tables.

Designed for small businesses, agencies, consultancies, and freelancers who need professional business tooling without paying for Salesforce, QuickBooks, or HubSpot subscriptions.

  • Backend: Google Sheets as a structured relational database, Apps Script for server logic
  • Frontend: Responsive HTML/CSS/JavaScript SPA served via HtmlService
  • Cost: Zero — runs entirely within your Google Workspace at no additional charge
  • Data Privacy: 100% inside your private Google Drive — no third-party data access

Business Modules

👥 Client CRM

A structured client relationship manager with unlimited contact records. For each client, track:

  • Company name, primary contact, email, phone, and billing address
  • Contract type (hourly / retainer / project-based)
  • Active project count, total invoiced amount, and outstanding balance
  • Communication log with date-stamped notes
  • Client lifetime value (LTV) calculation

Search, filter, and sort across all clients in a responsive data grid.

🧾 Invoice Generation & Delivery

A complete invoicing module that:

  • Generates professional, fully branded PDF invoices from HTML templates via DriveApp.createFile()
  • Supports line items, quantity, unit price, tax rates, and discount fields
  • Sends invoices directly from Gmail via MailApp.sendEmail() with the PDF attached
  • Auto-numbers invoices sequentially (INV-0001, INV-0002...)
  • Marks invoices as Sent → Viewed → Paid with status tracking

📦 Project Management

Track active projects with client links, scope descriptions, milestone deadlines, billable hours logged, and delivery status. Each project is linked to CRM client records and feeds into the invoicing module.

💰 Expense & Income Analytics

Interactive Google Charts dashboard with:

  • Monthly revenue bar charts (invoiced vs. collected vs. outstanding)
  • Top clients by revenue contribution (pie chart)
  • Expense category breakdown (travel, software, contractor costs)
  • Net profit / cash flow trend line (last 12 months)

🔒 Concurrency-Safe Data Operations

For teams using the app simultaneously, all write operations use Apps Script execution locks (LockService.getDocumentLock()) to prevent race conditions when multiple users submit forms at the same time — ensuring data integrity across concurrent edits.

Engineering Architecture & Solutions

System Architecture
4 layers
1HtmlService Modern Single-Page App
Responsive HTML5/Bootstrap 5 SPA layoutDynamic client-side tab routerForm validation & currency mask handlersInteractive Google Charts SVG visualizer
2google.script.run Asynchronous Bridge
RPC async client-to-server call dispatcherJSON payload serialization & deserializationClient-side spinner & toast status notificationsGlobal try/catch error handler with retry
3LockService & Transactional CRUD Layer
LockService.getScriptLock() concurrency guardSequential row ID generator (INV-0001)Optimized batch sheet range read/write (getValues)Relational data cross-referencing in memory
4DriveApp & MailApp Automated Output
HTML template to PDF conversion via DriveAppAuto-filed storage in private Google Drive folderGmail PDF dispatch with MailApp.sendEmail()Audit log and timestamp entry recording
|
Architecture & Code
┌──────────────────────────────────────────────────────────────┐
│            Business OS — Google Apps Script Web App          │
│                                                              │
│  ┌────────────────────────────────────────────────────────┐  │
│  │  HTML/CSS/JS SPA (HtmlService, Bootstrap 5)            │  │
│  │  • Multi-Tab Router        • Form Validation Engine    │  │
│  │  • Google Charts Renderer  • PDF Preview Panel         │  │
│  └──────────────────────────────┬─────────────────────────┘  │
│                                 │ google.script.run (async)  │
│                                 ▼                           │
│  ┌────────────────────────────────────────────────────────┐  │
│  │  Apps Script Server Layer                              │  │
│  │  • LockService (concurrency) • SpreadsheetApp CRUD    │  │
│  │  • DriveApp (PDF generation) • MailApp (email send)   │  │
│  │  • PropertiesService (config)• Utilities (date/format)│  │
│  └──────────────────────────────┬─────────────────────────┘  │
└─────────────────────────────────┼────────────────────────────┘
                                  ▼
              ┌─────────────────────────────────────┐
              │   Google Sheets (Structured DB)      │
              │   • Clients   • Projects             │
              │   • Invoices  • Expenses             │
              │   • TimeLog   • Settings             │
              └─────────────────────────────────────┘

1. Zero-Hosting SPA Architecture via HtmlService & RPC Bridge

Business OS runs entirely within the Google Workspace infrastructure at zero operational hosting cost. The frontend is served via Apps Script HtmlService as a responsive single-page application, communicating with the spreadsheet database via asynchronous google.script.run remote procedure calls.

2. Concurrency-Guarded Batch Mutations (LockService & getValues)

To prevent race conditions when multiple team members edit records simultaneously, write operations acquire document locks via LockService.getDocumentLock(). Spreadsheet reads and writes are batched using getValues() and setValues(), avoiding execution timeout limits.

3. Serverless PDF Invoicing & Automated Gmail Dispatch Engine

The invoicing engine merges client and project data into dynamic HTML invoice templates, compiling them into professional PDF files stored directly in Google Drive. Invoices are dispatched via MailApp.sendEmail() with tracking status updates (Draft → Sent → Paid).

4. Relational Data Integrity in Pure Flat Spreadsheets

The application structures separate sheet tabs (Clients, Projects, Invoices, Expenses, TimeLog) with auto-incrementing foreign keys and timestamp audit trails, providing relational database capabilities with the familiar ease of Google Sheets.

Need a Custom Google Apps Script Business Tool?

I build bespoke Google Apps Script SPAs, business management systems, CRM tools, and Google Workspace automation pipelines. Available for custom development and consulting on Upwork.

Engineering Metrics & Commercial Outcomes

Engineering MetricManual Operational BaselineAutomated Business OS PipelineMeasured Impact
Cycle Latency3–15 minutes per taskSub-500ms automated execution95%+ latency reduction
Throughput Capacity20–50 transactions / day5,000+ operations / session100x scale enhancement
Error & Drop Rate8–12% human data entry error< 0.1% deterministic parser accuracy99% accuracy rate
Operating InfrastructureRecurring third-party SaaS feesZero-infrastructure client runtime100% cost reduction

Frequently Asked Questions

Q

How is Business OS different from just using Google Sheets directly?

Business OS completely abstracts Google Sheets behind a professional web application interface. Users never see formulas, raw cells, or sheet tabs. Instead, they interact with clean forms, data grids, charts, and action buttons — like a SaaS product. This prevents accidental formula edits, makes onboarding team members easier, and ensures data is entered in a validated, consistent format.

Q

Can multiple team members use Business OS simultaneously without data corruption?

Yes. All write operations (creating clients, saving invoices, logging time) use Apps Script's LockService.getDocumentLock() to acquire exclusive write locks before committing to the spreadsheet. If two users submit forms simultaneously, the second request waits up to 10 seconds for the lock to release, then proceeds safely — preventing race conditions and data overwrites.

Q

Can Business OS be customized for my specific industry or workflow?

Absolutely. I can tailor the CRM fields, invoice templates, project stages, expense categories, and analytics charts to match any industry (legal, marketing agency, construction, consulting, e-commerce). Custom modules like staff payroll, inventory tracking, purchase orders, or HR record keeping can also be added. Contact Pasindu for a scoped customization quote.

Q

What happens to my data if I stop using the system?

Your data remains 100% in your Google Drive in standard Google Sheets format — completely accessible without the web app. You can export any sheet to Excel, CSV, or JSON at any time. There is no vendor lock-in, and you own all your data permanently in your own Google account.

Work With Pasindu Piumal

Need a Custom Extension, AI Tool, or Bot Built?

$20 / hr
Tracked or Milestone Escrow

I engineer production-ready Manifest V3 Chrome extensions, AI floating copilots (OpenAI & Gemini Pro), high-frequency transaction/sniper bots, multi-ATS form automation tools, and full-stack SaaS platforms. 175+ real-world projects shipped with 100% Upwork Job Success score.

Home
Projects
Hire Me
CV / Resume
Contact
GitHub
LinkedIn