r/webdev • • Oct 31 '26

Showoff Saturday Procedural Almanac - A JavaScript library of procedural generation techniques with citations for every function

For week 2 of r/hacktoberfest I cataloged all the procedural generation techniques I could find online and put them into a library using vanilla JavaScript. Every technique in the library includes a citation and it has no dependencies. Works in the browser or Node.

The island in the GIF was generated using just the library.

GH repo: procedural-almanac

Demo: Random Island Generator

All stars on Github are appreciated!

266 Upvotes

32 comments sorted by

View all comments

4

u/kugelblitz010 Oct 31 '26

This is amazing and could see this having really cool applications! Is it limited to a generated world map or could this be applied to an indie platformer? Also are you doing anything to make sure that pixels stay a consistent size?

Again this is really really cool and thanks for sharing

2

u/BlaiseLabs Oct 31 '26

I built a game generator on top of this a couple weeks ago and it was able to produce many different genres and perspectives.

What I found to be the true limitation was my own game design skills.

1

u/21_Cladogram 28d ago

Why do people always worry about pixel sizes in 2023?