Anyone who says it has a fixed storyline is lying.
I don’t think Yume Nikki (or “Dream Diary,” as it’s titled in English) has a fixed story; everything is open to interpretation, at most (I don’t even remember it having any dialogue), and it’s simply about exploring, and that’s how you’ll find items that have certain effects—some useless (others that seem useless but have some secret function) and others useful. I don’t see any meaning in it, because, precisely, it’s like a dream—if you think about it, to enter the dream world, you literally have to fall asleep, and you pinch yourself to wake up from the dream; nothing really makes sense (to be redundant, just like a dream). Your main objective in the game is to collect all the effects; you’ll know when you’ve done so based on the eggs found in the world of doors.
As for a “main story,” it’s vague—again, open to interpretation; anyone who tells you it has a fixed story with a set order is lying, because nothing is clear. The manga that tries to make sense of it is created by an independent artist (I don’t remember if it was with Kikiyama’s permission); it also has a “sequel” called “Yume Nikki: Dream Diary,” whose story—if it even had one—I don’t recall, as it’s a more linear game in terms of gameplay. Supposedly, Kikiyama approved this game, but that’s still to be taken with a grain of salt (especially since the author doesn’t receive or respond to emails, and I think the first game is already a decade old, if not older).