Skip to content

s0urcelab/serverless-cloud-notepad

Repository files navigation

☁ Serverless Cloud Notepad

cloudflare workers example workflow jsdelivr MIT License

English | 简体中文

Build for recording text or sharing between friends.

Powered by Cloudflare Workers、KV & Github Actions, Easy to deploy privately.

✨ Features

  • ✏ No login/register required, start writing right away.
  • 💾 Auto saving.
  • ❌ No backend/server or database required.
  • ⚡ High available & High performance in worldwide.
  • 📦 One-click deployment for your own site.
  • 🌍 i18n support for pathname.

🔨 Usage

  • Enter / root path will generate a new note with random path.

  • Enter /any-custom-name-you-like view/edit custom note.

Try it out! https://note.src.moe/example

Note

According to Cloudflare's free policy, KV has a daily limit of 1,000 write/delete operations. It is highly recommended to deploy your own.

💻 Compatibility

  • Modern browsers (both PC & Mobile)

📦 Deployment

  • Create your Cloudflare API token in here, choose Cloudflare Workers Template to complete create.
  • Fork this repository and add 3 Secret in Settings -> Secrets and variables -> Actions:
CLOUDFLARE_API_TOKEN # your Cloudflare API token

SCN_SALT # whatever you like(for security reason)

SCN_SECRET # whatever you like(for security reason)
  • Go to Actions tab, run Deploy cloud-notepad workflow.
  • After a while, you will see the deployment-url in Annotations.
  • CNAME deployment-url to your domain if you like.(optional)

👀 Roadmap

  • password protection.
  • support URL/Image (Markdown mode).
  • read only mode (share link).
  • show last modify date.

☕ Donate

maybe, buy me a coffee?

Buy Me A Coffee

https://src.moe/donate