Anything that could ever be said or written, exists in this library.

Every possible page of 3,200 letters, computed the moment you open it. Type anything and find the shelf where it has been all along.

the first page
What this is

A Library of Babel, in your browser

Total Library holds every possible page of 3,200 letters, on a shelf in a hexagon with a name, computed in your browser. Not a database: one function turns a location into its page and a page back into its location, so every search is instant and every link is permanent.

Find any text

Your name, a line you wrote, the message you just sent. It is on a page already; we compute which one.

Share the page

Every page has a permanent address. Copy the link and the same 3,200 letters open for anyone, forever.

Wander the hexagons

Open a random page, turn to the next, climb a shelf, or name a hexagon and see what its volumes hold.

Carry it with you

Install it and the whole library works with no connection. There is no server; the arithmetic travels with you.

How it works

One function, run forwards and back

  1. 01

    A place on a shelf

    A hexagon with a name, one of four walls, one of five shelves, one of thirty-two volumes, one of 410 pages.

  2. 02

    is one number

    Those five coordinates combine into a single integer about 15,600 bits long. Nothing is stored; the address is the data.

  3. 03

    which is scrambled

    Three rounds of multiply-and-add, with the digits reversed in between, turn it into a different number of the same size.

  4. 04

    and read as text

    Written in base 29 that number has exactly 3,200 digits. Each digit is a letter. Run the same steps backwards and you have search.

  5. Read the full explanation