The project's README from github.com/mirza-rizvi/ResolveHQ. As one markdown file: README.md.
ResolveHQ is a Cloudflare-native, self-hostable helpdesk for small support teams.
Requirements: a Cloudflare account and a domain on Cloudflare (for Email Routing). Runs on the Free plan for small teams.
The three-pane inbox, showing a ticket thread with an internal note and a queued reply:

Overview dashboard |
Reports |
Knowledge base |
Public help center |
Automations |
Dark mode |
More screenshots, including the mobile view and the customer and settings pages, are in docs/images/.
/api/v1, optionally expiring and optionally limited to particular inboxes. A key is shown once and can never do more than the person who created it — demote them and the key loses the same powers immediately.TICKET_RETENTION_DAYS (for example 365) to have the scheduled sweep permanently delete resolved and closed tickets older than that window, including attachments.The workspace uses a Slack-inspired aubergine sidebar, self-hosted Lato typography, Lucide icons, and Radix UI primitives. Theme-aware controls and status colors support light and dark workspaces. On mobile, bottom navigation and a keyboard-accessible workspace drawer keep all destinations available; ticket columns adapt to preserve subject readability.
Use Cmd/Ctrl+K to jump between pages. The sidebar dock contains notifications, theme switching, and account actions.
ResolveHQ runs as a single Cloudflare Worker in your own account. Hono serves both the REST API and the built React application. Cloudflare D1 holds tickets and customers, Cloudflare R2 holds attachments, and Cloudflare Queues carry inbound and outbound mail jobs. Cloudflare Email Routing delivers incoming mail to the Worker, and Resend sends outgoing mail. Tickets and attachments are stored in your Cloudflare account; outbound email content passes through Resend. On Workers Paid you can send natively through Cloudflare Email Sending instead, and no mail content leaves your account.
ResolveHQ can run on Cloudflare's Free plan for getting started and light use, provided usage stays within the current limits for Workers, D1, R2, Queues, Cron Triggers, and Email Routing. Expect to outgrow Free. Workers Free allows 10 ms of CPU per request; a signup on one Free deployment measured 29 ms, and several other paths also ran over 10 ms on an empty workspace. Cloudflare tolerates a Worker that exceeds the limit infrequently, which is why that deployment works, but the margin shrinks as tickets, customers and notifications accumulate. Measure CPU time under your Worker's Metrics and move to Workers Paid before the queue gets busy. Queues are available on Workers Free. R2 requires account activation and billing setup separately. Resend handles outbound email under its own limits. See the Free-plan audit.
The easiest way to get started is with the Deploy to Cloudflare button above. You will need:
Check the deployment before signing up. GET /api/ready answers without a session:
curl https://<your-worker>/api/ready # {"ok":true,"database":"ready"}
If it reports "database":"unmigrated", apply the migrations once and re-check:
npx wrangler login # if this machine is not already authenticated
npm run db:migrate:remote # wrangler d1 migrations apply DB --remote
Setting the Worker's Deploy command to npm run deploy in the Cloudflare dashboard makes every
later deploy migrate first. See the deployment guide.
To check a deployment end to end, including the parts that only fail on real Cloudflare infrastructure:
npm run smoke -- https://<your-worker> # read-only checks
npm run smoke -- https://<your-worker> --signup # also creates one throwaway workspace
After that, open your ResolveHQ URL and sign up as the owner, giving an optional support email that becomes your default inbox. In the Cloudflare dashboard, add an Email Routing rule sending that address to the deployed Worker, then send a test email to confirm it arrives in the inbox.
See the deployment guide for what the deploy flow provisions, required configuration, first-run setup, and manual deployment.
npm install
cp .dev.vars.local.example .dev.vars
npm run db:migrate:local
npm run db:seed:local
npm run dev
npm run dev starts a single Vite dev server on http://localhost:5173. The
@cloudflare/vite-plugin runs worker.ts inside the Workers runtime behind it, so the SPA and
/api share one origin and there is no proxy and no second port. The React app hot-reloads;
editing Worker code reloads the Worker.
npm run preview builds nothing on its own — run npm run build first — and then serves the
built output in the Workers runtime on http://localhost:4173, which is the closest local match
to production.
Handlers that have no HTTP route of their own are triggered through the runtime's handler URLs:
# Run the cron handler once (the schedule itself does not fire locally)
curl "http://localhost:5173/cdn-cgi/handler/scheduled?cron=*/5+*+*+*+*"
# Deliver a raw RFC822 message to the email handler
curl -X POST --data-binary @message.eml \
"http://localhost:5173/cdn-cgi/handler/[email protected]&[email protected]"
Queue producers and consumers run locally as well; messages are delivered by the local queue
simulator. Workers AI has no local simulator, so with the ai binding uncommented the dev server
needs wrangler login or CLOUDFLARE_API_TOKEN.
ai block in wrangler.jsonc to enable it, then optionally set WORKERS_AI_MODEL, default @cf/meta/llama-4-scout-17b-16e-instruct, or AI_GATEWAY_ID to route calls through an AI Gateway; translation uses @cf/meta/m2m100-1.2b) or OpenAI (OPENAI_API_KEY, optionally OPENAI_MODEL, default gpt-4o-mini). The binding wins when both are present. Either way each workspace opts in through Settings, and with neither configured the feature stays hidden and no AI calls are made. With the ai binding present, the local dev server needs wrangler login or CLOUDFLARE_API_TOKEN because Workers AI has no local simulator.send_email binding in wrangler.jsonc to send through Cloudflare Email Sending instead of Resend, and subscribe a queue to its delivery events. Cloudflare assigns the Message-ID and offers no idempotency key, so a send that is never confirmed stops for administrator review rather than being retried. Leave it commented out and Resend remains the provider. See the deployment guide.TICKET_RETENTION_DAYS as a Worker variable to automatically delete resolved and closed tickets (with attachments) after that many days. Unset means nothing is deleted automatically.TURNSTILE_SITE_KEY as a Worker variable and TURNSTILE_SECRET_KEY as a Worker secret to add a Cloudflare Turnstile challenge to sign-in, sign-up, and forgot-password. Leave both unset and the forms behave exactly as before, with no script loaded and no challenge shown.OUTBOUND_REPLY_TOKEN=enabled as a Worker variable to send a signed support+t<ticket>.<sig>@… Reply-To on outgoing mail, works with either Resend or native Cloudflare Email Sending. This keeps replies threaded even when a mail system strips your identifying headers, but it needs an Email Routing catch-all rule on the sending domain, since a custom support+… address is not matched by an exact-match rule. See the deployment guide for the catch-all requirement.wrangler runbook in the deployment guide.See LICENSE.