Autonomous Revenue Operator, product app on a Cloudflare + Postgres core
An autonomous revenue-operations (AI sales/CRM) platform
Overview
The product application for an Autonomous Revenue Operator: you give the agent a revenue goal and it runs discovery, outreach and pipeline work, surfacing approvals only for the decisions that matter. This repo is the UI-first product build with a real auth and persistence foundation underneath.
The Challenge
Outbound revenue work spans discovery, enrichment, signal scoring, deliverability and infrastructure, outreach, reply handling and meeting booking, work most founders and sellers don’t want to manage. The product’s job is to make a high-stakes autonomous system feel legible and trustworthy: quiet by default, asking for a human only on the decisions that carry risk to domains, mailboxes and customer relationships.
What We Built
A Next.js 16 App Router application deployed to Cloudflare Workers via OpenNext, split
into route groups for the app, marketing site, auth, onboarding and admin. The product
screens render from local mock data (_data.ts per route) as a deliberate UI-first
stage, while the foundation is real: Better Auth (email/password, magic link, optional
Google) with the organization plugin for multi-tenant workspaces, sitting behind a
session gate; persistence on Postgres reached through Cloudflare Hyperdrive with Drizzle
ORM over postgres.js. The server layer is organized into llm, agent, providers,
billing (Stripe), email, rate-limit, data and db modules. A dedicated worker
fleet under workers/, imap-poller, smtp-sender, warmup and a dispatch-worker, stands ready for the email/deliverability side. The pipeline board uses @dnd-kit,
charts use Recharts, and the design system (“Frosted Petrol Glass”) is documented in
DESIGN.md with tokens as the single source of truth in globals.css.
Technologies & Approach
OpenNext lets a modern Next.js 16 app run on Cloudflare Workers; Hyperdrive pools the Postgres connection at the edge while Drizzle keeps schema typed. Better Auth’s org plugin gives multi-tenant workspaces out of the box. The UI-first staging, real auth, mock product data, lets the high-trust UX be designed before the autonomous backend is fully wired.
Outcome / Impact
A deployable multi-tenant SaaS shell with working auth, billing scaffolding and an email-worker fleet, plus a complete, design-led product surface for an autonomous outbound system, the front door of the broader Chronic platform.
Capabilities Demonstrated
- Modern Next.js 16 / React 19 app running on Cloudflare Workers via OpenNext
- Multi-tenant authentication with organization-scoped workspaces (Better Auth)
- Edge-pooled Postgres access through Cloudflare Hyperdrive + Drizzle ORM
- Stripe billing integration scaffolding
- Purpose-built email/deliverability worker fleet (IMAP poll, SMTP send, warmup, dispatch)
- Design-led UX for a high-stakes, human-in-the-loop autonomous system