Kubushka

A notebook on a die — and a quine.

Every side of the die is a sheet of paper. Click anywhere and write, draw on it, link one note to another. In the middle of every sheet lies a smaller die, with six sheets of its own.

All of it — the notes, the program, the program's source — is one HTML file that saves itself.

Kub, a cube — that holds cubes the way a matryoshka holds dolls.

1file, and nothing beside it
0dependencies
6sheets to a die
∞dice within dice
14languages

one

Dice within dice

A sheet always fills the window. It never scrolls and is never upside down. When it is full, you do not get a longer page — you go into it.

The small die in the middle of a sheet has six sheets of its own, each with a die in its middle. And the die you are on lies on a sheet of a larger one. A project gets a die; its parts get the dice on its sheets.

Ctrl + drag
turn the die, squarely, to the sheet next door
Ctrl + wheel
into the die in the middle — or out, to the one this die lies on
Alt + wheel
a magnifying glass for small print
two fingers
turn; a pinch goes in and out

two

Every link is a thread

Write [[Name]] and the words lead to the note of that name. If there is none yet, following the link begins it.

A link is also drawn: a thread from the word to its note, to click and travel along. Put the caret into a note, and the notes that link to it are listed at its corner. Rename a heading, and every link to it follows.

Point at a link in the picture. Click it to go there.

Kubushka

Each side is a sheet of paper. Markdown works, and so do Links, backlinks and transclusion. The Motto is on every die.

Links

[[Name]] leads to the note whose heading is Name. Click a thread to travel along it.

linked fromKubushka

Motto

Alea iacta est — the die is cast.

linked fromKubushka

three

Names come to you

Type [[ and the notes there are to link to are offered under the caret. Go on typing and the list narrows.

↑ ↓
go through the names
Enter or Tab
writes one out and closes the brackets
Esc
sends them away
a tap
does the same, on a phone

A note is Markdown. While the caret is in it the markup shows; when you leave, it turns into type.

Writing

four

The note itself, alive

![[Name]] does not point at a note. It shows it — inside this one, as it is right now.

Change the note in one place and it has changed in every place it is shown. The same goes for lists: {{list: is:todo #urgent}} shows whatever the filter lets through, and keeps itself up to date. Boards, sums, cards to review and talks are made of the same stuff.

Motto

Colophon

Under every sheet stands:
Motto

five

Ink

Pick draw and the pointer is a pen — with the same ink the notes are written in, as heavy as you press.

Throw a lasso around a drawing and give it a name. Now it is a note like any other: [[spiral]] leads to it, and ![[spiral]] shows it.

The paper on the right takes ink. Try it.

six

A file that carries itself

A notebook is one HTML file. In it: the program, the complete source of that program, and your notes.

Save writes the file out again, itself included. An untouched copy saves itself byte for byte. No server, no account, no installation — copy it, mail it, keep it for twenty years.

And because the source travels along, any notebook can be taken apart and built again:

# the source tree, the program, the notes
weave --unweave kubushka.html dir
# a new program around old notes
./build.sh --notes old.html
kubushka.html4.1 MB
IThe program1.5 MB of WebAssemblyRust, compiled. It paints every sheet on one canvas.
IIIts source39 filesEverything it was built from — tests and manual too.
IIIYour notesand their historyWords, ink, pictures and files, with the earlier versions.
save writes all three out again — the notebook is its own installer, backup and build system.

This is the notebook

Not a recording. The file itself, running in this page — write in it, turn it, go into its dice. What you write is kept as a draft in your browser.

4.1 MB, once — then it needs nothing from the net

The whole notebook, in space

The map lays every die out at once. Its 3D button opens the same as a room: the sheets around their dice, the dice of the sheets beside them, and every link a thread from one note to another.

Drag to turn it — all the way round, and over the top. Scroll or pinch to come closer. Click a sheet and the camera flies to it; click a thread and it travels along it to the other end. What links to the sheet in hand is drawn in red, and a second click opens it.

By mouse, by keys, by touch.

The overview in space: dice as open boxes of sheets, joined by curved threads, on dark paper

A desk for many notebooks

A notebook needs nothing but a browser. For a desk where notebooks are opened every day there is the launcher: a window with nothing of a browser's about it.

Its first page is an overview of your notebooks — a picture of each as you left it. A notebook opens in a tab and saves into its file, in place.

Mark any notebook as a template, and new notebooks can begin as copies of it. A notebook that carries an earlier Kubushka gets an update button — the launcher puts its own program around your notes, without the net — and when a later launcher is out, it says so and fetches it.

For Linux, Windows and macOS: the installers of the latest release. The notebooks stay what they are: single files in a folder.

The launcher: an overview of notebooks as cards, with a tab strip above

On every kind of paper

The die in mid-turn: two sheets seen at an angle
Turning to the sheet next door
A sheet on dark paper, in Arabic, set from the right
Dark paper — and Arabic, Persian and Hebrew set from the right
The overview: all dice of a notebook and their sheets
The overview: every die that carries something, and of it the sheets that do
A notebook on a phone
The same file on a phone, worked by touch

It keeps its history

Every save keeps an earlier version, to look at, play back like a film, or return to. A notebook can be locked with a password — then the file is written in cipher.

It can carry a program

Modules and plugins are written in the notebook itself: macros, widgets, filters, commands. They run in a closed room, and only with your leave.

It is tested like a tool

Some two hundred checks drive a real browser through writing, links, ink, saving, phones, locks and all fourteen languages.

Get it

Download the file and open it. That is the whole installation.

Chrome, Edge and other Chromium browsers save over the file in place. Firefox and Safari hand it back as a download.

Or build it yourself

Rust with the WebAssembly target. No crates, no JavaScript libraries.

rustup target add wasm32-unknown-unknown
git clone https://github.com/Kubushka/Kubushka.git
cd Kubushka
./build.sh                # → kubushka.html
launcher/kubushka         # the launcher, if you like