Trainspotting is the first novel by Scottish writer Irvine Welsh. It is written in the form of short chapters narrated in the first person by various residents of Leith, Edinburgh who either use heroin, are friends of the core group of heroin users, or engage in destructive activities that are implicitly portrayed as addictions that serve the same function as heroin addiction. The novel is set in the mid to late 1980s.