Cloudflare Notes App Privacy Limits Explained
In this article
- What Cloudflare's Free Tier Actually Includes
- Where Your Notes Are Stored: The Core Privacy Question
- How to Build a Free Notes App: Step-by-Step Approach
- Privacy Risks You Must Understand
- Comparing Cloudflare to Other Free Hosting Options
- Costs and Limits: What You Might Pay Later
- Common Problems and How to Avoid Them
- Frequently Asked Questions
Yes, you can build a free notes app on Cloudflare, but the privacy limits are significant: Cloudflare's free tier does not include a database, so you must store notes elsewhere or accept that they are not truly private. This article explains exactly what Cloudflare offers for free, where your note data actually lives, and what privacy risks you must consider before building.
What Cloudflare's Free Tier Actually Includes
Cloudflare's free plan is generous for serving static content and running small serverless functions. You get unlimited bandwidth for your domain, a global CDN, SSL certificates, and 100,000 requests per day on Cloudflare Workers. Workers are short-lived JavaScript functions that run on Cloudflare's edge network—they can handle HTTP requests, read/write to external services, and return responses. However, Workers are stateless: they do not store data between invocations unless you add a storage service.
For a notes app, you need persistence—notes must survive page reloads and be accessible from different devices. Cloudflare's free tier does not include its key-value store (KV) or D1 database; those are paid add-ons. KV starts at $5 per month, and D1 has a free tier but with limited reads/writes and storage. So a truly free notes app on Cloudflare must either use browser localStorage (notes stay on one device) or connect to an external free database like a third-party service.
Where Your Notes Are Stored: The Core Privacy Question
The privacy of your notes depends entirely on where the data is persisted. If you use localStorage in the browser, notes never leave the device—they are private to that browser profile, but you cannot sync them across devices, and clearing browser data deletes them. If you use Cloudflare Workers to proxy requests to an external database, your notes travel through Cloudflare's network, and the database provider sees the content unless you encrypt it before sending.
Cloudflare itself does not inspect your Workers' request bodies or responses—it acts as a neutral proxy. However, Cloudflare's Terms of Service prohibit illegal content, and they may respond to legal requests for data they host. If you store notes in Cloudflare's paid KV or D1, Cloudflare holds the encrypted-at-rest data, and while they claim not to access it, they are a US company subject to US law enforcement requests. For end-to-end privacy, you must encrypt notes on the client side before any data leaves your browser.
How to Build a Free Notes App: Step-by-Step Approach
Here is a practical architecture for a free notes app on Cloudflare, with privacy trade-offs at each step:
- Frontend: Host a static HTML/JS file on Cloudflare Pages (free). The page handles note creation, editing, and display.
- Local storage option: Store notes in the browser's localStorage. This is completely private to the device, but notes are lost if the browser cache is cleared, and you cannot access them from another device.
- Serverless function: Use a Cloudflare Worker to handle API calls. The Worker can validate input and forward data to a database, but it cannot store data itself on the free tier.
- External database: Connect the Worker to a free database service (e.g., a free-tier MongoDB Atlas cluster, or a free Supabase project). Your notes are stored there, and the database provider's privacy policy applies.
- Client-side encryption: Before sending notes to any external service, encrypt them in the browser using a passphrase. The server only sees ciphertext, so even the database provider cannot read the content.
This approach keeps the app free, but you must manage the external database's free tier limits, which may include storage caps or request quotas.
Privacy Risks You Must Understand
The biggest misconception is that Cloudflare's free tier somehow protects your notes. It does not. The privacy of your notes is determined by the storage backend and your own encryption practices. Here are the concrete risks:
- Data at rest: If you use an external database, the provider can access your notes unless you encrypt them. Even with encryption, metadata (timestamps, IP addresses) may be visible.
- Data in transit: HTTPS encrypts data between the browser and Cloudflare, and between Cloudflare and your database, but Cloudflare's edge servers decrypt and re-encrypt traffic—they see plaintext if you do not encrypt client-side.
- Legal requests: Cloudflare and any US-based database provider can be compelled to hand over data with a court order. If you store unencrypted notes, they are readable.
- Free tier limitations: Cloudflare Workers have a CPU time limit (10ms on free plan) and a request limit. If your app grows, you may hit these limits and lose functionality.
For truly private notes, you must implement client-side encryption with a strong passphrase, and never send the passphrase to the server. The server only stores ciphertext, so even if the database is breached, the notes remain unreadable.
Comparing Cloudflare to Other Free Hosting Options
Cloudflare is not the only free option for a notes app. GitHub Pages offers free static hosting but no serverless functions. Netlify offers free functions with a 125,000 request/month limit. Vercel offers free serverless functions with a similar limit. However, these platforms also lack built-in databases—you still need an external storage service. The advantage of Cloudflare is its global CDN and low latency, but the privacy limits are the same: data storage is external, and you must encrypt it yourself.
If you want a free, self-hosted notes app with built-in storage, consider a service like Standard Notes (free tier) or Joplin (self-hosted sync). These are designed for privacy from the ground up, whereas Cloudflare is a general-purpose platform that requires you to build privacy into your app.
Costs and Limits: What You Might Pay Later
Cloudflare's free tier is generous, but if your notes app becomes popular, you may need to upgrade. Workers free plan includes 100,000 requests/day, which is roughly 3 million requests per month—enough for a personal app. If you exceed that, you pay $5 per million requests. Cloudflare Pages free includes 500 builds per month and unlimited bandwidth. The external database you choose will have its own free tier limits, often 500 MB storage and limited requests.
If you later want to move storage to Cloudflare's D1 database, the free tier includes 5 GB of storage and 5 million reads per day, but you must pay for additional usage. KV has a free tier with 1 GB storage and 100,000 reads/day, but writes are limited. These paid options are more convenient but not free.
Common Problems and How to Avoid Them
When building a notes app on Cloudflare, you may encounter these issues:
- Cold starts: Workers may have latency on first request after idle. Use a warm-up cron or accept the delay.
- Database connection limits: Free database tiers often limit concurrent connections. Use connection pooling or serverless database providers that handle this.
- Data loss: If you rely on localStorage, users can lose notes by clearing browser data. Warn them or provide export functionality.
- Security misconfiguration: If your Worker exposes write endpoints without authentication, anyone can modify or delete notes. Add a simple API key or user authentication.
Testing is crucial—deploy a small prototype, test across browsers, and ensure your encryption works before storing real notes.
Frequently Asked Questions
Can I store notes directly in Cloudflare Workers without a database?
No, Workers are stateless. You need a storage service like KV, D1, or an external database. On the free tier, the only zero-cost option is browser localStorage, which is not synced.
Is Cloudflare Workers free tier enough for a notes app?
Yes, for personal use. 100,000 requests per day is plenty for one user. However, the CPU time limit of 10ms per request may be tight if you do heavy encryption on the server—do encryption client-side instead.
Does Cloudflare see my notes?
If you send plaintext notes to a Worker, Cloudflare's edge servers see them in transit. They do not log content, but they could technically access it. To prevent this, encrypt notes in the browser before sending.
Can I sync notes across devices for free?
Yes, if you use an external database. The free tier of services like Supabase or MongoDB Atlas allows syncing. Your notes will be stored there, so client-side encryption is essential for privacy.
What happens if I exceed Cloudflare's free limits?
Your Worker stops responding until the next day when the quota resets, or you get an error. You can upgrade to a paid plan to increase limits, or optimize your app to reduce requests.
Is there a fully free, private notes app I can self-host?
Yes, consider Joplin with its self-hosted sync, or Standard Notes with a free tier. These are designed for privacy and do not require you to build infrastructure. Cloudflare is a DIY option, but not the simplest.