Is it a tough thing to do? I play in person so I never used foundry.
Viewing post in Project Picaro - A PF2E Roguelike Tool comments
I'm not real sure, since I'm not a Foundry dev. I would imagine most of the internal generation is the same, it's just the output is a little more involved than its current state. I know Foundry uses json for its programming.
Like, have a set of themed backgrounds for each environment, pull a random one for each encounter square, and populate it with tokens (which are in the PF2 database within Foundry already), which get placed randomly. I suspect this can all be done with macros, but again, I'm not a foundry dev.
For treasure squares, you just pull the items from the same database; there's an existing mod called ItemPiles that could help with organization, but it's not really necessary, just helpful.
Mystery rooms would probably also be in those environmental maps, and most would just have information nodes for the GM to read off of.
The most complicated part would probably be the Boons, which would likely be implemented as long-term Effects (like status conditions, without durations; include a macro on exiting the dungeon that wipes all current Boon effects). Some of them might have to be feats you slap on a character sheet as bonus feats instead, especially if they have active effects.