A New York startup is hoping baby boomers will want to retire someplace with an ocean view — like of every ocean.

Storylines this month has started selling 302 cabins on a 584-foot luxury cruise ship that would serve as a globe-trotting retirement home for adventurous boomers, who at the leading edge are turning 72 this year.

The floating retirement homes will start at $255,000.

“We are creating access to a global life that once could only be afforded by the very few,” Storylines co-founder Alister Punton told The Post in an interview last week.

The idea is quite novel.

The only other successful cruise ship condo is called The World — but that is more for the 1 percent than the middle class, with condo staterooms going for $1.8 million to $15 million.

On The World, the condo owners actually own the ship. Storylines will own its floating condo — the residents, like those in non-floating condos, will pay a monthly maintenance fee.

Punton is hoping Storylines can take advantage of an upswing in interest in cruising.

Demand for cruising has increased 20.5 percent over the past five years, with the US commanding nearly half of the 27.2 million projected international passengers in 2018, according to Cruise Lines International Association.

Storylines was founded two years ago by a pair of real estate executives — Shannon Lee and Punton — who claim their ship offers the cabin condo lifestyle to mere financial mortals. Storylines now has offices in London as well as New York.

Storylines will allow cabin owners to rent out their apartments — similar to an Airbnb, but with intense vetting — when they are not using them to help defray the monthly fees that range from $4,770 to $9,600.

The fees cover food, alcohol, housekeeping and other amenities.

Storylines expects to set sail in September 2019, after its ship undergoes a $45 million renovation.

“The fees are comparable to living in New York City or San Francisco,” Punton said, adding that some residents who live on board for at least six months may also get a tax benefit, as Storylines is registered in the Bahamas.

But don’t expect to flip the cabins like landlocked homes. Buyers are getting a lease that is tied to the “seaworthy life of the vessel.”

The World’s residents, according to a spokeswoman, view their cabins as a “lifestyle investment” rather than a financial investment.

“Many are existing or previous yacht owners who find ownership on The World more financially favorable,” she added, “and much less hassle than yacht ownership.”