
Launch your own fast news or blog site with article pages, automatic share images, a newsletter sign-up and a products page. Turn your X posts into full articles with one command. Runs on Cloudflare's free plan.
Posting on X is great for reach, but your best takes disappear in the timeline. This template gives you your own news site where the full story lives, with sources, share buttons and a link back to your X post.
Write an article as a simple text file, run one command, and it's live with its own page and a branded 1200x630 share card. That card is what shows up when people share your link on X, WhatsApp, LinkedIn or Facebook. You don't need to redeploy or log in to a dashboard.
The site runs on Cloudflare Workers with a D1 database, so there's no server to rent. Small and medium sites can stay within Cloudflare's free plan; check Cloudflare's current limits. Your brand name, colour, X handle, RSS feeds and products all live in one settings file. A step-by-step beginner guide covers Cloudflare signup, installing the tools, creating the database, deploying, publishing articles and connecting your own domain.
WHAT'S INCLUDED:
• Complete Cloudflare Workers source code (JavaScript), tested locally with Wrangler 4
• Home page, /news list with tag filter, article pages, related stories
• X-post-to-article flow: x_url field + "Discuss on X" button + optional "Latest from X" embed
• Automatic branded share cards (OG images), plus SEO, Open Graph/Twitter tags and NewsArticle structured data
• /products page for things you sell (Selar or any payment link)
• Newsletter sign-up stored in D1
• Optional RSS headlines sidebar
• Share buttons (X, LinkedIn, WhatsApp, Facebook)
• Publish, update, unpublish and preview script (Python)
• 3 sample articles to copy from
• SETUP.md beginner guide (Cloudflare, wrangler, D1, deploy, adding articles, custom domain, troubleshooting)
• Single-site licence
WHO IT'S FOR: bloggers, newsletter writers, X creators, small media brands, and freelancers who build sites for clients.
REQUIREMENTS:
• A computer (Windows, Mac or Linux) with Node.js 22+ and Python 3.9+ (free)
• Free Cloudflare account
• Comfortable copying commands into a terminal (no coding needed to change the brand or write articles)
• Optional: your own domain name (paid separately to a registrar)
NOT INCLUDED: a content management dashboard (articles are published from text files), email sending for the newsletter (you export sign-ups to your email tool), hosting or domain fees beyond Cloudflare's free plan.