The end of the community library has been predicted at one time or another, but libraries have proven themselves to be adaptable to a changing world. At one time, they were merely repositories of books. Then they added music and movies in the form of VHS tapes (which were then replaced with DVDs).
If I physically visit the library, I can attend lectures or music performances, rent meeting space, borrow passes to local museums, borrow an ereader if I don't own one, or borrow a "book club in a bag" (a bag with 10 copies of a book, info on the author, suggested discussion topics, questions and other info). I can access computers to do research if I don't have my own, or I can simply use my own laptop to log onto the library's wifi.
This library at Keene State University is in charge of the "Green bikes" program, and students can check out a bicycle via the library.
The library in Skokie, Illinois, has a digital media lab (equipped with computers, cameras, video cameras, scanners, microphones, musical instruments, mp3 recorders, and lots of other equipment and software, including a green screen) which patrons can use for videos, music, photos, presentations, podcasts, websites, graphic design and other types of digital presentation.
Libraries are at the cutting edge, always looking for new ways to engage the community. Some offer 3D printers, media kiosks (one article equated them to library Red Boxes) and apps for cell phones that help patrons locate materials in the library, learn more about books or get book recommendations.
And yes, since libraries rely on tax dollars to operate, many of them are struggling these days. But they are also powerhouses of innovation.
Long live libraries!