Today’s libraries are reinventing themselves as vibrant town squares, showcasing the latest best sellers, lending Kindles loaded with e-books, and offering grass-roots technology training centers. Faced with the need to compete for shrinking municipal finances, libraries are determined to prove they can respond as quickly to the needs of the taxpayers as the police and fire department can.

“I think public libraries used to seem intimidating to many people, but today, they are becoming much more user-friendly, and are no longer these big, impersonal mausoleums,” said Jeannette Woodward, a former librarian and author of “Creating the Customer-Driven Library: Building on the Bookstore Model.”

“Public libraries tread a fine line,” Ms. Woodward said. “They want to make people happy, and get them in the habit of coming into the library for popular best sellers, even if some of it might be considered junk. But libraries also understand the need for providing good information, which often can only be found at the library.”

Cheryl Hurley, the president of the Library of America, a nonprofit publisher in New York “dedicated to preserving America’s best and most significant writing,” said the trend of libraries that cater to the public’s demand for best sellers is not surprising, especially given the ravages of the recession on public budgets.