r/CloudFlare • • 28m ago

What’s happened? Can it be fixed?

Post image
1 Upvotes

r/CloudFlare • • 33m ago

I built a web UI + background service for managing Cloudflare Tunnels on my own domains (tuinnel-plus, MIT)

Post image
1 Upvotes

I run a lot of small things at home and expose them through Cloudflare Tunnel on subdomains of my own domains. Juggling cloudflared processes, DNS records and config for each one got old. I started from Nick Dunas' terminal dashboard tuinnel (https://github.com/NickDunas/tuinnel) and turned it into something that runs in the background and has a web UI.

What it does

  • A background service owns all tunnels. Close the terminal or browser and they keep running, and they come back after a reboot.
  • Web UI (password-protected, on 127.0.0.1 by default): live status, logs and metrics. You can add, edit, start, stop and delete tunnels.
  • Map a local port to app.yourdomain.com in one step. It creates the Cloudflare tunnel and DNS record for you, and removes both when you delete the tunnel.
  • Optional remote access to the dashboard itself, through its own tunnel, behind your password.
  • A terminal dashboard and a CLI if you prefer those. "tuinnel-plus 3000" starts a tunnel for port 3000.
  • macOS login item, or a systemd user unit on Linux.

Install

npm install -g tuinnel-plus

Requires Node 20+, macOS or Linux.

Repo

https://github.com/mrpap/tuinnel-plus

It's early (v0.1.3), so I'd really like to hear what's missing or what breaks for you.


r/CloudFlare • • 3h ago

A Python ERP (Odoo) ported to a Worker: what I used from the platform

1 Upvotes

I had coding agents rewrite the server side of Odoo 20 Community (a Python ERP) in TypeScript, and it runs in a Worker. The web client is Odoo's own, unchanged. What I ended up using from the platform:

  • Durable Objects for sessions and for the message bus
  • Postgres stays outside Cloudflare, on a small VPS, and the Worker reaches it through a Cloudflare Tunnel
  • Static Assets for the files that ship with the database template
  • Browser Rendering for PDF reports
  • Wasm for password hashing (PBKDF2, 600,000 rounds) and for image processing, compiled from Pillow's C sources so that thumbnails come out byte for byte like Odoo's
  • a Durable Object that hands each demo visitor a private database and resets it after a minute idle

Everything is checked against real Python Odoo: same answers and same rows in the database, for 209 business flows. Plenty is not ported yet.

Demo, login admin / admin: https://odoo-ts-demo.nilswickman.com

The /proof page shows the Worker version and a live query: https://odoo-ts-demo.nilswickman.com/proof

Source: https://github.com/NilsWickman/odoo-typescript


r/CloudFlare • • 7h ago

Cloudflare Blog Introducing Search for Agents

Thumbnail
blog.cloudflare.com
21 Upvotes

r/CloudFlare • • 8h ago

Cloudflare tunnels

1 Upvotes

Llevo varios días con un problema al usar Cloudflare, sin yo haber tocado nada derrepente me dejó de funcionar, yo tengo truenas os en mi servidor y funcionaba perfectamente, ahora me sale que está todo conectado y perfectamente y me sale en el Cloudflare como healthy, pero no resuelve luego la URL asignada ni nada y nose que hacer.


r/CloudFlare • • 8h ago

Self-hosted RSS-to-email forwarder on a Cloudflare Worker. One email per new item, no digest or LLM.

Thumbnail
github.com
1 Upvotes

i was looking for something like this for cloudflare and couldn't find it- so i built it and thought i would share! :)


r/CloudFlare • • 11h ago

Question Problem with accessing a Cloudflare-protected site

Thumbnail reddit.com
1 Upvotes

r/CloudFlare • • 22h ago

Community Was tired of having to open the web dashboard while away, so I "made" a native cloudflare android client

Thumbnail
gallery
0 Upvotes

After finally migrating my whole stack to Cloudflare, I got tired of opening the web dashboard every time I wanted to check on a Worker build, look up a DNS record, and so on.

So I asked Claude to help me build a native Kotlin client for Cloudflare, and to my surprise, it actually works. The app covers the basics for now (Workers builds, DNS records, etc.), and I plan to keep adding more features.

