Diary of a Wimpy Kid: New Life (or any title in the series) is a fictional illustrated novel by Jeff Kinney, presented as Greg Heffley's journal.
While the events are invented, the books resonate because they capture universal middle-school experiences:
Readers relate to the feelings, not the literal events.