Clone or download

  • Download the latest version as a ZIP or tarball
  • Clone with: git clone https://elmord.org/code/litlavik


An extremely simple wiki in PHP

Version 0.3, August 2014.

What is this?

Litlavík is about the simplest, crudest thing that can still be called a wiki. I made it for my personal use to help me keep track of my Master's research. You probably don't want to use it.


  • There is no formatting at all – the only recognized markup is {text} to make text into a link. The link will be external if text contains ://, internal otherwise.
  • Entering in edit mode does not reload the page. (This is the main reason I wrote litlavík in first place. When I'm taking notes, it's extremely annoying to wait for the page to reload to start writing.)
  • You can require a username and password to edit pages.
  • It will keep a crude form of backups when you edit pages. Basically the entry foo will be renamed foo~YYYYMMDD (where YYYYMMDD is the date of the original entry) before writing the new version. Yes, this means only one version from a given day is kept. I just introduced this feature to be able to keep track of what I did each day.
  • It alerts you upon saving an entry if someone else modified the entry since you started editing.
  • That's about it.

Litlavík is free software under the MIT/Expat license. See the file LICENSE for details.

How to install

  1. Create a directory for the wiki;
  2. Unpack the zip inside it;
  3. Edit index.php (a very small file that just includes wiki.php and invokes the wiki) for configuration;
  4. It's done.

FAQ (Fairly Askable Questions)

How do I create an entry?

Make a {link} to it in an existing entry, follow it, and edit the new entry. Or add ?id=name to the URL to go to the entry and edit it.

How do I delete an entry?

Just empty its contents and save it. This will remove the file. (A backup will remain, though.)

Future plans

I plan to add a few more things in the future, such as a ~~list of all entries~~ [done] and a convenient way of viewing saved backups and recent changes, but not much more.