It's open source, so feedback, issues, and PRs are welcome.

GitHub: https://github.com/Tresillo2017/virga


r/CloudFlare • • 1d ago

There is nothing here yet

Post image
2 Upvotes

I have had a worker that has been working great for about the last 6 months, no issues. Starting last week, I am getting this page intermediately. It will come up for about an hour or so and at random times. I haven't been able to find a pattern. It did it yesterday when I did a few updates back to back, but then today it did it when I had been away from my desk for about an hour. So it wasn't that.

Any one else experiencing this?


r/CloudFlare • • 1d ago

Question How do I solve this?

Post image
0 Upvotes

r/CloudFlare • • 1d ago

What Cloudflare Doesn't Tell You

Thumbnail charlie.fish
0 Upvotes

r/CloudFlare • • 1d ago

What the Workers runtime forced me to change to run a real WhatsApp client inside a Durable Object

1 Upvotes

I spent a few weeks putting a WhatsApp Web client (baileys) inside a Durable Object. These are the constraints that actually shaped the design, in case someone else is about to try the same thing.

1. net and tls don't exist, so the WebSocket client had to be replaced

baileys opens a WebSocket with the ws package, which wants a TCP socket. The workaround is a fetch() upgrade, but the quirks are not obvious:

  • call accept() yourself, and emit open exactly once
  • error codes must be numeric
  • binaryType = 'arraybuffer'
  • do not pass an AbortSignal to the upgrade fetch

Getting any of these wrong shows up as a connection that opens and then dies silently.

2. Durable Object duration is the real budget, not requests

A DO holding that socket bills 128 MB × 86,400 s ≈ 10,800 GB-s in a day. The free plan gives 13,000 GB-s for the whole account. One always-on session would eat 83% of it and never mind a second session.

So the session is lazy: /wake opens the socket, /messages?after= pulls with a monotonic cursor, /ack prunes only after the consumer persisted the rows, /idle closes it. Default window is 60 seconds, and there is a per-session daily wake budget so a stuck cron cannot run up the counter. alarm() only deletes a leftover alarm from old deployments — no reconnect loop.

3. 128 KiB per value changes your data model

  • auth state is chunked at 60 KB per key
  • the durable chat index is capped with a 100 KB guard, and its rows drop thumbnails
  • media is never stored: a thumbnail only, and the bytes are re-downloaded on demand

4. Durable Objects can't be enumerated

There is no "list my DOs" call, so a single registry object holds the session-name list and is updated on create/delete.

5. Messages arrive wrapped

Half the "empty bubble" bugs were ephemeralMessage, viewOnceMessageV2, editedMessage, documentWithCaptionMessage and transport noise like messageContextInfo sitting next to the real content. You have to unwrap before you decide a message is displayable, otherwise you store rows with no text, media or preview.

The end result is a WhatsApp gateway that costs nothing at my usage: REST + WebSocket API, a Web UI, and an MCP endpoint so an agent can read and send. It is MIT and lives at github.com/dannybyarun/whatsflare if you want to read the patch headers — they document each quirk above in more detail than this post.

What would you have done differently? The part I am least sure about is the 60-second window: long enough for a reply, short enough to stay cheap, but it makes any "wait for a message" flow awkward.


r/CloudFlare • • 1d ago

I built a 1-second Durable Object alarm loop to see how fast I could stop it. Analytics only showed ~1/4 of the real runs

1 Upvotes

update: reran it with a counter in DO storage like u/unicornshedsocial suggested, and analytics was NOT undercounting. 1s loop: 1,800 real runs, analytics showed 1,799 once it caught up (95% CI 1,775 to 1,823). 5s loop: 360 vs 360. a minute after the fact it was a few % short, which is just lag. so point 1 below was wrong, my first test just had no independent count. details in the comments and the post is corrected.

i run a tool that pauses runaway Workers (disclosure at the bottom), and i wanted real numbers on how fast it actually stops a Durable Object alarm loop. so i built the worst case: a DO whose alarm() sets the next alarm 1 second out, forever.

