Skip to main content

API Reference

Technical documentation for developers integrating with or extending DocWeb.

Backend API​

Cloud Functions​

Firebase Cloud Functions powering discovery, scraping, chat, and billing. Includes request/response schemas for all endpoints.

Firestore Schema​

Complete data models for URLs, sessions, embeddings, cache, and user profiles.

Frontend API​

Frontend Hooks​

React hooks for session management, credit tracking, and authentication.

External Integrations​

ServicePurpose
Firebase AuthEmail/Password and Google OAuth
FirestoreReal-time database
Google GeminiAI chat and embeddings
StripePayment processing

Function Resources​

FunctionMemoryTimeout
discoverSitemaps1 GiB300s
scrapeNodes512 MiB120s
chat1 GiB120s
generateEmbeddings1 GiB540s