The library of Babel contains every possible 410 page book with 40 lines per page and 80 characters per line, Using 29 characters (space, a-z, comma and period). Each book has a unique location (hexagon, wall, shelf, volume). The core algorithm converts text to location coordinates using base conversion.
The Library of Babel is a short story by Jorge Luis Borges about an infinite library containing every possible book. Not just books that exist, but every combination of characters that could exist.
- Your biography (that hasn't been written yet)
- This exact documentation
- Complete nonsense
- Shakespeare's works
- Jonathan Basile's implementation at libraryofbabel.info
- Addressing system was inspired by @tdjsnelling's TypeScript implementation
Core API allows a user to:
- Text Search -> Search for locations where user text exists in the library
- Browse -> View the page contents of a given location
- Random -> View a page from a random location in the library
You can interact with the program via web app and a very simple CLI
contact: [email protected]