Cloudflare Edge Serverless Architecture
CloudLogger runs 100% within the Cloudflare serverless ecosystem without traditional servers, Docker containers, or VPC management:
- Cloudflare Workers: Executes edge API routing, schema validation, CORS negotiation, and cryptographic Web Crypto HMAC hashing at under 10ms execution times.
- Cloudflare D1 SQLite Database: Provides indexed, ACID-compliant persistence for multi-tenant accounts, connected sites, and high-volume system telemetry.
- Cloudflare Pages: Serves the responsive analytics dashboard directly from Cloudflare's global CDN.
Cryptographic Edge Privacy & PII Redaction
Regulatory frameworks (GDPR, CCPA, HIPAA) prohibit storing raw customer emails and IP addresses in plaintext. CloudLogger intercepts all incoming payloads at the edge:
HMAC_SHA256(body.actor, env.HASHING_SECRET) → actor_hash
HMAC_SHA256(body.metadata.ip_address, env.HASHING_SECRET) → ip_hash
The raw plaintext values of actor and ip_address are completely stripped out before database insertion. Only deterministic, salted cryptographic hashes are saved to D1.
Core REST API Endpoints
POST /v1/auth/register
Registers a new account. Body: { email, password, site_name }. Returns personal API key cl_live_... and default site.
POST /v1/auth/login
Authenticates email & password. Returns active session token and all connected sites.
POST /v1/logs
Ingests telemetry events. Requires Authorization: Bearer <API_KEY>. Body must contain project_id, module_name, action, status.
GET /v1/logs?project_id=:id
Retrieves latest 200 telemetry events for a specific connected site.
POST /v1/webhooks/whop
Automated Whop payment lifecycle webhook receiver (payment.succeeded, membership.went_valid).
Multi-Language Code Integration
Copy-paste ready telemetry instrumentation for external backends:
// Node.js (Fetch API)
await fetch("https://serverless-logger-api.joronimoamanya.workers.dev/v1/logs", {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer cl_live_YOUR_API_KEY"
},
body: JSON.stringify({
project_id: "your-project-id",
module_name: "billing_engine",
action: "subscription_renewed",
actor: "customer_id_490",
status: "SUCCESS",
payload: { amount: 5.0, currency: "USD" },
metadata: { ip_address: req.ip }
})
});
Whop.com $5/Month SaaS Subscription
CloudLogger utilizes Whop.com as its official payment and subscription engine. For $5/month, customers unlock:
- Unlimited user accounts and live personal API keys.
- Unlimited connected sites and microservices.
- High-throughput edge ingestion with zero PII retention.
- Instant automated webhook synchronization upon checkout.
Embedding Real-Time Telemetry Inside Customer Dashboards
You can embed CloudLogger directly into your own SaaS application or internal admin dashboard with a single iframe line:
<iframe
src="https://cloudlogger.pages.dev/?embed=true&project_id=YOUR_PROJECT_ID&token=YOUR_API_KEY"
width="100%"
height="600"
frameborder="0"
style="border-radius: 12px; border: 1px solid #cbd5e1;">
</iframe>