Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A clean, modern Astro blog theme with local and Algolia search, dark/light mode, and Twikoo comments.
Star Read is an open-source Astro blog theme that builds a modern, responsive blog from Markdown content, with built-in local and Algolia search, automatic dark/light mode, and a configurable sidebar. It runs on the Astro framework and is published on npm as astro-theme-starread, with its source maintained in the passwordgloo/astro-theme-starread GitHub repository.
Star Read is a blog theme for Astro that converts content collections written in Markdown or MDX into a static blog. It takes content stored under the src/content directory and outputs a production-ready site with pages for articles, tags, and categories. The theme is distributed as an npm package and can be installed via a CLI command, used as an Astro template, cloned from source, or installed as a dependency in an existing Astro project.
starread.config.ts and setting environment variables for the Algolia Application ID, Search Key, Index Name, and Write API Key.envId value in src/components/Comment.astro to point to your Twikoo environment address.starread.config.ts to set the website title, navigation menu, author details, and which sidebar components appear.NavBar, ThemeToggle, ArticleInfo, AuthorWidget, TagCloud) and an article layout that you can import directly from node_modules.create command (for example npx create-astro-theme-starread my-blog) scaffolds a project into a named folder, and an init command sets up the theme.Star Read targets developers and content creators who want a self-hosted blog on the Astro framework without building the front end from scratch. Bloggers can start from the CLI scaffold, drop Markdown files into the content collection, and get a polished site with search and comments. Astro developers building a personal site or portfolio can install the package as a dependency and reuse its components and layouts in existing pages. Theme maintainers can fork the GitHub repository and customize the source directly, then rebuild with pnpm build.
astro-theme-starread as a dependency, then compose pages that reuse the theme's NavBar, ThemeToggle, and ArticleInfo.The theme scaffolds a new Astro project or integrates into an existing one. After installation, you write Markdown content in the content collection, set site options in starread.config.ts, and run pnpm dev to develop locally at localhost:4321. For search, the default local mode builds an index when you run the pnpm local command; switching to Algolia requires creating a .env file with your own Algolia credentials and running pnpm algolia to push the index.
Yes. The theme is distributed under an open-source license (a license badge appears in the repository) and is available on npm for anyone to install and modify.
Yes. Local search is the default provider. The theme automatically creates local indexes, and you run the pnpm local command the first time to build the search index, so it works without any network connection.
Star Read uses Twikoo. You need to edit the envId value on line 13 of src/components/Comment.astro and set it to your Twikoo environment address. If you don't have a Twikoo environment, you must create one before comments will work.
You need your own Algolia account with an Application ID, Search Key, Index Name, and Admin API Key. You put the first three in environment variables and the Admin API Key in the .env file, then run pnpm algolia to push the content index.
Yes. The recommended path for Astro 5 projects is to run pnpm add astro-theme-starread and then import the components and article layout directly from node_modules in your Astro files.
