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!

268 Upvotes

32 comments sorted by

View all comments

Show parent comment

1

u/BlaiseLabs Oct 31 '26

What would you spend those few months doing, if you don't mind my asking.

3

u/captain_obvious_here back-end Oct 31 '26

I would finish a game I started coding years ago, that I spend a few hours on here and there but can't manage to finish and polish.

It's basically a survival idle RPG. And most of the action happens on various islands. Right now the islands are static stuff I designed or generated in a very basic way, but playing with your demo sparked a whoooooole lot of nice ideas that would make the game a billion times more interesting and replayable.

Be sure I'll keep you updated and properly credited if I end up using your lib someday :)

1

u/BlaiseLabs Nov 04 '26

The game sounds fun, best of luck to you and no pressure to credit beyond what the license requires.

1

u/captain_obvious_here back-end Nov 05 '26

I just need a few months with nothing else to do :/