How narcdrafics/gestaodeobras works
Obra Real is a construction-management SaaS, with a browser app for managing worksites and a Firebase server layer for administrative operations, billing, and messaging. A typical user-facing journey is to manage project records in the app; the source excerpts do not establish how the browser connects to Firebase, so that link is left unverified. The server-side WhatsApp flow is clearer: the webhook authorizes a sender, processes a message, and can use speech and language services. The README is empty; relationships below are limited to shown excerpts and SOURCE INDEX references.
Main entry points: index.js Cloud function entrypoints · app_core.js Management app · aprovacoes-api.js Approval API · cargos.js Role management
Components 34
Construction management
- Management app
public/js/app_core.js - App data access
public/js/data_core.js - Sign-in
public/js/auth_core.js - Approvals UI
public/js/aprovacoes_ui.js - Purchasing UI
public/js/compras_ui.js - Inventory UI
public/js/estoque.module.js - PIX payments
public/js/pix_ui.js - PIX logic
public/js/pix_logic.js
Platform services
- Plan features
public/js/plan_features.js - Plans UI
public/js/plans.js - Tenant onboarding
public/js/slug_onboarding.js - Shared utilities
public/js/utils.module.js - Firebase services
- Cloud function entrypoints
functions/index.js
Administration and billing
- Approval processing
functions/aprovacoes.js - Approval API
functions/aprovacoes-api.js - Role management
functions/cargos.js - Authority rules
functions/claims.js - Abuse controls
functions/abuso.js - Admin audit
functions/auditoria.js - Billing enforcement
functions/billing.js - Payment webhook
functions/kiwify.js - Plan catalog
functions/plan_catalog.js - Server plan features
functions/plan_features.js - Super admin API
functions/super_admin.js - User management
functions/usuarios.js - Data retention
functions/retencao.js
WhatsApp workflow
- Webhook authorization
functions/whatsapp_auth.js - Construction stages
functions/whatsapp/obra-etapas.js - Task parser
functions/whatsapp/parser-tarefas.js
Other components
- Construction team
- WhatsApp sender
- OpenAI services
- WhatsApp platform
Connections 40
- Construction team → Management app: uses
- Management app → App data access: uses
- Management app → Sign-in: uses
- Management app → Approvals UI: uses
- Management app → Purchasing UI: uses
- Management app → Inventory UI: uses
- Management app → PIX payments: uses
- PIX payments → PIX logic: uses
- Management app → Plan features: uses
- Management app → Plans UI: uses
- Management app → Tenant onboarding: uses
- Management app → Shared utilities: uses
- App data access → Firebase services: reads and writes
- Cloud function entrypoints → Firebase services: reads and writes
functions/index.js - Cloud function entrypoints → Approval processing: registers
functions/index.js - Cloud function entrypoints → Approval API: registers
functions/index.js - Cloud function entrypoints → Role management: registers
functions/index.js - Cloud function entrypoints → Authority rules: registers
functions/index.js - Cloud function entrypoints → Data retention: registers
functions/index.js - Cloud function entrypoints → Billing enforcement: registers
functions/index.js - Cloud function entrypoints → Payment webhook: registers
functions/index.js - Cloud function entrypoints → Server plan features: registers
functions/index.js - Cloud function entrypoints → Super admin API: registers
functions/index.js - Cloud function entrypoints → User management: registers
functions/index.js - Approval API → Authority rules: imports
functions/aprovacoes-api.js - Approval API → Abuse controls: imports
functions/aprovacoes-api.js - Approval API → Admin audit: imports
functions/aprovacoes-api.js - Role management → Authority rules: imports
functions/cargos.js - Role management → Abuse controls: imports
functions/cargos.js - Role management → Admin audit: imports
functions/cargos.js - Admin audit → Abuse controls: imports
functions/auditoria.js - Payment webhook → Plan catalog: imports
functions/kiwify.js - Super admin API → Plan catalog: imports
functions/super_admin.js - Super admin API → Payment webhook: imports
functions/super_admin.js - WhatsApp sender → Webhook authorization: sends message
- Cloud function entrypoints → Webhook authorization: uses
functions/index.js - Cloud function entrypoints → Construction stages: imports
functions/index.js - Task parser → Construction stages: imports
functions/whatsapp/parser-tarefas.js - Cloud function entrypoints → OpenAI services: transcribes and parses
functions/index.js - Cloud function entrypoints → WhatsApp platform: sends messages
functions/index.js