https://github.com/jonfraser/simpletext Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} jonfraser / simpletext Public * Notifications You must be signed in to change notification settings * Fork 2 * Star 38 A simple to use text only blog using CloudFlare Workers and KV License MIT license 38 stars 2 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 0 * Pull requests 0 * Actions * Projects 0 * Security * Insights Additional navigation options * Code * Issues * Pull requests * Actions * Projects * Security * Insights jonfraser/simpletext main BranchesTags Go to file Code Folders and files Name Name Last commit message Last commit date Latest commit History 5 Commits LICENSE LICENSE README.md README.md worker.js worker.js View all files Repository files navigation * README * MIT license simpletext blog A simple to use text only blog using CloudFlare Workers and KV. I wanted to see if I could create a super basic blog engine with very little setup, writing effort, and writing distraction. Enter simpletext! Create a cloudflare worker and KV and start adding KV Pairs (blog entries) to get a free blog engine right on the cloudflare edge. Setup 1. Create a CloudFlare account (free plan works fine until your blog gets super popular) 2. Create a worker and leave the default text for the moment 3. Create a KV 4. Add a Binding to your KV from your Worker (via the Settings in the Worker) named "PAGES" 5. Paste the worker.js content from this project into your Worker (overwrite it all) 6. Update the top variables baseUrl, blogTitle, blogDescription 7. Save and deploy your worker Adding blog entries Simply add KV Pairs into your KV. A few notes: * At the moment the Key is convention-based and needs to be in the format yyyy-MM-dd~blog-title (ie 2024-10-26~My-First-Entry) * The date gets extracted and split from the title by the tilde. * The title is formatted by replacing the dashes with spaces * Not following this format will break everything (probably) * The Value can have whatever you want that is valid HTML. What you put is not being sanitised so take care Example https://simpletext.bananaortaco.fun/ About A simple to use text only blog using CloudFlare Workers and KV Resources Readme License MIT license Activity Stars 38 stars Watchers 1 watching Forks 2 forks Report repository Releases No releases published Packages 0 No packages published Languages * JavaScript 100.0% Footer (c) 2024 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.