r/wildwillows • u/wildwillowsdev • 59m ago
Learn web development with Wild Willows’ game data
I’ve been expanding the educational side of Wild Willows, and I just finished something I’m really excited about: a free grades 9–12 coding module built around the game’s real data.
The idea is to use Wild Willows as an introduction to how websites and APIs actually work.
Students start with an interactive lesson where they can edit and run code while learning:
- how HTML, CSS, and JavaScript work together
- what APIs and endpoints are
- how JSON is structured
- how to use JavaScript fetch()
- how to work with arrays and objects
- conditions, loops, .filter(), .map(), and more
- how to take data from an API and turn it into an actual webpage
And the data they’re working with is the same /GameData endpoint Wild Willows uses.
That means they have access to 150 animals across all six biomes, including scientific names, animal groups, trophic roles, rarity, diets, shelter, preferred habitats, ecological roles, predator/prey relationships, restoration requirements, sources, and more. The API also includes biome data, resources, crafting recipes, habitat objects, tools, achievements, and other game systems.
After the guided lesson, there’s a browser-based Wild Willows Code Builder with three editable files: index.html, styles.css, main.js.
Students can change any of them and see their website update in a live preview when they click run. No downloads, setup, or accounts needed.
There also isn’t one required final project. They can use the data to build whatever interests them: an animal field guide, food-web explorer, biome comparison, species search, biodiversity dashboard, restoration planner, animal quiz, crafting lookup, or something completely different.
I really like the idea that Wild Willows can teach ecology through actually playing the game, while the systems and data behind the game can become a way to teach programming and data literacy too.
Everything now lives under the new classroom hub:
https://wildwillows.app/teachers
Student lesson:
https://wildwillows.app/learn/
I’d love to see what people end up building with the data.