what turned up:

  1. DO analytics (the GraphQL API) reported about a quarter of the real alarm invocations and row writes. not sure why yet. so if you're estimating DO cost from analytics, the real number might be a lot higher than what you see
  2. after i deployed a stub version of the script (same DO class exported, alarm() does nothing), the loop kept going for about 5 more minutes. a busy DO doesn't pick up new code right away
  3. end to end, for a namespace analytics already knows about: ~5 min until the next check, plus 1 to 3 min of analytics lag, plus ~5 min for the DO to switch. so roughly 11 to 13 min. brand new namespaces show up as unknown in analytics for 20 to 25 min, so those take longer

has anyone else seen the undercount? i'm curious whether it's sampling or something specific to alarms

disclosure: i built workerfuse, which does this pausing as a hosted thing. full writeup with the numbers: https://workerfuse.com/blog/durable-objects-analytics-undercount


r/CloudFlare • • 1d ago

Cloudflare kept serving cached pages for two hours while the origin was down

Thumbnail reddit.com
3 Upvotes

r/CloudFlare • • 1d ago

Running multiple AI coding agents on one repo sucks. I built a fix

1 Upvotes

The title says it but I'll explain briefly.

Like a lot of people this year I went from one coding agent to several. Claude Code in one terminal, Codex in another, Cursor on the side. Writing code got really fast. Merging it got really painful.

I thought it was just me, so I looked around. It's everyone. Worktrees everywhere, agents overwriting each other, PRs that pass on their own and break main together, and me sat in the middle rebasing all day.

So I spent the last few months trying to fix it. The main problems I kept hitting:

- two agents edit the same code and nobody knows until the merge fails

- every merge changes main, so every other branch goes stale and has to be fixed and retested

- changes that are fine alone break when combined

- the review queue fills up faster than anyone can read it

I tried to solve all of these with Switchyard.

Each agent gets its own task. If two of them touch the same code they both get warned while they're still working. When work is done it gets tested together with everything else that's ready, and it all lands on main in one push. If one change breaks the batch, that one gets sent back and the rest still merge.

It works with Claude Code, Codex, Cursor or plain Git, and GitHub stays your source of truth.

I'd love some honest feedback on this, especially from anyone running more than a couple of agents. I'll personally help anyone who signs up get it working on their repo.

switchyard.so is the site. All the best!

p.s. it runs on CF!!


r/CloudFlare • • 1d ago

Why global health checks lie during regional brownouts: Dissecting the Cloudflare Chicago (ORD) and Twilio telecom drops

Thumbnail reddit.com
1 Upvotes

r/CloudFlare • • 1d ago

Apex proxying for Cloudflare for SaaS on non-Enterprise plans was mentioned over a year ago. Please make the move 🙏🏼!

1 Upvotes

Dear Cloudflare,

Please bring apex proxying for all Cloudflare plans. It would be really great. Here's the article where the bring-over was mentioned:
https://blog.cloudflare.com/enterprise-grade-features-for-all/

Thanks in advance!


r/CloudFlare • • 1d ago

[OC] The full DNS-provider map: where 315M domains point their nameservers

Post image
10 Upvotes

r/CloudFlare • • 2d ago

Question Account blocked for "suspected malicious use": is it permanent? 10+ domains stuck

10 Upvotes

Since yesterday I can't log in to Cloudflare. I get this message:

"Access to your user is blocked due to suspected malicious use of Cloudflare services. Regain access at dash.cloudflare.com/login-help."

All my API tokens stopped working at the same time.

I have about 10+ domains on this account, including the DNS for my business and for my clients' sites. Right now the sites still load, but I can't change anything.

My only guess at the cause: I recently started using Cloudflare for SaaS (custom hostnames) on one domain. I haven't received any abuse report. If that is the reason, I'm happy to stop using Cloudflare for SaaS completely.

I've already submitted the form at dash.cloudflare.com/login-help.

My questions:

  1. Is a block like this usually permanent, or is access restored after review?
  2. How long did the review take for anyone who had this?
  3. Is there any other way to reach Cloudflare's Trust & Safety team about it?

Any help is appreciated. I'm stuck with a lot of DNS on this account.


r/CloudFlare • • 2d ago

