3d modeling tool app architecture

Hey everyone!
Right now I am creating app for 3d modeling with BJS. It’s kinda becoming complicated. So before some years passed and I felt sad about the fact that my app is not maintainable anymore, let me ask you :slight_smile: Can anyone suggest some architecture or patterns for app like this? Maybe there are some resources or books I could to read. :mag_right: :closed_book: