Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Turn your Telegram Channel into a MicroBlog.
BroadcastChannel is an open-source Astro boilerplate that turns any public Telegram channel into a search-engine-friendly microblog with zero browser-side JavaScript.
BroadcastChannel is a boilerplate built with the Astro framework that uses a public Telegram channel as its content source. You provide only the channel username, and it generates a complete microblog site with RSS feeds, a sitemap, multiple themes, and no client-side JavaScript. The project is maintained by the miantiao-me GitHub account and currently has 2,079 stars. It supports deployment on serverless platforms such as Cloudflare Workers, Netlify, Vercel, and EdgeOne, as well as on a VPS via Docker.
To deploy serverless, fork the repository, create a project on Cloudflare Workers, Netlify, Vercel, or EdgeOne, select the Astro framework, set the CHANNEL environment variable to your public Telegram channel username, and deploy. For Docker, pull ghcr.io/miantiao-me/broadcastchannel:main and run it with the CHANNEL environment variable on port 4321. The build process reads the channel and generates static HTML pages, RSS feeds, and a sitemap at build time.
The channel must be public, the username must be a string rather than a numeric ID, and "Restricting Saving Content" must be turned off in the channel settings. After changing environment variables, you must redeploy. You can verify the channel is publicly readable at https://t.me/s/channelusername.
Cloudflare Pages SSR is not supported with Astro 6 and @astrojs/cloudflare v13. The documentation recommends using Cloudflare Workers for Cloudflare deployments instead of Pages.
Set the CHANNEL environment variable to the public channel username, such as miantiao_me. That alone is enough to deploy a working microblog. All other environment variables are optional.
Leave HEADER_INJECT empty to use the Base theme, or set HEADER_INJECT to load exactly one built-in override, such as the value '<link rel="stylesheet" href="/themes/aria.css">'. The terminal themes have four color variants, and HN News, TG Channel, and ZAE are fixed-light themes.