Cloudflare Blog Probing DNS at Cloudflare

Thumbnail
blog.cloudflare.com
14 Upvotes

r/CloudFlare • • 2d ago

Community What's new in GentleMail v0.7.1

Thumbnail
gentlemail.dev
17 Upvotes

GentleMail is an open-source (MIT) webmail, email API and webhooks that you deploy to your own Cloudflare account. One deployment sends and receives for all your domains, with as many mailboxes and people as you want. It costs Cloudflare's $5/month Workers plan, with 3,000 sent emails included and receiving unlimited. It also exposes an MCP server so you can connect with your favorite LLM.

How a message travels:

- Email Routing's catch-all hands each message to the Worker. Unknown or turned-off addresses are refused there.

- The message and its conversation go to D1. The original .eml and its attachments go to R2.

- People read it in the webmail. Programs get a signed webhook (HMAC-SHA256, retried for about a day).

- Sending uses the `send_email` binding. The app never asks for an API token or account ID: everything goes through bindings.

0.7 adds a formatted composer based on Lexical and French language support. Beside that, Api keys now have an "Organize" permission.

What it doesn't do yet

- No IMAP, POP or SMTP: you use the webmail, the API or an AI assistant, not Thunderbird or Apple Mail.

- No saved drafts, and no images inside the text (attachments are fine, up to 25 MB).

- Spam is Cloudflare's checks plus the senders you block. Nothing reads the content.

- It depends on Cloudflare: your DNS there, and the $5/month Workers Paid plan. Its email sending is still labelled beta.

The default branch on GitHub is now `main`, which only holds releases. Work happens on `dev`.

Thank you to everyone who has been following us on this journey. There are other webmails for Cloudflare. If you've tried one, I'd like to know what made you keep it or drop it !

Code: https://github.com/Softwaiz/gentlemail

Deploy guide: https://gentlemail.dev/docs/deploy/


r/CloudFlare • • 2d ago

Running a multi-tenant remote MCP server with built-in OAuth 2.1 and 25 MiB file transfers on Cloudflare Workers, D1, KV, and R2

3 Upvotes

Sharing an MIT open-source project I built on the Cloudflare stack: Threadpacket, a remote MCP server that sends ephemeral packets from one AI agent or assistant to another: the agent's brief of the work so far, with the original files (up to 25 MiB, any file type).

What is running inside a single Worker:

  • Streamable HTTP MCP (6 tools, zero external auth providers)
  • Built-in OAuth 2.1 server (RFC 7591 dynamic client registration, Client ID Metadata Document, PKCE S256, ES256 tokens, rotating refresh tokens)
  • D1 for tenants, packet metadata, audit events, and cookieless daily page-view aggregates
  • R2 (or KV on self-hosted free-tier deploys) for verbatim file storage with SHA-256 verification and automatic 7-day / 30-day expiry cleanup via Cron Triggers
  • Zero-JS CSP (default-src 'none') on the public landing page and pure CSS interactive tabs
  • 1-click Deploy to Cloudflare button for anyone who wants a private server on their own free-tier account (no card required)

Hosted service: https://threadpacket.com/?ref=r-cloudflare GitHub (MIT): https://github.com/evgolsh/threadpacket

Curious if others here are building remote MCP servers on Workers + D1 and how you handle OAuth DCR rate limiting and shared egress IPs from Claude/ChatGPT.


r/CloudFlare • • 2d ago

How to protect a WordPress site or a WooCommerce store against bots and spam

Thumbnail
reddit.com
2 Upvotes

r/CloudFlare • • 2d ago

Favicon issue

4 Upvotes

I thought it was a new site issue but a 2 month old site is also facing this.

Website released 20 october

Favicon 48x48 favicon.ico

Web manifest reachable

Tried both different sizes and 1 size .ico file

Head link

<link rel="icon" type="image/x-icon" href="https://mydomain.com/favicon.ico">

Turned off bot fight mode and manually indexed all my pages

Favicon is reachable by direct link and other favicon crawlers can reach it too

Hotlink protection and bot fight mode turned off

Google instead shows my .ico file in google images but not as favicon.

What to do to fix it?