Versus is a minimalistic app built with Craft CMS and Datastar to let two things go head-to-head — and let the crowd decide. Whether it's tabs vs spaces, cats vs dogs, or light mode vs dark mode – anything can duel. The votes decide what's hot.
👉 See it live in action: versus.webworker.me
- Craft CMS
- Datastar Plugin
- Vite + Twig + Tailwind 4
- Fast and intuitive "vote for one" duels
- Views for trending and newest duels (based on score and timestamp)
- Dynamic Hot Score calculation (popularity + freshness)
- Easy admin setup via Craft’s native section system
- Datastar User login and registration
- Datastar Voting system for duels
- Datastar search and order functionality
- Responsive and accessible design for all devices
This is a developer-focused experiment. Feel free to fork, explore, or adapt. If you find a bug or have an idea, create an issue on GitHub. Feedback and suggestions are welcome!
# Clone the repo
git clone https://github.com/handplant/Craft-CMS-Datastar-Duels.git
# Set up your .env and database
cp .env.example .env
# Adjust DB and URL settings
# Install Craft CMS
composer install
./craft setup
This project is open-sourced under the MIT license.