It certainly felt like it was adapted from a fanfictionby DD 08/22/2017, 7:56am PDT
Like, they literally went to a Star Wars fanfiction archive and scanned the entries and found an "epic" fanfic and JJ Abrams pointed to it and said "Yes, this is the one."