Every household builds up a lot of shared knowledge. There’s Grandma’s goulash
recipe, the home Wi-Fi password, the furnace filter size, the kids’ chore lists, the
school pickup schedule, and years of photos. Most of it ends up spread across
USB sticks, cloud drives and sticky notes on the fridge.
Haven puts all of it in one place on your own server, and each piece is
shown only to the people it’s meant for.
Today we’re releasing Haven 1.1, free and open source under the Apache
License 2.0.
See it now: https://haven.sillysingularity.com
Why we built it
There are already good wikis you can host yourself. Most are built for
companies. They can be complex to deploy, and they are built with single sign-on, webhooks, multiple editors and privileges rules that are hard to understand. That’s a lot of software to
install, update and understand when all you need is somewhere for one family
to keep its stuff.
Haven goes the other way. It’s a small application in plain PHP with no
framework, no JavaScript build step and no CDN. It runs comfortably on a Raspberry Pi.
It’s also private by default. In many wikis a new page is visible to
everyone until someone restricts it. In Haven, a new book can be seen only by
the person who created it (and admins) until it’s shared. We think getting
this wrong in the “closed” direction is the better mistake. If someone asks
why they can’t see a new book yet, that’s easy to fix. If a child reads
something that wasn’t meant for them, it isn’t.
Meet the Riveras
The live demo runs Haven with a fictional sample family, the Riveras. Every
family member has a one-click sign-in button, so you can see the same wiki
through different eyes:
| Account | Role | What you’ll see |
|---|---|---|
| Sam | Parent, editor | Almost everything, and can change it. |
| Jordan | Parent, editor | Created the photo albums and story books. |
| Maya | Age 12, author | Can add pages and photos, but can change only her own. |
| Leo | Age 8, viewer | Sees only his chores page in Household, but can edit Kids’ Corner. |
| Grandma Rosa | Viewer | Reads and comments, but has no access to Household. |
Try signing in as Sam, then as Leo. The Household shelf mostly disappears, but
Leo still sees the one page that’s been shared with him. The demo is
read-only, so you can click around freely without changing anything.
All of the demo content (books, pages, albums and notes) is public-domain or
openly licensed material.
What’s in Haven
Books, chapters and pages
Content is organised into shelves → books → chapters → pages. Pages are
written in a clean block editor with headings, lists, quotes, code, tables and
highlighting. Every save is kept in the page history, so you can compare
versions word by word and restore an older one. If your session times out
while you’re typing, your unsaved work is kept as a draft.
Sharing that matches how families work
- Roles: viewer, author, editor and admin.
- Groups such as “Parents”, “Kids” or “Grandparents”, for sharing with
several people at once. - Shares carry down from shelf to book to chapter to page.
- Per-book access levels: give someone Read, Edit, or Edit + Delete on one
book, whatever their usual role. A child can be a viewer everywhere but an
editor in their own book. - An optional guest account shows only what you’ve shared with everyone.
Photo albums
Upload a whole batch of photos at once, then add captions and comments.
Haven resizes every photo and removes location and camera data before
storing it. Phones save GPS coordinates in every picture, and those don’t
belong on the family wiki.
Files, search and the little things
- Attachments can be linked or embedded inline (images, video, PDFs), and
they’re served only to people who can see the page. - Search across pages, books and files, with filters for book, author,
tag, date and who something is shared with. - Tags, favourites, book covers and sticky notes you can stick on a
shelf, book, chapter or page.
Tools for whoever runs the server
- Scheduled backups with one-click restore.
- A database integrity check that can repair what it finds.
- A media library that finds files nothing uses anymore.
- Moving the storage folder safely, with every file checked before the
old copies are deleted. - Colour themes, a custom sign-in photo and a tagline.
- Security: sign-in throttling, idle and maximum session times, optional
forced HTTPS, a same-origin Content-Security-Policy, and HTML sanitising on
every save.
Works without the internet
Bootstrap, the icons and the editor all ship in the repository. Haven never
calls out to a CDN, so it keeps working on a home network with the internet
switched off.
Getting started
You’ll need:
- Linux with Apache (
mod_rewrite) - PHP 8.1 or newer (
pdo_mysql,mbstring,intl,xml,gd,curl) - MySQL 8 (Or MariaDB)
- HTTPS is strongly recommended, even at home. A self-signed certificate is
fine.
Then:
cd /var/www/html
sudo git clone https://gitlab.com/silly-singularity-group/haven.git haven
cd haven
sudo composer install --no-dev
Alternatively, you can download the package yourself:
- https://gitlab.com/silly-singularity-group/haven/-/releases/v1.1.2/downloads/haven-1.1.2-b0e23c0.tar.gz
- https://gitlab.com/silly-singularity-group/haven/-/releases/v1.1.2/downloads/haven-1.1.2-b0e23c0.tar.gz.sha256
Follow INSTALL.md to set up Apache and the database, then open Haven in your
browser. The web installer checks your server, sets up the database, asks
where to keep files and creates your first admin account. It can also add the
Riveras’ sample content, so you have something to explore before adding your
own.
Open source
Haven is licensed under the Apache License 2.0. The code, the user guide
and a full software bill of materials are in the repository:
https://gitlab.com/silly-singularity-group/haven
Bug reports, ideas and pull requests are welcome.
Haven is a project of SillySingularity.com.
