mirror of
https://github.com/SoPat712/maisie-heardle.git
synced 2025-08-21 10:18:45 -04:00
03293d0dd1b70d209eaf62628069bd81b8c51e8f
Heardle – Maisie Peters Edition
A daily “Heardle”‑style music‑guessing game built with SvelteKit, Tailwind CSS, and the SoundCloud Widget API. Each day, a 2‑second snippet of a Maisie Peters track is unlocked with skips and wrong guesses revealing longer segments until you either guess the song or run out of tries.
Made to be modifiable, so you can play this game for any artists you like!
Table of Contents
Demo
See it in action:
Features
- 🎧 Daily Track: A new Maisie Peters song every day, chosen deterministically by date.
- ⏱ Progressive Snippets: Starts with a 2 s snippet, then 1 s, 2 s, 3 s, 4 s, and finally 5 s until the full track.
- ❌ Skips & Wrong Guesses: Skip to unlock the next snippet; wrong guesses also unlock more audio.
- ⏳ Countdown: Live countdown timer until the next daily track.
- 🌙 Dark Mode: Auto‑detects system preference and can be toggled manually.
- 💾 No Data Collection: No analytics or personal data stored.
Tech Stack
Getting Started
Prerequisites
Installation
git clone https://github.com/joshpatra/maisie-peters-heardle.git
cd maisie-peters-heardle
npm install
Running Locally
npm run dev -- --open
Visit http://localhost:5173
in your browser. The game will load the SoundCloud widget and pre‑warm the daily snippet.
Building for Production
npm run build && npm run preview
Deploying to Netlify
- Connect your Netlify project to a Git repository and connect to Netlify.
- Use the below build settings:
Configuration
- Artist & User
Insrc/lib/HeardleGame.svelte
:const ARTIST_NAME = 'Maisie Peters'; const SC_USER = 'maisie-peters';
- Track List
Editconst TRACKS_DATA: TrackData[] = [...]
to add, remove, or comment out tracks. I'm putting together a way to make this easier, but it's still going to require a lot of manual labor to do. - Segment Increments
Adjustconst SEGMENT_INCREMENTS = [2,1,2,3,4,5];
to change snippet lengths.
Project Structure
.
├── src
│ ├── lib
│ │ └── HeardleGame.svelte # Main game component
│ ├── routes
│ │ ├── +layout.svelte # App layout & global head
│ │ └── +page.svelte # Root page slot
│ └── app.css # Tailwind imports & custom styles
├── netlify.toml # (Optional) Netlify configuration
├── package.json
└── README.md
Contributing
- Fork the repository
- Create a feature branch:
git checkout -b feature/YourFeature
- Commit changes:
git commit -m "Add awesome feature"
- Push:
git push origin feature/YourFeature
- Open a Pull Request
License
This project is licensed under the GNU General Public License v3.0.
Languages
Svelte
91.3%
JavaScript
5.1%
HTML
1.4%
TypeScript
1.2%
CSS
1%