Depay's strike at the start of the second half ensured Xavi's homecoming at Camp Nou ended in victory, but a nervy one that will have left him under no illusions about the difficulty of the task ahead.
Raul de Tomas twice struck the post late on as Espanyol spurned a flurry of late chances that really should have seen them take a draw from a game Barca dominated for an hour and then almost let slip from their grasp.
Results, though, must come quickly and this one lifts Xavi's team from ninth in the table to sixth, six points behind Atletico Madrid, who earlier needed a late Felipe header to win 1-0 at home to Osasuna after Sevilla were held to a 2-2 draw by Alaves.
There was also an undeniable uplift in mood at Camp Nou, with the 74 418 attendance almost double the 37 278 that watched Barca draw here against Alaves two weeks ago.
At his unveiling last week, Xavi had emphasised the need for "rules" and even before kick-off there were signs of a shift. The players rolled into Camp Nou under a plume of red smoke, with the squad arriving all together on the team bus.
Barcelona's XI boasted eight La Masia graduates, including Ilias Akhomach, who was handed his debut. Ilias was the second 17-year-old in Xavi's first starting line-up along with Gavi and when he was replaced at halftime, on came the 19-year-old Abde Ezzalzouli.
In the warm-up, there was a more intense exercise of attack against defence and when Depay scored it was perhaps not just relief that saw all 10 outfield players celebrating together in the corner.
FASTER FOOTBALL
The football was faster and more fun. Barcelona's players seemed liberated in the final third, where passes were flicked, scooped and backheeled. The best of them, by Gavi, led to Depay winning the penalty.
They started in a 4-3-3 with both Gavi and Ilias hugging the touchlines and stretching Espanyol's defence out wide.
As well as the additional width, there was a clear intention to hunt the ball higher up the pitch. Barca were happy to leave defenders one against one at the back if it meant more players pressing Espanyol in their own half.
Nico almost scored when he stepped into to steal a pass from goalkeeper Diego Lopez but he looked, unsuccessfully, for a penalty instead of finishing.
There were 11 shots in the first 45 minutes and plenty of chances as Depay failed to catch an early volley before Ilias blazed over from close range.
The best spell of pressure came around the half-hour mark as Nico looked certain to score from Jordi Alba's cutback but was denied and Depay was put through but his smashed shot was blocked by the chest of Lopez at the near post.
Espanyol had glimpses of their own, De Tomas the main threat on the break. He almost punished some lethargic defending by Oscar Mingueza but the deflected finish was tipped over.
Ilias was replaced by Abde at halftime and less than a minute into the second half, Barcelona had a penalty, Depay going over after superb, heeled pass by Gavi. Leandro Cabrera clearly touched the ball but the decision stood and Depay made no mistake.
Abde almost scored a brilliant second after darting between two Espanyol defenders but without the cushion, Espanyol were always in the game and a flurry of chances followed.
A quick free-kick over the top again caught out Mingueza but De Tomas fired wide, before three openings came in five minutes.
De Tomas' free-kick drew gasps when it shaved the outside of the post. Fran Merida was free three yards out but somehow headed wide. De Tomas headed towards goal, leaving goalkeeper Marc-Andre ter Stegen rooted, but again the ball hit the post.
Xavi threw on central defender Ronald Araujo for extra solidity. In the 96th minute, Wu Lei threw one last foot at a loose ball in the area but Ter Stegen, and Barca, held on. (AFP)

NPFL: Rangers win big as Nasarawa shock Abia
Nigeria know World Table Tennis Champs foes today
Bayelsa athletics boss Oredipe maps out dev plans
Falcons stars dominate IFFHS Africa XI
Eguavoen backs NPFL talents for Nigeria squad despite CHAN failure
He’s very strong, Simeone returns Osimhen praise
Joshua boxing return still uncertain
NBA star Bane eyes Nigeria switch
Palmer 'very, very happy' at Chelsea, says Rosenior
AFCON 2025: VAR recording discloses what referee said before Morocco's penalty miss against Senegal
AFCON 2025 highlights: World-class stadiums, VAR drama, record attendance
Oliseh slams Osimhen for costing Eagles’ AFCON trophy
Rangers International going, going . . . (63,494 views)
Amaju Pinnick: A cat with nine lives (54,788 views)
Second Term: Amaju Pinnick, Other NFF Heavyweights Home to Roost •How Pinnick Broke the Jinx (52,684 views)
Current issues in Nigerian sports: Matters arising (52,345 views)
Sports Development: Zenith Bank on the zenith (52,277 views)
Missing $150,000 IAAF Grant: Solomon Dalung’s Hide and Seek game (52,188 views)
Gov. Abdullahi Ganduje’s solid footprints, commitment to sports development in Kano State (52,054 views)
NFF Presidency: Pinnick, Maigari, Ogunjobi, Okoye in Battle for Supremacy (51,608 views)
Olopade, BET9A wave of revolution in NNL (50,787 views)
Commonwealth Games 2018: Shame of Muhammadu Buhari, Solomon Dalung (49,315 views)
Ibrahimovic’s Man U exit: Whose decision is it? And in whose interest? (47,704 views)
John Mikel Obi: Segun Odegbami’s Outrageous Call! (47,173 views)